{% load i18n %} {% load l10n %} {% load eventurl %} {% load money %} {% load thumb %} {% load eventsignal %} {% load rich_text %} {% for c in form.categories %} {% with category_idx=forloop.counter %}
{{ c.category.name }} {% if c.category.description %} {{ c.category.description|rich_text }} {% endif %} {% if c.min_count == c.max_count %}

{% blocktrans trimmed count min_count=c.min_count %} You need to choose exactly one option from this category. {% plural %} You need to choose {{ min_count }} options from this category. {% endblocktrans %}

{% elif c.min_count == 0 and c.max_count >= c.items|length and not c.multi_allowed %} {% elif c.min_count == 0 %}

{% blocktrans trimmed count max_count=c.max_count %} You can choose {{ max_count }} option from this category. {% plural %} You can choose up to {{ max_count }} options from this category. {% endblocktrans %}

{% else %}

{% blocktrans trimmed with min_count=c.min_count max_count=c.max_count %} You can choose between {{ min_count }} and {{ max_count }} options from this category. {% endblocktrans %}

{% endif %} {% for item in c.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 not hide_prices %} {% if c.price_included %} {% trans "free" context "price" %} {% elif 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 %} {% else %} {{ item.min_price|money:event.currency }} {% endif %} {% endif %}

{% if not event.settings.show_variations_expanded %} {% 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 not hide_prices %} {% if not c.price_included %} {% 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 %} {% trans "New price:" %} {% 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 %} {% else %} {% trans "free" context "price" %} {% endif %} {% endif %}
{% if var.cached_availability.0 == 100 or var.initial %}
{% if c.max_count == 1 or not c.multi_allowed %} {% 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 not hide_prices %} {% if not c.price_included %} {% 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 %} {% trans "New price:" %} {% 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 %} {% else %} {% trans "free" context "price" %} {% endif %} {% endif %}

{% if item.cached_availability.0 == 100 or item.initial %}
{% if c.max_count == 1 or not c.multi_allowed %} {% 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 %} {% empty %} {% trans "There are no add-ons available for this product." %} {% endfor %}