Skip to content

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

Better step navigation in checkout

Patryk Zawadzki5f23d304aa88
diff --git a/saleor/checkout/templates/checkout/address.html b/saleor/checkout/templates/checkout/address.html
index 6e14c59268..d565ee27ea 100644
--- a/saleor/checkout/templates/checkout/address.html
+++ b/saleor/checkout/templates/checkout/address.html
@@ -3,11 +3,7 @@
{% load i18n %}
{% block forms %}
- {% block introduction %}{% endblock %}
-
{% if address_book %}
- <hr>
-
<p>{% trans "Use one of your existing addresses or enter a new address below." %}</p>
<div class="row">
diff --git a/saleor/checkout/templates/checkout/billing.html b/saleor/checkout/templates/checkout/billing.html
index df5ec64c30..4fb2452a4d 100644
--- a/saleor/checkout/templates/checkout/billing.html
+++ b/saleor/checkout/templates/checkout/billing.html
@@ -3,10 +3,6 @@
{% load as_horizontal_form from bootstrap %}
{% load i18n %}
-{% block introduction %}
- <h2>{% trans "Billing address" %}</h2>
-{% endblock %}
-
{% block use_this_address %}
<button type="submit" class="btn {% if entry.is_default %}btn-primary{% else %}btn-default{% endif %} btn-lg col-sm-12">{% trans "Bill to this address" %}</button>
{% endblock %}
diff --git a/saleor/checkout/templates/checkout/details.html b/saleor/checkout/templates/checkout/details.html
index f5e2a18cf8..3d2d4807d7 100644
--- a/saleor/checkout/templates/checkout/details.html
+++ b/saleor/checkout/templates/checkout/details.html
@@ -20,13 +20,16 @@
{% endblock %}
{% block content %}
-<ul class="nav nav-tabs">
+<ul class="nav nav-pills nav-justified">
{% for stepitem in checkout %}
- <li class="{% if stepitem == step %}active{% else %}disabled{% endif %}">
+ <li class="{% if stepitem == step %}active{% endif %}">
<a href="{{ stepitem.get_absolute_url }}">{% if stepitem %}<i class="glyphicon glyphicon-ok-sign"></i> {% endif %}{{ stepitem }}</a>
</li>
{% endfor %}
</ul>
+
+<hr>
+
{% block forms %}{% endblock %}
{% endblock content %}
diff --git a/saleor/checkout/templates/checkout/digitaldelivery.html b/saleor/checkout/templates/checkout/digitaldelivery.html
index d541cd8a05..963ecef7c9 100644
--- a/saleor/checkout/templates/checkout/digitaldelivery.html
+++ b/saleor/checkout/templates/checkout/digitaldelivery.html
@@ -3,8 +3,6 @@
{% load as_horizontal_form from bootstrap %}
{% block forms %}
-<h2>{% trans "Digital delivery address" %}</h2>
-
<form method="post" class="form-horizontal">
{% csrf_token %}
<fieldset>
diff --git a/saleor/checkout/templates/checkout/shipping.html b/saleor/checkout/templates/checkout/shipping.html
index dcdc09ad0b..abe9633ecf 100644
--- a/saleor/checkout/templates/checkout/shipping.html
+++ b/saleor/checkout/templates/checkout/shipping.html
@@ -3,10 +3,6 @@
{% load as_vertical_form from bootstrap %}
{% load i18n %}
-{% block introduction %}
- <h2>{% trans "Shipping address" %}</h2>
-{% endblock %}
-
{% block use_this_address %}
<button type="submit" class="btn {% if entry.is_default %}btn-primary{% else %}btn-default{% endif %} btn-lg col-sm-12">{% trans "Deliver to this address" %}</button>
{% endblock %}
diff --git a/saleor/checkout/templates/checkout/summary.html b/saleor/checkout/templates/checkout/summary.html
index f837e9fa67..f19f67ff06 100644
--- a/saleor/checkout/templates/checkout/summary.html
+++ b/saleor/checkout/templates/checkout/summary.html
@@ -3,8 +3,7 @@
{% load i18n %}
{% block forms %}
- <h2>{% trans "Summary" %}</h2>
-
+ <h3>{% trans "Billing address" %}</h3>
{% include "userprofile/snippets/address-details.html" with address=checkout.billing_address %}
<table class="table table-striped">