turn basket into a form

This commit is contained in:
Frédéric Péters 2015-03-05 16:18:17 +01:00
parent 961c3c2ac9
commit bdfdb3314e
1 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,13 @@
{% load i18n %}
{% if total %}
<h3>{% trans "Basket" %}</h3>
<form>
<ul>
{% for item in items %}
<li>{{ item.subject }}: {{ item.amount }} €</li>
<li><label><input type="checkbox" value="{{ item.id }}" checked/> {{ item.subject }}: {{ item.amount }} €</label> (<a href="{{ item.source_url}}">voir</a>)</li>
{% endfor %}
<li><strong>{% trans "Total:" %}</strong> {{ total }} €</li>
</ul>
<input type="submit" value="{% trans "Pay selected items" %}"/>
</form>
{% endif %}