diff --git a/src/Controller/CalendrierController.php b/src/Controller/CalendrierController.php index 90a8eae..d593b1f 100644 --- a/src/Controller/CalendrierController.php +++ b/src/Controller/CalendrierController.php @@ -17,17 +17,20 @@ class CalendrierController extends AbstractController ]); } - #[Route('/calendrier/secretaire', name: 'calendrier_index_secretaire')] + #[Route('/secretaire', name: 'app_calendrier_indexSecretaire')] public function indexSecretaire(): Response { - return $this->render('calendrier/indexSecretaire.html.twig'); + return $this->render('calendrier/indexSecretaire.html.twig', [ + 'controller_name' => 'CalendrierController', + ]); } - #[Route('/calendrier/chauffagiste', name: 'calendrier_index_chauffagiste')] + #[Route('/chauffagiste', name: 'app_calendrier_indexChauffagiste')] public function indexChauffagiste(): Response { - return $this->render('calendrier/indexChauffagiste.html.twig'); - } + return $this->render('calendrier/indexChauffagiste.html.twig', [ + 'controller_name' => 'CalendrierController', + ]); } // créer intervention : secretaire + admin // créer un nouveau rdv diff --git a/src/Controller/InterventionController.php b/src/Controller/InterventionController.php index e71c7eb..11cce71 100644 --- a/src/Controller/InterventionController.php +++ b/src/Controller/InterventionController.php @@ -17,7 +17,7 @@ final class InterventionController extends AbstractController #[Route(name: 'app_intervention_index', methods: ['GET'])] public function index(InterventionRepository $interventionRepository): Response { - return $this->render('intervention/admin.html.twig', [ + return $this->render('intervention/index.html.twig', [ 'interventions' => $interventionRepository->findAll(), ]); } diff --git a/templates/base.html.twig b/templates/base.html.twig index 75c4793..10a8ac8 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -27,17 +27,17 @@ {% if is_granted('ROLE_SECRETAIRE') %}