{% extends "core/base.jinja" %} {% block title -%} {% trans %}Eboutic{% endtrans %} {%- endblock %} {% block description -%} {% trans %}The online shop of the association.{% endtrans %} {%- endblock %} {% block additional_js %} {# This script contains the code to perform requests to manipulate the user basket without having to reload the page #} {% endblock %} {% block additional_css %} {% endblock %} {% block content %}

{% trans %}Eboutic{% endtrans %}

Panier

{% csrf_token %}
{{ form.management_form }}
{% if form.non_form_errors() or form.errors %}
{% for error in form.non_form_errors() + form.errors %}

{{ error }}

{% endfor %}
{% 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 %}
{% trans trimmed %} You have not filled in your date of birth. As a result, you may not have access to all the products in the online shop. To fill in your date of birth, you can go to {% endtrans %} {% trans %}this page{% endtrans %}
{% endif %} {% for priority_groups in products|groupby('order') %} {% 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 #}

{{ category }}

{% if items[0].category_comment %}

{{ items[0].category_comment }}

{% endif %}
{% for p in items %} {% endfor %}
{% endif %} {% endfor %} {% else %}

{% trans %}There are no items available for sale{% endtrans %}

{% endfor %}
{% endblock %}