From f600200ec620e5d931ab203ce5b340ab99e3fda4 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 3 Jun 2025 10:06:40 +0200 Subject: [PATCH] [A11y] improve questions step (#5199) * [A11y] fix copy-answer buttons being inside interactive summary * fix legends missing fieldsets * indent explanation-texts * Do not indent explanation, move copy-button after explanation * fix code indent * remove unneccessary change --- .../event/checkout_questions.html | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html index c75ffa74b..f5320d954 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html @@ -1,5 +1,6 @@ {% extends "pretixpresale/event/checkout_base.html" %} {% load i18n %} +{% load icon %} {% load bootstrap3 %} {% load rich_text %} {% load lists %} @@ -74,14 +75,6 @@ {% if pos.variation %} – {{ pos.variation }} {% endif %} - {% if forloop.counter > 1 %} - - {% if event.settings.checkout_show_copy_answers_button %} - - {% endif %} - - {% endif %}
@@ -89,6 +82,17 @@ {% if event.settings.attendee_data_explanation_text and pos.item.ask_attendee_data %} {{ event.settings.attendee_data_explanation_text|rich_text }} {% endif %} + {% if forloop.counter > 1 and event.settings.checkout_show_copy_answers_button %} +
+
+ +
+
+ {% endif %} {% if pos.seat %}
{% endif %} +
+ {{ pos.item.name }}{% if pos.variation %} – {{ pos.variation }}{% endif %} {% for form in forms %} {% if form.pos.item != pos.item %} +
+
{# Add-Ons #} - {% if form.show_copy_answers_to_addon_button and event.settings.checkout_show_copy_answers_button %} - - - - {% endif %} + {{ form.pos.item.name }}{% if form.pos.variation %} – {{ form.pos.variation.value }}{% endif %} {% endif %} @@ -157,8 +160,20 @@ {% endif %} + {% if form.show_copy_answers_to_addon_button and event.settings.checkout_show_copy_answers_button %} +
+
+ +
+
+ {% endif %} + {% bootstrap_form form layout="checkout" %} +
{% endfor %}