{% extends "pretixpresale/event/base.html" %} {% load i18n %} {% load l10n %} {% load money %} {% load eventurl %} {% load eventsignal %} {% load thumb %} {% load rich_text %} {% block title %}{% trans "Voucher redemption" %}{% endblock %} {% block content %}

{% trans "Voucher redemption" %}

{% if subevent %}

{{ subevent.name }}

{% endif %}

{% blocktrans trimmed %} You entered a voucher code that allows you to buy one of the following products at the specified price: {% endblocktrans %}

{% if event.presale_is_running or event.settings.show_items_outside_presale_period %}
{% csrf_token %} {% for tup in items_by_category %}
{% if tup.0 %}

{{ tup.0.name }}

{% if tup.0.description %}

{{ tup.0.description|localize|rich_text }}

{% endif %} {% endif %} {% for item in tup.1 %} {% if item.has_variations %}
{% if item.picture %} {{ item.name }} {% endif %}

{{ item.name }}

{% if item.description %}
{{ item.description|localize|rich_text }}
{% endif %}
{% if item.min_price != item.max_price or item.free_price %} {% blocktrans trimmed with minprice=item.min_price|money:event.currency %} from {{ minprice }} {% endblocktrans %} {% elif not item.min_price and not item.max_price %} {% trans "FREE" context "price" %} {% else %} {{ item.min_price|money:event.currency }} {% endif %}
{% for var in item.available_variations %}
{% if var.description %}
{{ var.description|localize|rich_text }}
{% endif %}
{% if item.free_price %}
{{ event.currency }}
{% elif not var.display_price.gross %} {% trans "FREE" context "price" %} {% elif event.settings.display_net_prices %} {{ var.display_price.net|money:event.currency }} {% else %} {{ var.display_price.gross|money:event.currency }} {% endif %} {% if var.display_price.rate and var.display_price.gross and event.settings.display_net_prices %} {% blocktrans trimmed with rate=var.display_price.rate|floatformat:-2 name=var.display_price.name %} plus {{ rate }}% {{ name }} {% endblocktrans %} {% elif var.display_price.rate and var.display_price.gross %} {% blocktrans trimmed with rate=var.display_price.rate|floatformat:-2 name=var.display_price.name %} incl. {{ rate }}% {{ name }} {% endblocktrans %} {% endif %}
{% if var.cached_availability.0 == 100 %}
{% if max_times > 1 %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with avail=var.cached_availability.0 %} {% endif %}
{% endfor %}
{% else %}
{% if item.picture %} {{ item.name }} {% endif %}

{% if item.description %}
{{ item.description|localize|rich_text }}
{% endif %}
{% if item.free_price %}
{{ event.currency }}
{% elif not item.display_price.gross %} {% trans "FREE" context "price" %} {% elif event.settings.display_net_prices %} {{ item.display_price.net|money:event.currency }} {% else %} {{ item.display_price.gross|money:event.currency }} {% endif %} {% if item.display_price.rate and item.display_price.gross and event.settings.display_net_prices %} {% blocktrans trimmed with rate=item.display_price.rate|floatformat:-2 name=item.display_price.name %} plus {{ rate }}% {{ name }} {% endblocktrans %} {% elif item.display_price.rate and item.display_price.gross%} {% blocktrans trimmed with rate=item.display_price.rate|floatformat:-2 name=item.display_price.name %} incl. {{ rate }}% {{ name }} {% endblocktrans %} {% endif %}
{% if item.cached_availability.0 == 100 %}
{% if max_times > 1 %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with avail=item.cached_availability.0 %} {% endif %}
{% endif %} {% endfor %}
{% endfor %} {% eventsignal event "pretix.presale.signals.voucher_redeem_info" voucher=voucher %} {% if event.presale_is_running %}
{% endif %} {% if "widget_data" in request.GET %} {% endif %}
{% endif %} {% endblock %}