Skip to content

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

Fix rendering submit buttons

Marcin Gębala2dfa412f50aa
diff --git a/templates/order/payment/default.html b/templates/order/payment/default.html
index 32d498fbfb..4f0fc2ea7e 100644
--- a/templates/order/payment/default.html
+++ b/templates/order/payment/default.html
@@ -7,8 +7,12 @@
{% csrf_token %}
{{ form.media }}
{% bootstrap_form form %}
- <button type="submit" class="btn primary">
- {% trans "Save changes" context "Payment form primary action" %}
- </button>
+ <div class="form-group">
+ <div class="col-sm-offset-2 col-sm-10">
+ <button type="submit" class="btn primary">
+ {% trans "Save changes" context "Payment form primary action" %}
+ </button>
+ </div>
+ </div>
</form>
{% endblock forms %}
diff --git a/templates/order/payment/stripe.html b/templates/order/payment/stripe.html
index e5cbd9c013..1d29c35b16 100644
--- a/templates/order/payment/stripe.html
+++ b/templates/order/payment/stripe.html
@@ -12,5 +12,12 @@
{% trans "Change payment method" context "Payment form (Stripe) secondary action" %}
</a>
{% endif %}
+ <div class="form-group">
+ <div class="col-sm-offset-2 col-sm-10">
+ <button type="submit" class="btn primary">
+ {% trans "Save changes" context "Payment form primary action" %}
+ </button>
+ </div>
+ </div>
</form>
{% endblock forms %}