Skip to content

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

Improve checkout forms styles

Paweł Kowalewski1f8fe7040776
diff --git a/saleor/checkout/templates/checkout/address.html b/saleor/checkout/templates/checkout/address.html
index b410c1143b..6bb97d7db4 100644
--- a/saleor/checkout/templates/checkout/address.html
+++ b/saleor/checkout/templates/checkout/address.html
@@ -1,5 +1,5 @@
{% extends "checkout/details.html" %}
-{% load as_horizontal_form from bootstrap %}
+{% load as_vertical_form from bootstrap %}
{% load i18n %}
{% block forms %}
@@ -40,24 +40,28 @@
{% endif %}
{% endif %}
- <form method="post" class="form-horizontal collapse{% if not address_book or not existing_address_selected %} in{% endif %}" id="address-form">
- {% csrf_token %}
- <fieldset>
- <legend>{% trans "Enter address" %}</legend>
- {{ step.forms.address|as_horizontal_form }}
- {% block extra_forms %}{% endblock %}
- </fieldset>
+ <div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" class="{% if not address_book or not existing_address_selected %} in{% endif %}" id="address-form">
+ {% csrf_token %}
+ <fieldset>
+ {{ step.forms.address|as_vertical_form }}
+ {% block extra_forms %}{% endblock %}
+ </fieldset>
- <div class="form-group">
- <label class="col-sm-2"></label>
- <div class="col-sm-10">
- {% block form_submit %}
- <button type="submit" class="btn btn-primary">
- {% trans "Save address" %}
- </button>
- {% endblock %}
+ <div class="form-group">
+ {% block form_submit %}
+ <button type="submit" class="btn btn-primary">
+ {% trans "Save address" %}
+ </button>
+ {% endblock %}
+ </div>
+ </form>
+ </div>
</div>
</div>
- </form>
+ </div>
{% endblock forms %}
diff --git a/saleor/checkout/templates/checkout/billing.html b/saleor/checkout/templates/checkout/billing.html
index 594990b420..a3a9efd4da 100644
--- a/saleor/checkout/templates/checkout/billing.html
+++ b/saleor/checkout/templates/checkout/billing.html
@@ -1,6 +1,6 @@
{% extends "checkout/address.html" %}
-{% load as_horizontal_form from bootstrap %}
+{% load as_vertical_form from bootstrap %}
{% load i18n %}
{% block use_this_address %}
@@ -9,7 +9,7 @@
{% block extra_forms %}
{% if not user.is_authenticated %}
- {{ step.forms.anonymous|as_horizontal_form }}
+ {{ step.forms.anonymous|as_vertical_form }}
{% endif %}
{% endblock extra_forms %}