diff --git a/core/static/core/forms.scss b/core/static/core/forms.scss index 2abffbba..fa34644d 100644 --- a/core/static/core/forms.scss +++ b/core/static/core/forms.scss @@ -141,7 +141,6 @@ form { display: block; margin: calc(var(--nf-input-size) * 1.5) auto 10px; line-height: 1; - white-space: nowrap; .fields-centered { padding: 10px 10px 0; diff --git a/eboutic/templates/eboutic/eboutic_checkout.jinja b/eboutic/templates/eboutic/eboutic_checkout.jinja index f842f536..ff7ef730 100644 --- a/eboutic/templates/eboutic/eboutic_checkout.jinja +++ b/eboutic/templates/eboutic/eboutic_checkout.jinja @@ -59,13 +59,21 @@
{{ billing_infos_form }}
- {% include "core/base/notifications.jinja" %} -
+ {% endif %} + {% include "core/base/notifications.jinja" %} + + {# In order to have one CGV button for both payment means, + there is only one form, which action will be given + the `formaction` attribute of the selected submit input #} +
+ + +
+ {% if settings.SITH_EBOUTIC_CB_ENABLED %} @@ -79,30 +87,23 @@ :disabled="!isCbAvailable" {% endif %} class="btn btn-blue" + formaction="{{ settings.SITH_EBOUTIC_ET_URL }}" value="{% trans %}Pay with credit card{% endtrans %}" /> -
- {% else %} -
- {% trans trimmed %} - Credit card payments are currently disabled on the eboutic. - You may still refill your account in one of the AE counters. - Please excuse us for the inconvenience. - {% endtrans %} -
- {% endif %} - {% if basket.contains_refilling_item %} -

{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}

- {% elif basket.total > user.account_balance %} -

{% trans %}AE account payment disabled because you do not have enough money remaining.{% endtrans %}

- {% else %} -
+ {% else %} +
+ {% trans trimmed %} + Credit card payments are currently disabled on the eboutic. + You may still refill your account in one of the AE counters. + Please excuse us for the inconvenience. + {% endtrans %} +
+ {% endif %} + {% if basket.contains_refilling_item %} +

{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}

+ {% elif basket.total > user.account_balance %} +

{% trans %}AE account payment disabled because you do not have enough money remaining.{% endtrans %}

+ {% else %} {% csrf_token %} -
- {% endif %} - -
- - -
- - + {% endif %} + {% endblock %} \ No newline at end of file