{% extends "pretixpresale/event/base.html" %} {% load i18n %} {% load l10n %} {% load eventurl %} {% load thumbnail %} {% load markup_tags %} {% block title %}{% trans "Presale" %}{% endblock %} {% block content %} {% if cart.positions %}

{% trans "Your cart" %}

{% include "pretixpresale/event/fragment_cart.html" with cart=cart event=request.event editable=True %}
{% if cart.minutes_left > 0 %} {% blocktrans trimmed with minutes=cart.minutes_left %} The items in your cart are reserved for you for {{ minutes }} minutes. {% endblocktrans %} {% else %} {% trans "The items in your cart are no longer reserved for you." %} {% endif %}
{% endif %} {% if not event.presale_is_running %}
{% if event.presale_has_ended %} {% blocktrans trimmed %} The presale period for this event is over. {% endblocktrans %} {% elif event.settings.presale_start_show_date %} {% blocktrans trimmed with date=event.presale_start|date:"SHORT_DATE_FORMAT" time=event.presale_start|time:"TIME_FORMAT" %} The presale for this event will start on {{ date }} at {{ time }}. {% endblocktrans %} {% else %} {% blocktrans trimmed %} The presale for this event has not yet started. {% endblocktrans %} {% endif %}
{% endif %} {% if frontpage_text %} {{ frontpage_text|apply_markup:"markdown"|linebreaks }} {% endif %} {% 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|apply_markup:"markdown" }}

{% 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|apply_markup:"markdown" }}

{% 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 event.settings.show_quota_left %} {% include "pretixpresale/event/fragment_quota_left.html" with avail=var.cached_availability %} {% endif %}
{% if item.free_price %}
{{ event.currency }}
{% else %} {{ event.currency }} {{ var.price|floatformat:2 }} {% endif %} {% if 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|apply_markup:"markdown" }}

{% endif %} {% if event.settings.show_quota_left %} {% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %} {% endif %}
{% if item.free_price %}
{{ event.currency }}
{% else %} {{ event.currency }} {{ item.price|floatformat:2 }} {% endif %} {% if item.tax_rate %} {% blocktrans trimmed with rate=item.tax_rate %} incl. {{ rate }}% taxes {% endblocktrans %} {% endif %}
{% if item.require_voucher %}
{% trans "Enter a voucher code below to buy this ticket." %}
{% elif item.cached_availability.0 == 100 %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with avail=item.cached_availability.0 %} {% endif %}
{% endif %} {% endfor %}
{% endfor %} {% if event.presale_is_running %}
{% endif %}
{% endif %} {% if vouchers_exist %}

{% trans "Redeem a voucher" %}

{% endif %} {% endblock %}