FestinHegre/templates/details_commande/index.html.twig

45 lines
1.6 KiB
Twig
Raw Permalink Normal View History

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.Quantite }}</td>
<td>{{ details_commande.PrixUnitaire }}</td>
<td>
<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) }}">
{{ include('details_commande/_delete_form.html.twig') }}
2024-11-28 14:56:56 +01:00
</form>
<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>
<td colspan="4">Aucun enregistrement trouvé</td>
2024-11-21 15:11:11 +01:00
</tr>
{% endfor %}
</tbody>
</table>
<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 %}