modification des vues fault index et show + du form fault
This commit is contained in:
parent
3a4e9ce733
commit
d464aa9b2d
@ -3,6 +3,7 @@
|
|||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
use App\Entity\Fault;
|
use App\Entity\Fault;
|
||||||
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
@ -14,6 +15,7 @@ class FaultType extends AbstractType
|
|||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('Wording', TextType::class)
|
->add('Wording', TextType::class)
|
||||||
|
->add('Description', TextType::class)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
<th>Id</th>
|
||||||
<th>Wording</th>
|
<th>Wording</th>
|
||||||
<th>actions</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ fault.id }}</td>
|
<td>{{ fault.id }}</td>
|
||||||
<td>{{ fault.Wording }}</td>
|
<td>{{ fault.Wording }}</td>
|
||||||
<td>{{ fault.actions }}</td>
|
<td>{{ fault.Description }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
|
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
|
||||||
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>
|
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
<th>Wording</th>
|
<th>Wording</th>
|
||||||
<td>{{ fault.Wording }}</td>
|
<td>{{ fault.Wording }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Description</th>
|
||||||
|
<td>{{ fault.Description }}</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user