- {% for error in errors %}
-
{{ error }}
- {% endfor %}
+
Panier
+ {% if errors %}
+
+ {% for error in errors %}
+
{{ error }}
+ {% endfor %}
{% trans %}Your basket has been cleaned accordingly to those errors.{% endtrans %}
-
- {% endif %}
-
- {# Starting money #}
- -
-
- {% trans %}Current account amount: {% endtrans %}
-
-
- {{ "%0.2f"|format(customer_amount) }} €
-
-
-
- -
-
-
-
-
-
-
-
-
-
- {# Total price #}
- -
- {% trans %}Basket amount: {% endtrans %}
-
-
-
-
-
-
+ {% endif %}
+
+ {# Starting money #}
+ -
+
+ {% trans %}Current account amount: {% endtrans %}
+
+
+ {{ "%0.2f"|format(customer_amount) }} €
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ {# Total price #}
+ -
+ {% trans %}Basket amount: {% endtrans %}
+
+
+
+
+
+
+
{% if not request.user.date_of_birth %}
@@ -88,35 +88,37 @@
{% endif %}
- {% for category, items in products|groupby('category') %}
- {% if items|count > 0 %}
-
- {# I would have wholeheartedly directly used the header element instead
- but it has already been made messy in core/style.scss #}
-
-
- {% for p in items %}
-
- {% endfor %}
-
-
- {% endif %}
- {% else %}
+ {% for priority_groups in products|groupby('priority')|reverse %}
+ {% for category, items in priority_groups.list|groupby('category') %}
+ {% if items|count > 0 %}
+
+ {# I would have wholeheartedly directly used the header element instead
+ but it has already been made messy in core/style.scss #}
+
+
+ {% for p in items %}
+
+ {% endfor %}
+
+
+ {% endif %}
+ {% endfor %}
+ {% else %}
{% trans %}There are no items available for sale{% endtrans %}
{% endfor %}