{% extends "core/base.jinja" %} {% block title %} {% trans %}Eboutic{% endtrans %} {% endblock %} {% macro add_product(id, content, class="") %}
{% csrf_token %}
{% endmacro %} {% macro del_product(id, content) %}
{% csrf_token %}
{% endmacro %} {% block content %}

{% trans %}Eboutic{% endtrans %}

{% trans %}Basket: {% endtrans %}

{% trans %}Basket amount: {% endtrans %}{{ "%0.2f"|format(basket.get_total()) }} € {% if customer_amount != None %}
{% trans %}Current account amount: {% endtrans %}{{ "%0.2f"|format(customer_amount) }} €
{% trans %}Remaining account amount: {% endtrans %}{{ "%0.2f"|format(customer_amount - basket.get_total()) }} € {% endif %}

{% csrf_token %}

{% for t in categories %} {% if eboutic.products.filter(product_type=t).exists() %}
{{ t }}
{% if t.comment %}

{{ t.comment }}

{% endif %}
{% for p in eboutic.products.filter(product_type=t).all() %} {% set file = None %} {% if p.icon %} {% set file = p.icon.url %} {% else %} {% set file = static('core/img/na.gif') %} {% endif %} {% set prod = '%s
%s €' % (p.name, file, p.selling_price) %} {{ add_product(p.id, prod, "form_button") }} {% endfor %} {% endif %} {% endfor %}
{% endblock %}