From d048f55ad5e1640768696aa9efefd16dc3e93eba Mon Sep 17 00:00:00 2001 From: Yacha-Shan Date: Sat, 19 Apr 2025 21:58:44 +0200 Subject: [PATCH] =?UTF-8?q?Lien=20du=20bouton=20"Create=20Intervention"=20?= =?UTF-8?q?dans=20le=20calendrier,=20modification=20de=20la=20route=20pour?= =?UTF-8?q?=20"intervention/index.twig.html"=20dans=20le=20Controller=20ai?= =?UTF-8?q?nsi=20que=20modification=20du=20bouton=20liste=20des=20interven?= =?UTF-8?q?tion=20dans=20la=20page=20de=20cr=C3=A9ation=20d'un=20intervent?= =?UTF-8?q?ion=20afin=20de=20le=20rendre=20fonctionnelle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/InterventionController.php | 2 +- templates/base.html.twig | 1 + templates/calendrier/index.html.twig | 4 +++- templates/fault/index.html.twig | 1 + templates/intervention/new.html.twig | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) 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..667edf1 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -23,6 +23,7 @@
  • Tous les plannings
  • Gérer les stocks
  • Gérer les véhicules
  • +
  • Test des fault !
  • {% endif %} {% if is_granted('ROLE_SECRETAIRE') %} diff --git a/templates/calendrier/index.html.twig b/templates/calendrier/index.html.twig index db2e53a..8452a71 100644 --- a/templates/calendrier/index.html.twig +++ b/templates/calendrier/index.html.twig @@ -17,7 +17,9 @@ - Create Intervention + + + diff --git a/templates/fault/index.html.twig b/templates/fault/index.html.twig index 8f96b09..4e9fc58 100644 --- a/templates/fault/index.html.twig +++ b/templates/fault/index.html.twig @@ -18,6 +18,7 @@ {{ fault.id }} {{ fault.Wording }} + {{ fault.actions }} show edit diff --git a/templates/intervention/new.html.twig b/templates/intervention/new.html.twig index bb564a5..cb3248d 100644 --- a/templates/intervention/new.html.twig +++ b/templates/intervention/new.html.twig @@ -15,7 +15,7 @@
    Logo Calendrier - Créer une intervention + Voir les interventions Logo Chauffagiste

    Choisissez un chauffagiste