From d464aa9b2d8b62f794cb52be15fcd79004a4e600 Mon Sep 17 00:00:00 2001 From: sermandm Date: Thu, 24 Apr 2025 16:23:19 +0200 Subject: [PATCH] modification des vues fault index et show + du form fault --- src/Form/FaultType.php | 2 ++ templates/fault/index.html.twig | 4 ++-- templates/fault/show.html.twig | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) 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 }} +