diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html index e9f6ed5931..a06f496db2 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -5,17 +5,17 @@ {% 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 }}
+{% for tup in items_by_category %}{% with category=tup.0 items=tup.1 id_prefix=tup.2 %} +
+ {% if category %} +

{{ category.name }}

+ {% if category.description %} +
{{ category.description|localize|rich_text }}
{% endif %} {% endif %} - {% for item in tup.1 %} + {% for item in items %} {% if item.has_variations %} -
+
{% if item.picture %} @@ -29,9 +29,9 @@ {% endif %}
-

{{ item.name }}

+

{{ item.name }}

{% if item.description %} -
+
{{ item.description|localize|rich_text }}
{% endif %} @@ -98,14 +98,14 @@
{% for var in item.available_variations %} -
-
{{ var }}
+
{{ var }}
{% if var.description %} -
+
{{ var.description|localize|rich_text }}
{% endif %} @@ -136,11 +136,11 @@
{{ event.currency }} + {% if var.description %} aria-describedby="{{ id_prefix }}item-{{ item.pk }}-{{ var.pk }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- -
{% endif %} @@ -231,7 +231,7 @@
{% else %} -
@@ -247,9 +247,9 @@ {% endif %}
-

{{ item.name }}

+

{{ item.name }}

{% if item.description %} -
+
{{ item.description|localize|rich_text }}
{% endif %} @@ -290,10 +290,10 @@ + {% if item.description %} aria-describedby="{{ id_prefix }}item-{{ item.id }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- -
{% endif %} @@ -383,4 +383,4 @@ {% endif %} {% endfor %}
-{% endfor %} +{% endwith %}{% endfor %}