From c7060d188fccf2bc8c301f36cd0cff60752b342b Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 3 Mar 2023 14:26:11 +0100 Subject: [PATCH] Product list: Indent variations, improve alignment of price and quantity (#3135) --- .../event/fragment_addon_choice.html | 21 +++++------ .../event/fragment_availability.html | 4 +-- .../event/fragment_product_list.html | 25 ++++++------- .../pretixpresale/event/voucher.html | 18 +++++----- src/pretix/static/pretixbase/js/details.js | 2 +- .../static/pretixpresale/scss/_event.scss | 36 ++++++++++++++++++- .../static/pretixpresale/scss/_rtl.scss | 5 +++ .../static/pretixpresale/scss/main.scss | 4 ++- 8 files changed, 79 insertions(+), 36 deletions(-) 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 01b401a2c..f223a5337 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html @@ -40,7 +40,7 @@ {% if item.has_variations %}
-
+
{% if item.picture %}
-
+

{% if c.price_included %} {% trans "free" context "price" %} @@ -89,13 +89,14 @@ {% endif %}

-
+
{% if not event.settings.show_variations_expanded %} {% endif %}
@@ -104,7 +105,7 @@
{% for var in item.available_variations %}
-
+
{{ var }}
{% if var.description %}
@@ -115,7 +116,7 @@ {% include "pretixpresale/event/fragment_quota_left.html" with avail=var.cached_availability %} {% endif %}
-
+
{% if not c.price_included %} {% if var.original_price %} {% trans "Original price:" %} @@ -170,7 +171,7 @@ {% endif %}
{% if var.cached_availability.0 == 100 or var.initial %} -
+
{% if c.max_count == 1 or not c.multi_allowed %}