From f098f5beebb44667a8b9154a63068a7f59b2d0eb Mon Sep 17 00:00:00 2001 From: sermandm Date: Thu, 24 Apr 2025 16:20:20 +0200 Subject: [PATCH] modification des vues fault index et show + du form fault --- .idea/dataSources.xml | 4 ++-- src/Form/FaultType.php | 2 ++ templates/fault/index.html.twig | 4 ++-- templates/fault/show.html.twig | 4 ++++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index d95fc33..f782d7a 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,11 +1,11 @@ - + postgresql true org.postgresql.Driver - jdbc:postgresql://localhost:5432/hegreetconfort + jdbc:postgresql://localhost:5433/HegreEtConfort $ProjectFileDir$ diff --git a/src/Form/FaultType.php b/src/Form/FaultType.php index 86e2112..419920b 100644 --- a/src/Form/FaultType.php +++ b/src/Form/FaultType.php @@ -3,6 +3,7 @@ namespace App\Form; use App\Entity\Fault; +use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; @@ -14,6 +15,7 @@ class FaultType extends AbstractType { $builder ->add('Wording', TextType::class) + ->add('Description', TextType::class) ; } diff --git a/templates/fault/index.html.twig b/templates/fault/index.html.twig index 4e9fc58..77acb43 100644 --- a/templates/fault/index.html.twig +++ b/templates/fault/index.html.twig @@ -10,7 +10,7 @@ Id Wording - actions + Description @@ -18,7 +18,7 @@ {{ fault.id }} {{ fault.Wording }} - {{ fault.actions }} + {{ fault.Description }} show edit diff --git a/templates/fault/show.html.twig b/templates/fault/show.html.twig index 3c46804..8a5cfbe 100644 --- a/templates/fault/show.html.twig +++ b/templates/fault/show.html.twig @@ -15,6 +15,10 @@ Wording {{ fault.Wording }} + + Description + {{ fault.Description }} +