2024-11-21 14:28:29 +01:00
{% extends 'base.html.twig' %}
{% block title %} StatutCommandes index {% endblock %}
2024-11-21 16:18:02 +01:00
{% block stylesheets %}
2024-11-21 17:03:32 +01:00
<link rel="stylesheet" href=" {{ asset ( 'css/ControllerVues/list.css' ) }} "> <!-- Ajout du fichier CSS -->
2024-11-21 16:18:02 +01:00
{% endblock %}
2024-11-21 14:28:29 +01:00
{% block body %}
<h1>StatutCommandes index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Libelle</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for statut_commande in statut_commandes %}
<tr>
<td> {{ statut_commande .id }} </td>
<td> {{ statut_commande . L ibelle }} </td>
<td>
2024-12-05 15:12:46 +01:00
<form method="post" action=" {{ path ( 'app_statut_commandes_delete' , { 'id' : statut_commande .id } ) }} " onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
<input type="hidden" name="_token" value=" {{ csrf_token ( 'delete' ~ statut_commande .id ) }} ">
{{ include ( 'statut_commandes/_delete_form.html.twig' ) }}
</form>
<a href=" {{ path ( 'app_statut_commandes_edit' , { 'id' : statut_commande .id } ) }} ">Modifier</a>
2024-11-21 14:28:29 +01:00
</td>
</tr>
{% else %}
<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_commandes_new' ) }} ">Créer un nouveau statut</a>
2024-11-21 14:28:29 +01:00
{% endblock %}