mirror of
https://github.com/almet/copanier.git
synced 2025-05-02 13:22:24 +02:00
25 lines
915 B
HTML
25 lines
915 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
<article>
|
|
<h3><a href="/livraison/{{ delivery.id }}">{{ delivery.producer }}</a> — Gérer les soldes</h3>
|
|
<form method="post">
|
|
<table>
|
|
<thead>
|
|
<tr><th>Personne</th><th>Montant</th><th>Soldée</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for email, order in delivery.orders.items() %}
|
|
<tr>
|
|
<td>{{ email }}</td>
|
|
<td>{{ order.total(delivery.products) }} €</td>
|
|
<td class="with-input"><input type="checkbox" name="{{ email }}" {% if order.paid %}checked{% endif %}></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" value="Enregistrer" class="primary">
|
|
<a href="/livraison/{{ delivery.id }}/solde.xlsx" class="button"><i class="icon-download"></i> Exporter</a>
|
|
</form>
|
|
</article>
|
|
{% endblock body %}
|