Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve profile address management
Patryk Zawadzki6c2a39b2f2d9
diff --git a/saleor/userprofile/templates/userprofile/address-delete.html b/saleor/userprofile/templates/userprofile/address-delete.htmlindex b969490b9a..052b6b5a84 100644--- a/saleor/userprofile/templates/userprofile/address-delete.html+++ b/saleor/userprofile/templates/userprofile/address-delete.html@@ -3,9 +3,15 @@{% block title %}{% trans "Delete address" %} — {{ block.super }}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>+ <li><a href=".">{% trans "Delete address" %}</a></li>+{% endblock breadcrumb %}+{% block content %}<h2>{% trans "Are you sure you want to delete the following address?" %}</h2>- <p>{{ object.address }}</p>+ {% include "userprofile/snippets/address-details.html" with address=object.address %}<form action="." method="post">{% csrf_token %}<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>diff --git a/saleor/userprofile/templates/userprofile/address-edit.html b/saleor/userprofile/templates/userprofile/address-edit.htmlindex ebfad2ad24..f855c600b4 100644--- a/saleor/userprofile/templates/userprofile/address-edit.html+++ b/saleor/userprofile/templates/userprofile/address-edit.html@@ -25,7 +25,7 @@</fieldset><div class="form-group"><div class="col-sm-10 col-sm-offset-2">- <button type="submit" class="btn btn-default">Save</button>+ <button type="submit" class="btn btn-primary">Save</button><a href="{% url 'profile:details' %}" class="btn btn-link">Cancel</a></div></div>