{% 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 %} {% if show_cart %} {% include "pretixpresale/event/fragment_cart_box.html" with open=request.GET.show_cart %} {% endif %}

{% trans "Voucher redemption" %}

{% if subevent %} {% if request.GET.subevent and subevent.pk|stringformat:"i" != request.GET.subevent %}
{% trans "This voucher is valid only for the following specific date and time." %}
{% endif %}

{{ subevent.name }}

{% with ev=subevent %}

{{ ev.get_date_range_display_as_html }} {% if event.settings.show_times %}
{% with time_human=ev.date_from|date:"TIME_FORMAT" time_24=ev.date_from|time:"H:i" %} {% blocktrans trimmed with time='"|safe %} Begin: {{ time }} {% endblocktrans %} {% endwith %} {% if event.settings.show_date_to and ev.date_to %}
{% with time_human=ev.date_to|date:"TIME_FORMAT" time_24=ev.date_to|time:"H:i" %} {% blocktrans trimmed with time='"|safe %} End: {{ time }} {% endblocktrans %} {% endwith %} {% endif %} {% endif %} {% if ev.date_admission %}
{% if ev.date_admission|date:"SHORT_DATE_FORMAT" == ev.date_from|date:"SHORT_DATE_FORMAT" %} {% with time_human=ev.date_admission|date:"TIME_FORMAT" time_24=ev.date_admission|time:"H:i" %} {% blocktrans trimmed with time='"|safe %} Admission: {{ time }} {% endblocktrans %} {% endwith %} {% else %} {% with datetime_human=ev.date_admission|date:"SHORT_DATETIME_FORMAT" datetime_iso=ev.date_admission|time:"Y-m-d H:i" %} {% blocktrans trimmed with datetime='"|safe %} Admission: {{ datetime }} {% endblocktrans %} {% endwith %} {% endif %} {% endif %}
{% if subevent %} {% else %} {% endif %} {% trans "Add to Calendar" %}

{% endwith %} {% endif %}

{% if options == 0 and not seating_available %} {% if request.event.has_subevents and not voucher.subevent %} {% blocktrans trimmed %} For the selected date, there are currently no products available that can be bought with this voucher. Please try a different date or a different voucher. {% endblocktrans %} {% else %} {% blocktrans trimmed %} There are currently no products available that can be bought with this voucher. {% endblocktrans %} {% endif %} {% else %} {% blocktrans trimmed %} You entered a voucher code that allows you to buy one of the following products at the specified price: {% endblocktrans %} {% endif %}

{% 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 %} {% if not item.mandatory_priced_addons %} {% trans "free" context "price" %} {% endif %} {% else %} {{ item.min_price|money:event.currency }} {% endif %}
{% for var in item.available_variations %}
{{ var }}
{% if var.description %}
{{ var.description|localize|rich_text }}
{% endif %} {% if item.do_show_quota_left %} {% include "pretixpresale/event/fragment_quota_left.html" with avail=var.cached_availability %} {% endif %}
{% if var.original_price %}

{% trans "Original price:" %} {% if event.settings.display_net_prices %} {{ var.original_price.net|money:event.currency }} {% else %} {{ var.original_price.gross|money:event.currency }} {% endif %} {% if item.free_price %}

{% else %} {% trans "New price:" %} {% endif %} {% elif not item.free_price %}

{% endif %} {% if item.free_price %}

{{ event.currency }}

{% elif not var.display_price.gross %} {% if not item.mandatory_priced_addons %} {% trans "free" context "price" %} {% endif %} {% 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 var.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 %}

{{ item.name }}

{% if item.description %}
{{ item.description|localize|rich_text }}
{% endif %} {% if item.do_show_quota_left %} {% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %} {% endif %} {% if item.min_per_order and item.min_per_order > 1 %}

{% blocktrans trimmed with num=item.min_per_order %} minimum amount to order: {{ num }} {% endblocktrans %}

{% endif %}
{% if item.original_price %}

{% trans "Original price:" %} {% if event.settings.display_net_prices %} {{ item.original_price.net|money:event.currency }} {% else %} {{ item.original_price.gross|money:event.currency }} {% endif %} {% if item.free_price %}

{% else %} {% trans "New price:" %} {% endif %} {% elif not item.free_price %}

{% endif %} {% if item.free_price %}

{{ event.currency }}

{% elif not item.display_price.gross %} {% if not item.mandatory_priced_addons %} {% trans "free" context "price" %} {% endif %} {% 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 and options > 0 %}
{% if voucher.min_usages_remaining > 1 %}

{% blocktrans trimmed with number=voucher.min_usages_remaining %} You need to select at least {{ number }} products. {% endblocktrans %}

{% endif %}
{% endif %} {% if "widget_data" in request.GET %} {% endif %}
{% endif %} {% endblock %}