copanier/kaba/templates/order.html
2019-03-17 19:30:10 +01:00

18 lines
629 B
HTML

{% extends "base.html" %}
{% block body %}
<p>Producteur: {{ order.producer }}</p>
<p>Lieu: {{ order.where }}</p>
<p>Date: {{ order.when }}</p>
<p>Commande pour {{ person }}</p>
<form method="post">
<table>
<tr><th>Produit</th><th>Prix</th><th>Quantité</th></tr>
{% for product in order.products %}
<tr><th>{{ product.name }}</th><td>{{ product.price }} €</td><td><input type="number" name="{{ product.ref }}"></td></tr>
{% endfor %}
</table>
<input type="hidden" name="email" value="{{ person }}">
<input type="submit" value="Valider ma commande">
</form>
{% endblock body %}