2024-11-21 14:28:29 +01:00
{% extends 'base.html.twig' %}
{% block title %} StatutTables index {% endblock %}
2024-11-21 17:48:16 +01:00
{% block stylesheets %}
<link rel="stylesheet" href=" {{ asset ( 'css/ControllerVues/list.css' ) }} "> <!-- Ajout du fichier CSS -->
2024-12-05 15:12:46 +01:00
2024-11-21 17:48:16 +01:00
{% endblock %}
2024-11-21 14:28:29 +01:00
{% block body %}
<h1>StatutTables index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Libellé</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for statut_table in statut_tables %}
<tr>
<td> {{ statut_table .id }} </td>
2024-12-05 15:12:46 +01:00
<td> {{ statut_table . L ibelle }} </td>
2024-11-21 14:28:29 +01:00
<td>
2024-12-05 15:12:46 +01:00
<form method="post" action=" {{ path ( 'app_statut_tables_delete' , { 'id' : statut_table .id } ) }} " onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
<input type="hidden" name="_token" value=" {{ csrf_token ( 'delete' ~ statut_table .id ) }} ">
{{ include ( 'statut_tables/_delete_form.html.twig' ) }}
</form>
<a href=" {{ path ( 'app_statut_tables_edit' , { 'id' : statut_table .id } ) }} ">Modifier</a>
2024-11-21 14:28:29 +01:00
</td>
</tr>
2024-12-05 15:12:46 +01:00
{% else %}
2024-11-21 14:28:29 +01:00
<tr>
2024-12-05 15:12:46 +01:00
<td colspan="3">Aucun enregistrement trouvé</td>
2024-11-21 14:28:29 +01:00
</tr>
{% endfor %}
</tbody>
</table>
2024-12-05 15:12:46 +01:00
<a href=" {{ path ( 'app_statut_tables_new' ) }} ">Créer un nouveau</a>
2024-11-21 14:28:29 +01:00
{% endblock %}