diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html index b0b5bab565..5498b63fc9 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html @@ -6,13 +6,14 @@ {% 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 %} @@ -21,7 +22,7 @@

{% 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 %} @@ -29,7 +30,7 @@ {% 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. @@ -58,7 +59,7 @@ {% 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 }} @@ -196,12 +197,14 @@ {% endif %} id="cp_{{ form.pos.pk }}_variation_{{ item.id }}_{{ var.id }}" name="cp_{{ form.pos.pk }}_variation_{{ item.id }}_{{ var.id }}" - aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}"> + aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}" + aria-describedby="c-{{ form.pos.pk }}-{{ category_idx }}-addon-count-desc"> {% trans "Select" context "checkbox" %} {% else %} -

+
+ {% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+
{% endif %} {% else %} @@ -250,7 +253,7 @@ {% 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 }} @@ -341,12 +344,13 @@ name="cp_{{ form.pos.pk }}_item_{{ item.id }}" id="cp_{{ form.pos.pk }}_item_{{ item.id }}" aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}" - {% if item.description %} aria-describedby="cp-{{ form.pos.pk }}-item-{{ item.id }}-description"{% endif %}> + aria-describedby="c-{{ form.pos.pk }}-{{ category_idx }}-addon-count-desc"> {% trans "Select" context "checkbox" %} {% else %} -

+
+ {% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+ {% endif %} {% else %} @@ -370,6 +373,7 @@ {% endif %} {% endfor %} + {% endwith %} {% empty %} {% trans "There are no add-ons available for this product." %} 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 7f7d487b1a..a3834b9d46 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -219,7 +219,8 @@ {% trans "Select" context "checkbox" %} {% else %} -
+
+ {% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+ {% endif %} {% else %} @@ -370,7 +371,8 @@ {% trans "Select" context "checkbox" %} {% else %} -
+
+ {% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+ {% endif %} {% else %} diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 706300f30b..556222f228 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -231,16 +231,17 @@ {% trans "Select" context "checkbox" %} {% else %} -
+
+ {% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+ {% endif %} {% else %} {% else %} -
+
+ {% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %} + aria-label="{% trans "Quantity" %}"> -
+ {% endif %} {% else %}