{% extends "base.html" %} {% block body %}

< Commandes

Producteur: {{ producer.name }}

Lieu: {{ order.where }}

Date: {{ order.when }}

{% for email, person_order in order.orders.items() %} {% endfor %} {% for product in order.products %} {% for email, person_order in order.orders.items() %} {% if product.ref in person_order.products %} {% else %} {% endif %} {% endfor %} {% endfor %}
Produit Prix{{ email }}Total
{{ product.name }} {{ product.price }} €{{ person_order.products[product.ref].wanted }}{{ order.product_wanted(product) }}

Total: {{ total }} €

{% endblock body %}