43 lines
1.3 KiB
Twig
43 lines
1.3 KiB
Twig
|
{% extends 'base.html.twig' %}
|
||
|
|
||
|
{% block title %}Commandes index{% endblock %}
|
||
|
{% block stylesheets %}
|
||
|
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||
|
|
||
|
{% endblock %}
|
||
|
{% block body %}
|
||
|
<h1>Commandes index</h1>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Id</th>
|
||
|
<th>DateHeure</th>
|
||
|
<th>Statut</th>
|
||
|
<th>Total</th>
|
||
|
<th>actions</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for commande in commandes %}
|
||
|
<tr>
|
||
|
<td>{{ commande.id }}</td>
|
||
|
<td>{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }}</td>
|
||
|
<td>{{ commande.Statut ? 'Yes' : 'No' }}</td>
|
||
|
<td>{{ commande.Total }}</td>
|
||
|
<td>
|
||
|
<a href="{{ path('app_commandes_show', {'id': commande.id}) }}">show</a>
|
||
|
<a href="{{ path('app_commandes_edit', {'id': commande.id}) }}">edit</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% else %}
|
||
|
<tr>
|
||
|
<td colspan="5">pas de commande crée</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<a href="{{ path('app_commandes_new') }}">Créer une nouvelle commande</a>
|
||
|
{% endblock %}
|