From f71eb195c48207b7af996c16e78301c2f8045688 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 5 May 2025 11:59:17 +0200 Subject: [PATCH] [A11y] Fix service fee HTML-structure (#5046) --- .../pretixpresale/event/fragment_cart.html | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html index cb83f25f0..13bf46555 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html @@ -11,8 +11,11 @@ {% trans "Product" %} {% if download %} {% trans "Ticket download" %} - {% elif not hide_prices %} - {% trans "Price per item" %} + {% else %} + {% trans "Quantity" %} + {% if not hide_prices %} + {% trans "Price per item" %} + {% endif %} {% endif %} {% if not hide_prices %} {% trans "Price total" %} @@ -392,12 +395,20 @@ {% endfor %} {% endfor %} {% for fee in cart.fees %} -
-
+
+
{{ fee.get_fee_type_display }}
+ {% if download %} +
+ {% else %} +
+ {% if not hide_prices %} +
+ {% endif %} + {% endif %} {% if not hide_prices %} -
+
{% if event.settings.display_net_prices %} {{ fee.net_value|money:event.currency }} {% if fee.tax_rate %}