{% 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 }}

{% with ev=subevent %}

{{ ev.get_date_range_display }} {% if event.settings.show_times %}
{% blocktrans trimmed with time=ev.date_from|date:"TIME_FORMAT" %} Begin: {{ time }} {% endblocktrans %} {% if event.settings.show_date_to and ev.date_to %}
{% blocktrans trimmed with time=ev.date_to|date:"TIME_FORMAT" %} End: {{ time }} {% endblocktrans %} {% endif %} {% endif %} {% if ev.date_admission %}
{% if ev.date_admission|date:"SHORT_DATE_FORMAT" == ev.date_from|date:"SHORT_DATE_FORMAT" %} {% blocktrans trimmed with time=ev.date_admission|date:"TIME_FORMAT" %} Admission: {{ time }} {% endblocktrans %} {% else %} {% blocktrans trimmed with datetime=ev.date_admission|date:"SHORT_DATETIME_FORMAT" %} Admission: {{ datetime }} {% endblocktrans %} {% endif %} {% endif %}
{% if subevent %} {% else %} {% endif %} {% trans "Add to Calendar" %}

{% endwith %} {% 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 %} {% if seating_available %} {% if event.has_subevents %} {% eventsignal event "pretix.presale.signals.render_seating_plan" request=request subevent=subevent voucher=voucher %} {% else %} {% eventsignal event "pretix.presale.signals.render_seating_plan" request=request voucher=voucher %} {% endif %} {% endif %} {% 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 var.original_price %} {% if event.settings.display_net_prices %} {{ var.original_price.net|money:event.currency }} {% else %} {{ var.original_price.gross|money:event.currency }} {% endif %} {% 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 item.original_price or var.original_price %}
{% endif %} {% if item.includes_mixed_tax_rate %} {% if event.settings.display_net_prices %} {% trans "plus taxes" %} {% else %} {% trans "incl. taxes" %} {% endif %} {% elif 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 %} {% if item.order_max == 1 %} {% else %} {% endif %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross 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.original_price %} {% if event.settings.display_net_prices %} {{ item.original_price.net|money:event.currency }} {% else %} {{ item.original_price.gross|money:event.currency }} {% endif %} {% 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.original_price %}
{% endif %} {% if item.includes_mixed_tax_rate %} {% if event.settings.display_net_prices %} {% trans "plus taxes" %} {% else %} {% trans "incl. taxes" %} {% endif %} {% elif 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 %} {% if item.order_max == 1 %} {% else %} {% endif %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross 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 %}