diff --git a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js index 75ff8f40f9..8b4ca095c7 100644 --- a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js +++ b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js @@ -92,8 +92,8 @@ var pretixpaypal = { } // We are setting the cogwheel already here, as the renderAPM() method might take some time to get loaded. - let apmtextselector = $("label[for=input_payment_paypal_apm]"); - apmtextselector.prepend(' '); + const apmtextselector = $("input[name=payment][value=paypal_apm]").closest("label").find(".accordion-label-text"); + apmtextselector.append(' '); let sdk_url = 'https://www.paypal.com/sdk/js' + '?client-id=' + pretixpaypal.client_id + @@ -269,11 +269,7 @@ var pretixpaypal = { renderAPMs: function () { pretixpaypal.restore(); let inputselector = $("input[name=payment][value=paypal_apm]"); - // The first selector is used on the regular payment-step of the checkout flow - // The second selector is used for the payment method change view. - // In the long run, the layout of both pages should be adjusted to be one. - let textselector = $("label[for=input_payment_paypal_apm]"); - let textselector2 = inputselector.next("strong"); + let textselector = inputselector.closest("label").find('.accordion-label-text'); let eligibles = []; pretixpaypal.paypal.getFundingSources().forEach(function (fundingSource) { @@ -297,10 +293,6 @@ var pretixpaypal = { textselector.text(eligibles.join(', ')); textselector.fadeIn(300); }); - textselector2.fadeOut(300, function () { - textselector2[0].textContent = eligibles.join(', '); - textselector2.fadeIn(300); - }); }, guessLocale: function() { diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html b/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html index 5398eb5885..df8388494d 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html @@ -8,134 +8,118 @@
{% csrf_token %}
-
-
-
-

+

+ + + +
+ {% if customer %} +

+ {% blocktrans trimmed with org=request.organizer.name %} + You are currently logged in with the following credentials. + {% endblocktrans %}

-
-
- + {% if signup_allowed %} -
-
-
-

+

+ +
+ aria-controls="customer_register" /> + {% trans "Create a new customer account" %} + + + +
+ {% bootstrap_form register_form layout="checkout" %} +

+ {% blocktrans trimmed with org=request.organizer.name %} + We will send you an email with a link to activate your account and set a password, so + you can use the account for future orders at {{ org }}. You can still go ahead with this + purchase before you received the email. + {% endblocktrans %} +

- -
+ {% endif %} {% if guest_allowed %} -
-
-
-

+

+ +
+ aria-controls="customer_guest" /> + {% trans "Continue as a guest" %} + + + +
+

+ {% blocktrans trimmed %} + You are not required to create an account. If you proceed as a guest, you will be able + to access the details and status of your order any time through the secret link we will + send you via email once the order is complete. + {% endblocktrans %} +

- -
+ {% endif %}
diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html b/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html index b17a711ff8..84d23059f3 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html @@ -62,58 +62,52 @@ {% endif %}
{% for p in providers %} -
-
-
-

+

+ +
-
-