Commit 8eff6bdf authored by Mat's avatar Mat

améliore la page resume

parent 3c385d4b
......@@ -10,6 +10,9 @@
<div class="row">
<div class="col-md-10 offset-md-1 bloc">
<h4><a class="btn btn-lg btn-block btn-primary my-4" href="{{ path('potage_today') }}"><i class="fas fa-plus fa-fw"></i> Ajouter une nouvelle commande</a></h4>
<h1 class="mb-4">Commandes en cours</h1>
{% for label, messages in app.flashes() %}
{% for message in messages %}
......@@ -19,11 +22,7 @@
{% endfor %}
{% endfor %}
<h1>Commandes en cours</h1>
<ul>
<li class="mb-3">
<h4><a href="{{ path('potage_today') }}">Ajouter une nouvelle commande</a></h4>
</li>
{% for commande in commandes %}
<li class="mb-5">
......@@ -34,8 +33,10 @@
<h4>Commande n°{{ commande.id }} (→ offre {{ commande.offre.reference }})</h4>
</th>
<th scope="col" colspan="2" class="text-right pr-3">
<a class="btn btn-sm btn-primary" href="#"><i class="fas fa-pencil-alt fa-fw"></i></a>
<a class="btn btn-sm btn-primary" href="#"><i class="fas fa-trash-alt fa-fw"></i></a>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<a class="btn btn-sm btn-outline-primary" title="Éditer" href="#"><i class="fas fa-pencil-alt fa-fw"></i></a>
<a class="btn btn-sm btn-outline-primary" title="Supprimer" href="#"><i class="fas fa-trash-alt fa-fw"></i></a>
</div>
</th>
</tr>
</thead>
......@@ -43,11 +44,11 @@
{% for legume in commande.commandeLegumes %}
<tr>
<td style="width: 45%;">{{ legume.offreLegume.nom }}</td>
<td>{{ legume.quantite }} {{ legume.unite }}</td>
<td>{{ legume.quantite }} {{ legume.unite }}{{ (legume.unite != 'kg' b-and legume.quantite > 1) ? 's' : '' }}</td>
<td>x</td>
<td>{{ legume.prixUnitaire }} € / {{ legume.unite }}</td>
<td>=</td>
<td>{{ legume.prix }}</td>
<td style="width: 20px;">=</td>
<td style="width: 60px;">{{ legume.prix }}</td>
</tr>
{% endfor %}
</tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment