2024-11-21 15:11:11 +01:00
{% extends 'base.html.twig' %}
{% block title %} DetailsCommande index {% endblock %}
{% block stylesheets %}
2024-11-21 17:03:32 +01:00
<link rel="stylesheet" href=" {{ asset ( 'css/ControllerVues/list.css' ) }} ">
2024-11-21 15:11:11 +01:00
{% endblock %}
{% block body %}
<h1>DetailsCommande index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Quantite</th>
<th>PrixUnitaire</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for details_commande in details_commandes %}
<tr>
<td> {{ details_commande .id }} </td>
<td> {{ details_commande . Q uantite }} </td>
<td> {{ details_commande . P rixUnitaire }} </td>
<td>
2024-12-05 15:12:46 +01:00
<form method="post" action=" {{ path ( 'app_details_commande_delete' , { 'id' : details_commande .id } ) }} " onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
2024-11-28 14:56:56 +01:00
<input type="hidden" name="_token" value=" {{ csrf_token ( 'delete' ~ details_commande .id ) }} ">
2024-12-05 15:12:46 +01:00
{{ include ( 'details_commande/_delete_form.html.twig' ) }}
2024-11-28 14:56:56 +01:00
</form>
2024-12-05 15:12:46 +01:00
<a href=" {{ path ( 'app_details_commande_edit' , { 'id' : details_commande .id } ) }} ">Modifier</a>
2024-11-21 15:11:11 +01:00
</td>
</tr>
{% else %}
<tr>
2024-12-05 15:12:46 +01:00
<td colspan="4">Aucun enregistrement trouvé</td>
2024-11-21 15:11:11 +01:00
</tr>
{% endfor %}
</tbody>
</table>
2024-12-05 15:12:46 +01:00
<a href=" {{ path ( 'app_details_commande_new' ) }} ">Créer le détail d'une commande</a>
2024-11-21 15:11:11 +01:00
{% endblock %}