{% load i18n %} {% load l10n %} {% load eventurl %} {% load money %} {% load thumb %} {% load eventsignal %} {% load rich_text %} {% 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_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 %} {% 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 item.require_voucher %} {% elif var.cached_availability.0 == 100 %}
{% if var.order_max == 1 %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_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 %} {% 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.require_voucher %} {% elif item.cached_availability.0 == 100 %}
{% if item.order_max == 1 %} {% else %} {% endif %}
{% else %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 event=event item=item var=0 %} {% endif %}
{% endif %} {% endfor %}
{% endfor %}