modification des vues fault index et show + du form fault

This commit is contained in:
sermandm 2025-04-24 16:20:20 +02:00
parent 3a4e9ce733
commit f098f5beeb
4 changed files with 10 additions and 4 deletions

4
.idea/dataSources.xml generated
View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="hegreetconfort@localhost" uuid="21423ae4-3232-4641-affb-06399f70655a">
<data-source source="LOCAL" name="HegreEtConfort@localhost" uuid="21423ae4-3232-4641-affb-06399f70655a">
<driver-ref>postgresql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
<jdbc-url>jdbc:postgresql://localhost:5432/hegreetconfort</jdbc-url>
<jdbc-url>jdbc:postgresql://localhost:5433/HegreEtConfort</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>

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>