From 5e963d87d9b554c305be12b2e559d41bfde3c864 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Thu, 15 Dec 2022 11:22:28 +0100 Subject: [PATCH] Presale: Improve visibiltity of edit links on order confirm/details page (Z#23108817) --- .../pretixpresale/event/checkout_confirm.html | 46 +++++++----------- .../templates/pretixpresale/event/order.html | 48 ++++++++----------- .../static/pretixpresale/scss/_event.scss | 1 + .../static/pretixpresale/scss/main.scss | 8 ++++ 4 files changed, 46 insertions(+), 57 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_confirm.html b/src/pretix/presale/templates/pretixpresale/event/checkout_confirm.html index bb35e2eea1..57c890d7df 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_confirm.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_confirm.html @@ -18,6 +18,9 @@

{% trans "Your cart" %} + + {% trans "Add or remove tickets" %} +

@@ -27,30 +30,21 @@ {% trans "Cart expired" %} {% endif %} - - - - {% trans "Add or remove tickets" %} - -
{% include "pretixpresale/event/fragment_cart.html" with cart=cart event=request.event editable=False %}
{% if payments %} -
+
- {% if payment_provider.identifier != "free" %} - - {% endif %}

{% trans "Payment" %} + {% if payment_provider.identifier != "free" %} + + {% trans "Modify" %} + + {% endif %}

    @@ -78,16 +72,13 @@
    {% if invoice_address_asked %}
    -
    +
    -

    {% trans "Invoice information" %} + + {% trans "Modify" %} +

    @@ -128,16 +119,13 @@
    {% endif %}
    -
    +
    -

    {% trans "Contact information" %} + + {% trans "Modify" %} +

    diff --git a/src/pretix/presale/templates/pretixpresale/event/order.html b/src/pretix/presale/templates/pretixpresale/event/order.html index 104f937278..f8cb03388b 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order.html +++ b/src/pretix/presale/templates/pretixpresale/event/order.html @@ -100,23 +100,21 @@ {% if last_payment %} {{ last_payment_info }} {% if can_pay %} - +

    {% endif %} {% else %} {% if can_pay %} - +

    {% endif %} {% endif %} - -
    {% endif %} @@ -191,18 +189,15 @@ {% endif %} {% endif %} {% include "pretixpresale/event/fragment_downloads.html" with position_page=False %} -
    +
    - {% if order.can_modify_answers %} - - {% endif %}

    {% trans "Ordered items" %} + {% if order.can_modify_answers %} + + {% trans "Change details" %} + + {% endif %}

    @@ -284,20 +279,17 @@
    {% endif %}
    -
    +
    - {% if invoice_address_asked or request.event.settings.invoice_name_required %} - {% if order.can_modify_answers %} - - {% endif %} - {% endif %}

    {% trans "Your information" %} + {% if invoice_address_asked or request.event.settings.invoice_name_required %} + {% if order.can_modify_answers %} + + {% trans "Change details" %} + + {% endif %} + {% endif %}

    @@ -347,7 +339,7 @@
    {% if user_change_allowed or user_cancel_allowed %} -
    +

    {% trans "Change or cancel your order" context "action" %} diff --git a/src/pretix/static/pretixpresale/scss/_event.scss b/src/pretix/static/pretixpresale/scss/_event.scss index 93dea28334..c5786364f4 100644 --- a/src/pretix/static/pretixpresale/scss/_event.scss +++ b/src/pretix/static/pretixpresale/scss/_event.scss @@ -140,6 +140,7 @@ article.item-with-variations .product-row:last-child:after { display: none; } +.panel-body > *:last-child, .panel-body address:last-child { margin-bottom: 0; } diff --git a/src/pretix/static/pretixpresale/scss/main.scss b/src/pretix/static/pretixpresale/scss/main.scss index 868b8fee02..94e29d955f 100644 --- a/src/pretix/static/pretixpresale/scss/main.scss +++ b/src/pretix/static/pretixpresale/scss/main.scss @@ -367,6 +367,14 @@ body.loading .container { background-color: darken($btn-primary-bg, 10%); } +.panel-title a.h6 { + text-decoration: underline; + margin-left: .5em; +} +.panel-title a.h6 .fa { + margin-left: .25em; + margin-right: .25em; +} details { list-style: none;