Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Reformat code

dominik-zeglen5e7c89b51224
diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher-form.html
index c29da9d0ff..53a68462f4 100644
--- a/templates/checkout/snippets/voucher-form.html
+++ b/templates/checkout/snippets/voucher-form.html
@@ -4,30 +4,30 @@
{% load discount_as_negative from voucher %}
{% if form %}
- {% if discount %}
- <form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"
- method="post"
- class="float-left input-btn">
- {% csrf_token %}
- <span>{{ discount.name }}</span>
- <button type="submit"
- class="btn btn-link"
- aria-label="{% trans "Remove" context "Checkout voucher form action" %}">
- {% trans "(Remove)" context "Checkout voucher form action" %}
- </button>
+ {% if discount %}
+ <form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"
+ method="post"
+ class="float-left input-btn">
+ {% csrf_token %}
+ <span>{{ discount.name }}</span>
+ <button type="submit"
+ class="btn btn-link"
+ aria-label="{% trans "Remove" context "Checkout voucher form action" %}">
+ {% trans "(Remove)" context "Checkout voucher form action" %}
+ </button>
- </form>
- <div class="float-right">
- {% discount_as_negative discount %}
- </div>
- {% else %}
- <form action="{{ request.path }}?next={{ request.path }}"
- method="post">
- {% csrf_token %}
- <div class="form-group input-btn">
- {% trans "Use" context "Checkout voucher form action" as use_voucher %}
- {% bootstrap_field form.voucher show_label=False %} {% bootstrap_button use_voucher button_type="submit" button_class="btn secondary narrow" %}
- </div>
- </form>
- {% endif %}
+ </form>
+ <div class="float-right">
+ {% discount_as_negative discount %}
+ </div>
+ {% else %}
+ <form action="{{ request.path }}?next={{ request.path }}"
+ method="post">
+ {% csrf_token %}
+ <div class="form-group input-btn">
+ {% trans "Use" context "Checkout voucher form action" as use_voucher %}
+ {% bootstrap_field form.voucher show_label=False %} {% bootstrap_button use_voucher button_type="submit" button_class="btn secondary narrow" %}
+ </div>
+ </form>
+ {% endif %}
{% endif %}