Commit 98e3922c authored by Mat's avatar Mat

resume mise en forme hop

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