{% extends "pretixpresale/event/base.html" %} {% load i18n %} {% load l10n %} {% load eventurl %} {% load eventsignal %} {% load thumbnail %} {% 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|floatformat:2 currency=event.currency %} from {{ currency }} {{ minprice }} {% endblocktrans %} {% else %} {{ event.currency }} {{ item.min_price|floatformat:2 }} {% endif %}
{% for var in item.available_variations %}
{{ var }} {% if var.description %}
{{ var.description|localize|rich_text }}
{% endif %}
{% if item.free_price %}
{{ event.currency }}
{% else %} {{ event.currency }} {{ var.display_price|floatformat:2 }} {% endif %} {% if item.tax_rate and event.settings.display_net_prices %} {% blocktrans trimmed with rate=item.tax_rate %} plus {{ rate }}% taxes {% endblocktrans %} {% elif item.tax_rate %} {% blocktrans trimmed with rate=item.tax_rate %} incl. {{ rate }}% taxes {% endblocktrans %} {% endif %}
{% if var.cached_availability.0 == 100 %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with avail=var.cached_availability.0 %} {% endif %}
{% endfor %}
{% else %}
{% if item.picture %} {{ item.name }} {% endif %} {{ item.name }} {% if item.description %}
{{ item.description|localize|rich_text }}
{% endif %}
{% if item.free_price %}
{{ event.currency }}
{% else %} {{ event.currency }} {{ item.price|floatformat:2 }} {% endif %} {% if item.tax_rate and event.settings.display_net_prices %} {% blocktrans trimmed with rate=item.tax_rate %} plus {{ rate }}% taxes {% endblocktrans %} {% elif item.tax_rate %} {% blocktrans trimmed with rate=item.tax_rate %} incl. {{ rate }}% taxes {% endblocktrans %} {% endif %}
{% if item.cached_availability.0 == 100 %}
{% 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 %}
{% endif %} {% endblock %}