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 a190c442f..e84f3c38e 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html @@ -197,14 +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-labelledby="cp-{{ form.pos.pk }}-item-{{ item.pk }}-{{ var.pk }}-legend cp-{{ form.pos.pk }}-item-{{ item.pk }}-legend" 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 %} + {% trans "Quantity" %} + aria-labelledby="cp-{{ form.pos.pk }}-item-{{ item.pk }}-{{ var.pk }}-legend cp-{{ form.pos.pk }}-item-{{ item.pk }}-legend">
{% endif %} @@ -343,14 +343,14 @@ {% endif %} 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 %}" + aria-labelledby="cp-{{ form.pos.pk }}-item-{{ item.pk }}-legend" 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 %} + {% trans "Quantity" %} + aria-labelledby="cp-{{ form.pos.pk }}-item-{{ item.pk }}-legend">
{% endif %} 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 17cbab4e7..7a8a7900f 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -213,14 +213,14 @@ {% if not ev.presale_is_running %}disabled{% endif %} id="{{ form_prefix }}variation_{{ item.id }}_{{ var.id }}" name="{{ form_prefix }}variation_{{ item.id }}_{{ var.id }}" - aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}" + aria-labelledby="{{ form_prefix }}item-{{ item.pk }}-{{ var.pk }}-legend {{ form_prefix }}item-{{ item.pk }}-legend" {% if var.description %} aria-describedby="{{ form_prefix }}item-{{ item.pk }}-{{ var.pk }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- {% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %} + {% trans "Quantity" %} + aria-labelledby="{{ form_prefix }}item-{{ item.pk }}-{{ var.pk }}-legend {{ form_prefix }}item-{{ item.pk }}-legend">
@@ -365,14 +365,14 @@ {% endif %} {% if not ev.presale_is_running %}disabled{% endif %} name="{{ form_prefix }}item_{{ item.id }}" id="{{ form_prefix }}item_{{ item.id }}" - aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}" + aria-labelledby="{{ form_prefix }}item-{{ item.pk }}-legend" {% if item.description %} aria-describedby="{{ form_prefix }}item-{{ item.id }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- {% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %} + {% trans "Quantity" %} + aria-labelledby="{{ form_prefix }}item-{{ item.pk }}-legend">
diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 0e40e2e19..4347aaca7 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -98,11 +98,11 @@ {% endif %}
-

+

{{ item.name }}

{% if item.description %} -
+
{{ item.description|localize|rich_text }}
{% endif %} @@ -225,21 +225,21 @@ id="variation_{{ item.id }}_{{ var.id }}" name="variation_{{ item.id }}_{{ var.id }}" {% if options == 1 %}checked{% endif %} - aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}" + aria-labelledby="item-{{ item.pk }}-{{ var.pk }}-legend item-{{ item.pk }}-legend" {% if var.description %} aria-describedby="item-{{ item.pk }}-{{ var.pk }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- {% blocktrans with item=item.name %}Add {{ item }}, {{ var }} to cart{% endblocktrans %} + {% trans "Quantity" %} + aria-labelledby="item-{{ item.pk }}-{{ var.pk }}-legend item-{{ item.pk }}-legend">
{% endif %} @@ -249,7 +249,7 @@ {% if options == 1 %}checked="checked"{% endif %} id="variation_{{ item.id }}_{{ var.id }}" value="variation_{{ item.id }}_{{ var.id }}" - aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}" + aria-labelledby="item-{{ item.pk }}-{{ var.pk }}-legend" {% if var.description %} aria-describedby="item-{{ item.pk }}-{{ var.pk }}-description"{% endif %}> {% endif %} @@ -380,14 +380,14 @@ id="item_{{ item.id }}" name="item_{{ item.id }}" {% if options == 1 %}checked{% endif %} - aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}" + aria-labelledby="item-{{ item.pk }}-legend" {% if item.description %} aria-describedby="item-{{ item.id }}-description"{% endif %}> {% trans "Select" context "checkbox" %} {% else %}
- {% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %} + {% trans "Quantity" %} + aria-labelledby="item-{{ item.pk }}-legend">
{% endif %} @@ -405,7 +405,7 @@ {% if options == 1 %}checked="checked"{% endif %} id="item_{{ item.id }}" value="item_{{ item.id }}" - aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}" + aria-labelledby="item-{{ item.pk }}-legend" {% if item.description %} aria-describedby="item-{{ item.id }}-description"{% endif %}> {% endif %}