From 7a4aead22dbe3795459298f04a26588d365677b6 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Mon, 30 Sep 2024 21:16:17 +0200 Subject: [PATCH] rename id_prefix to form_prefix --- .../event/fragment_product_list.html | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) 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 8cdbb0b60f..d9b281b2ed 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -5,20 +5,20 @@ {% load thumb %} {% load eventsignal %} {% load rich_text %} -{% for tup in items_by_category %}{% with category=tup.0 items=tup.1 id_prefix=tup.2 %} +{% for tup in items_by_category %}{% with category=tup.0 items=tup.1 form_prefix=tup.2 %} {% if category %} -
-

{{ category.name }}

+
+

{{ category.name }}

{% if category.description %} -
{{ category.description|localize|rich_text }}
+
{{ category.description|localize|rich_text }}
{% endif %} {% else %} -
-

{% trans "Uncategorized items" %}

+
+

{% trans "Uncategorized items" %}

{% endif %} {% for item in items %} {% if item.has_variations %} -
+
{% if item.picture %} @@ -32,9 +32,9 @@ {% endif %}
-

{{ item.name }}

+

{{ item.name }}

{% if item.description %} -
+
{{ item.description|localize|rich_text }}
{% endif %} @@ -101,14 +101,14 @@
{% for var in item.available_variations %} -
-
{{ var }}
+
{{ var }}
{% if var.description %} -
+
{{ var.description|localize|rich_text }}
{% endif %} @@ -139,11 +139,11 @@
{{ event.currency }} + {% if var.description %} aria-describedby="{{ form_prefix }}item-{{ item.pk }}-{{ var.pk }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- -
{% endif %} @@ -234,7 +234,7 @@
{% else %} -
@@ -250,9 +250,9 @@ {% endif %}
-

{{ item.name }}

+

{{ item.name }}

{% if item.description %} -
+
{{ item.description|localize|rich_text }}
{% endif %} @@ -293,10 +293,10 @@ + {% if item.description %} aria-describedby="{{ form_prefix }}item-{{ item.id }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- -
{% endif %}