45 lines
1.6 KiB
Twig
45 lines
1.6 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}DetailsCommande index{% endblock %}
|
|
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}">
|
|
{% 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 ?');">
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ details_commande.id) }}">
|
|
{{ include('details_commande/_delete_form.html.twig') }}
|
|
</form>
|
|
<a href="{{ path('app_details_commande_edit', {'id': details_commande.id}) }}">Modifier</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="4">Aucun enregistrement trouvé</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_details_commande_new') }}">Créer le détail d'une commande</a>
|
|
{% endblock %}
|