{% load i18n %} {% load l10n %} {% load eventurl %} {% load money %} {% load thumb %} {% load eventsignal %} {% load rich_text %} {% for tup in items_by_category %}{% with category=tup.0 items=tup.1 form_prefix=tup.2 %} {% if category %}
{{ category.name }} {% if category.subevent_name %} {{ category.subevent_name }} {% endif %} {% if category.category_has_discount %} {% trans "Congratulations!" %} {% trans "Your order qualifies for a discount" %} {% endif %} {% if category.description %}
{{ category.description|localize|rich_text }}
{% endif %} {% else %}
{% trans "Uncategorized items" %} {% endif %} {% for item in items %} {% if item.has_variations %}
{% if item.picture %} {{ item.name }} {% endif %}
{{ item.name }} {% if item.description %}
{{ item.description|localize|rich_text }}
{% 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.free_price %} {% blocktrans trimmed with price=item.min_price|money:event.currency %} from {{ price }} {% endblocktrans %} {% elif item.min_price != item.max_price %} {% blocktrans trimmed with from_price=item.min_price|money:event.currency to_price=item.max_price|money:event.currency %} from {{ from_price }} to {{ to_price }} {% endblocktrans %} {% elif not item.min_price and not item.max_price and not item.mandatory_priced_addons %} {% trans "free" context "price" %} {% elif not item.mandatory_priced_addons %} {{ item.min_price|money:event.currency }} {% endif %}
{% if not event.settings.show_variations_expanded %} {% if item.best_variation_availability <= 10 %} {% if not item.min_price %} {% trans "FULLY BOOKED" %} {% else %} {% trans "SOLD OUT" %} {% endif %} {% if allow_waitinglist and item.allow_waitinglist %}
{% trans "Waiting list" %} {% endif %}
{% elif avail < 100 %} {% trans "Reserved" %} {% if allow_waitinglist and item.allow_waitinglist %}
{% trans "Waiting list" %} {% endif %}
{% endif %} {% 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 or var.original_price %} {% 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 and not item.current_unavailability_reason and not var.current_unavailability_reason %}
{% if var.order_max == 1 %} {% else %}
{% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}
{% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross original_price=var.original_price.gross avail=var.cached_availability.0 event=event item=item var=var %} {% 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 %}

{% elif not item.display_price.gross %} {% if not item.mandatory_priced_addons or item.original_price %} {% 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 and not item.current_unavailability_reason %}
{% if item.order_max == 1 %} {% else %}
{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}
{% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross original_price=item.original_price.gross avail=item.cached_availability.0 event=event item=item var=0 %} {% endif %}
{% endif %} {% endfor %}
{% endwith %}{% endfor %}