Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use explicit labels for action buttons in checkout
Patryk Zawadzki5d8e8d86eda8
diff --git a/saleor/checkout/templates/checkout/address.html b/saleor/checkout/templates/checkout/address.htmlindex 4a192c40ba..48b5499fdd 100644--- a/saleor/checkout/templates/checkout/address.html+++ b/saleor/checkout/templates/checkout/address.html@@ -45,9 +45,11 @@<div class="form-group"><label class="col-sm-2"></label><div class="col-sm-10">- <button type="submit" class="btn btn-primary">- {% trans "Save address" %}- </button>+ {% block form_submit %}+ <button type="submit" class="btn btn-primary">+ {% trans "Save address" %}+ </button>+ {% endblock %}</div></div></form>diff --git a/saleor/checkout/templates/checkout/billing.html b/saleor/checkout/templates/checkout/billing.htmlindex 4fb2452a4d..3c50e277cd 100644--- a/saleor/checkout/templates/checkout/billing.html+++ b/saleor/checkout/templates/checkout/billing.html@@ -12,3 +12,9 @@{{ step.forms.anonymous|as_horizontal_form }}{% endif %}{% endblock extra_forms %}++{% block form_submit %}+ <button type="submit" class="btn btn-primary">+ {% trans "Bill to this address" %}+ </button>+{% endblock %}diff --git a/saleor/checkout/templates/checkout/digitaldelivery.html b/saleor/checkout/templates/checkout/digitaldelivery.htmlindex 963ecef7c9..3c9231f046 100644--- a/saleor/checkout/templates/checkout/digitaldelivery.html+++ b/saleor/checkout/templates/checkout/digitaldelivery.html@@ -12,7 +12,7 @@<div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-primary">- {% trans "Save address" %}+ {% trans "Send to this address" %}</button></div></div>diff --git a/saleor/checkout/templates/checkout/shipping.html b/saleor/checkout/templates/checkout/shipping.htmlindex abe9633ecf..875bcd14a0 100644--- a/saleor/checkout/templates/checkout/shipping.html+++ b/saleor/checkout/templates/checkout/shipping.html@@ -4,7 +4,7 @@{% load i18n %}{% 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>+ <button type="submit" class="btn {% if entry.is_default %}btn-primary{% else %}btn-default{% endif %} btn-lg col-sm-12">{% trans "Ship to this address" %}</button>{% endblock %}{% block extra_address_fields %}@@ -14,3 +14,9 @@{% block extra_forms %}{{ delivery_form|as_horizontal_form }}{% endblock extra_forms %}++{% block form_submit %}+ <button type="submit" class="btn btn-primary">+ {% trans "Ship to this address" %}+ </button>+{% endblock %}