{% extends "client/layout_client.html" %} {% block body %}
{% if articles_commande %}

Recapitulatifs de la commande selectionnée

{% for ligne in articles_commande %} {% endfor %}
NomQuantitePrixPrix total
{{ ligne.nom }} {% if ligne.nb_declinaisons is defined and ligne.nb_declinaisons > 1 %} ( {{ ligne.nb_declinaisons }} declinaisons ) {% if ligne.couleur_id != 1 %} {{ ligne.libelle_couleur }} {% endif %} {% if ligne.taille_id != 1 %} {{ ligne.libelle_taille }} {% endif %} {% endif %} {{ ligne.quantite }} {{ ligne.prix }} € {{ ligne.prix_ligne }} €

adresse livraison : {{ commande_adresses.nom_livraison }} {{ commande_adresses.rue_livraison }} {{ commande_adresses.code_postal_livraison }} {{ commande_adresses.ville_livraison }}
adresse facturation : {% if commande_adresses.adresse_identique == 'adresse_identique' %} adresse identique {% else %} {{ commande_adresses.nom_facturation }} {{ commande_adresses.rue_facturation }} {{ commande_adresses.code_postal_facturation }} {{ commande_adresses.ville_facturation }} {% endif %}

{% endif %}

Toutes mes commandes

{% for commande in commandes %} {% endfor %}
Date de commande Nombre d'articles Coût total Etat de la commande Options
{{ commande.date_achat.strftime('%d-%m-%Y') }} {{ commande.nbr_articles }} {{ "{:,.2f} €".format(commande.prix_total) }} {% if commande.etat_id == 1 %}
{{ commande.libelle }}
{% else %}
{{ commande.libelle }}
{% endif %}
{% endblock %}