{% extends "core/base.jinja" %} {% from "core/macros.jinja" import user_mini_profile, user_subscription %} {% block title %} {{ counter }} {% endblock %} {% block info_boxes %} {% endblock %} {% block nav %} {% endblock %} {% block content %}

{{ counter }}

{% trans %}Customer{% endtrans %}
{{ user_mini_profile(customer.user) }} {{ user_subscription(customer.user) }}

{% trans %}Amount: {% endtrans %}{{ customer.amount }} €

{% csrf_token %} {% trans %}Add a student card{% endtrans %} {% if request.session['not_valid_student_card_uid'] %}

{% trans %}This is not a valid student card UID{% endtrans %}

{% endif %}
{% trans %}Registered cards{% endtrans %}
{% if customer.student_cards.exists() %} {% else %} {% trans %}No card registered{% endtrans %} {% endif %}
{% trans %}Selling{% endtrans %}
{% raw %}

{{ error }}

{% endraw %}
{% csrf_token %}

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

{% raw %}
  • {{ p_info["qty"] + p_info["bonus_qty"] }}
    {{ products[p_id].name }}: {{ (p_info["qty"]*p_info["price"]/100).toLocaleString(undefined, { minimumFractionDigits: 2 }) }} € P

Total: {{ sum_basket().toLocaleString(undefined, { minimumFractionDigits: 2 }) }} €

{{ error }}

{% endraw %}
{% csrf_token %}
{% csrf_token %}
{% if counter.type == 'BAR' %}
{% trans %}Refilling{% endtrans %}
{% csrf_token %} {{ refill_form.as_p() }}
{% endif %}
{% for category in categories.keys() -%}
{{ category }}
{% for p in categories[category] -%} {% set file = None %} {% if p.icon %} {% set file = p.icon.url %} {% else %} {% set file = static('core/img/na.gif') %} {% endif %}
{% csrf_token %}
{%- endfor %}
{%- endfor %}
{% endblock %} {% block script %} {{ super() }} {% endblock %}