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 5768fc33f..e9e54add1 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 = $("input[name=payment][value=paypal_apm]").closest("label").find(".panel-title"); - apmtextselector.prepend(' '); + const apmtextselector = $("input[name=payment][value=paypal_apm]").closest("fieldset").find(".provider-name"); + 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 = inputselector.closest("label").find('.panel-title'); - let textselector2 = inputselector.next("strong"); + let textselector = inputselector.closest("fieldset").find('.provider-name'); 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_payment.html b/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html index 2099018cb..4925d4299 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_payment.html @@ -74,7 +74,7 @@ {% if selected == p.provider.identifier %}checked="checked"{% endif %} aria-controls="payment_{{ p.provider.identifier }}" data-wallets="{{ p.provider.walletqueries|join:"|" }}" /> - {{ p.provider.public_name }} + {{ p.provider.public_name }} diff --git a/src/pretix/presale/templates/pretixpresale/event/order_pay_change.html b/src/pretix/presale/templates/pretixpresale/event/order_pay_change.html index baf6310fa..853ad9576 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order_pay_change.html +++ b/src/pretix/presale/templates/pretixpresale/event/order_pay_change.html @@ -29,29 +29,24 @@ {% endif %}
{% for p in providers %} -
-
-

-

+ {{ p.provider.public_name }} + + + +
+ {{ p.form }}
- -
+ {% empty %}
{% trans "There are no alternative payment providers available for this order." %}