modification des vues fault index et show + du form fault

This commit is contained in:
sermandm 2025-04-24 16:23:19 +02:00
parent 3a4e9ce733
commit d464aa9b2d
3 changed files with 8 additions and 2 deletions

View File

@ -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)
;
}

View File

@ -10,7 +10,7 @@
<tr>
<th>Id</th>
<th>Wording</th>
<th>actions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
@ -18,7 +18,7 @@
<tr>
<td>{{ fault.id }}</td>
<td>{{ fault.Wording }}</td>
<td>{{ fault.actions }}</td>
<td>{{ fault.Description }}</td>
<td>
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>

View File

@ -15,6 +15,10 @@
<th>Wording</th>
<td>{{ fault.Wording }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ fault.Description }}</td>
</tr>
</tbody>
</table>