Commit 98e3922c authored by Mat's avatar Mat

resume mise en forme hop

parent 016cd4f2
......@@ -26,6 +26,7 @@
<div class="texte">
<h5>{{ legume.nom }}</h5>
<p>{{ legume.description }}</p>
<p>Max: {{ legume.quantiteMax }}</p>
</div>
<div class="prixQuantite">
<span class="prixUnitr">{{ legume.prixUnitaire }}</span>
......
......@@ -27,29 +27,43 @@
{% for commande in commandes %}
<li class="mb-5">
<h4>Commande n°{{ commande.id }} (→ offre {{ commande.offre.reference }})</h4>
<table class="table table-sm">
{% for legume in commande.commandeLegumes %}
<tr>
<td style="width: 45%;">{{ legume.offreLegume.nom }}</td>
<td>{{ legume.quantite }}</td>
<td>x</td>
<td>{{ legume.prixUnitaire }} € / {{ legume.unite }}</td>
<td>=</td>
<td>{{ legume.prix }}</td>
<table class="table table-sm table-light">
<thead class="thead-light">
<tr class="">
<th scope="col" colspan="4">
<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>
</th>
</tr>
{% endfor %}
<tr class="table-active">
<td colspan="5">
<small>
Le {{ commande.createdAt|date('d/m/Y, à H:i:s') }} |
<a href="#">Modifier</a> |
<a href="#">Supprimer</a> |
</thead>
<tbody>
{% for legume in commande.commandeLegumes %}
<tr>
<td style="width: 45%;">{{ legume.offreLegume.nom }}</td>
<td>{{ legume.quantite }} {{ legume.unite }}</td>
<td>x</td>
<td>{{ legume.prixUnitaire }} € / {{ legume.unite }}</td>
<td>=</td>
<td>{{ legume.prix }}</td>
</tr>
{% endfor %}
</tbody>
<tfooter>
<tr class="table-active">
<td colspan="3">
<small>
Créée le {{ commande.createdAt|date('d/m/Y, à H:i:s') }}
</small>
</td>
<td colspan="3" class="text-right pr-3">
Total :
</small>
</td>
<td><strong>{{ commande.prixTotal }}</strong></td>
</tr>
<strong>{{ commande.prixTotal }}</strong>
</td>
</tr>
</tfooter>
</table>
</li>
......
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