Skip to content

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

Template fixes

Patryk Zawadzki4b58baa19508
diff --git a/saleor/checkout/templates/checkout/summary.html b/saleor/checkout/templates/checkout/summary.html
index ba619b72a9..84a6b9c16a 100644
--- a/saleor/checkout/templates/checkout/summary.html
+++ b/saleor/checkout/templates/checkout/summary.html
@@ -4,7 +4,11 @@
{% block forms %}
<h3>{% trans "Billing address" %}</h3>
- <address>{% include "userprofile/snippets/address-details.html" with address=checkout.billing_address %}</address>
+ {% if checkout.billing_address %}
+ <address>{% include "userprofile/snippets/address-details.html" with address=checkout.billing_address %}</address>
+ {% else %}
+ <p>{% trans "No address given yet." %}</p>
+ {% endif %}
<h3>{% trans "Order details" %}</h3>
diff --git a/saleor/userprofile/templates/userprofile/details.html b/saleor/userprofile/templates/userprofile/details.html
index 6a507481ff..5db68ef602 100644
--- a/saleor/userprofile/templates/userprofile/details.html
+++ b/saleor/userprofile/templates/userprofile/details.html
@@ -52,7 +52,7 @@
{% else %}
<form method="post" action="{% url "profile:address-make-default" pk=entry.pk purpose="shipping" %}" class="form-inline form-horizontal">
{% csrf_token %}
- <button type="submit" class="btn btn-default">{% trans "Make default" %}</button>
+ <button type="submit" class="btn btn-default btn-sm">{% trans "Make default" %}</button>
</form>
{% endif %}
</td>