Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing cancel button
Krzysztof Białogłowicz40fbb9f8fc63
diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.htmlindex aa7c079d40..1d2921e157 100644--- a/templates/dashboard/discount/sale_form.html+++ b/templates/dashboard/discount/sale_form.html@@ -73,10 +73,14 @@<div class="card-action right-align">{% if sale.pk %}+ <a href="{% url 'dashboard:sale-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Sale (discount) secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Sale (discount) primary action" %}</button>{% else %}+ <a href="{% url 'dashboard:sale-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Sake (discount) secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Sale (discount) primary action" %}</button>diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.htmlindex 7b7ef18947..6980e39597 100644--- a/templates/dashboard/discount/voucher_form.html+++ b/templates/dashboard/discount/voucher_form.html@@ -104,8 +104,12 @@<div class="card-action right-align">{% if voucher.pk %}+ <a href="{% url 'dashboard:voucher-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Voucher form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Voucher form primary action" %}</button>{% else %}+ <a href="{% url 'dashboard:voucher-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Voucher form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Voucher form primary action" %}</button>{% endif %}</div>diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.htmlindex 8e13edfcbf..2038e73545 100644--- a/templates/dashboard/product/attributes/form.html+++ b/templates/dashboard/product/attributes/form.html@@ -100,8 +100,12 @@<div class="card-action right-align">{% if attribute.pk %}+ <a href="{% url 'dashboard:product-attributes' %}" class="btn btn-flat">+ {% trans "Cancel" context "Attribute secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Attribute values formset action" %}</button>{% else %}+ <a href="{% url 'dashboard:product-attributes' %}" class="btn btn-flat">+ {% trans "Cancel" context "Attribute secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Attribute values formset action" %}</button>{% endif %}</div>diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.htmlindex 674acba6da..a840f245c6 100644--- a/templates/dashboard/product/product_class_form.html+++ b/templates/dashboard/product/product_class_form.html@@ -80,13 +80,20 @@</div></div><div class="card-action right-align">- <button type="submit" class="btn btn-flat">- {% if product_class.pk %}+ {% if product_class.pk %}+ <a href="{% url 'dashboard:product-class-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product class secondary action" %}</a>+ <button type="submit" class="btn btn-flat">{% trans "Update" context "Product class primary action" %}- {% else %}+ </button>+ {% else %}+ <a href="{% url 'dashboard:product-class-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product class secondary action" %}</a>+ <button type="submit" class="btn btn-flat">{% trans "Create" context "Product class primary action" %}- {% endif %}- </button>+ </button>+ {% endif %}+</div></form></div>diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.htmlindex bdb6f22f05..6f35bd9982 100644--- a/templates/dashboard/product/product_form.html+++ b/templates/dashboard/product/product_form.html@@ -139,10 +139,14 @@</div><div class="card-action right-align">{% if product.pk %}+ <a href="{% url 'dashboard:product-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Product form details tab action" %}</button>{% else %}+ <a href="{% url 'dashboard:product-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Product form details tab action" %}</button>diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.htmlindex b095179e6d..c6918abd1c 100644--- a/templates/dashboard/product/product_image_form.html+++ b/templates/dashboard/product/product_image_form.html@@ -74,8 +74,12 @@<div class="card-action right-align">{% if product_image.pk %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">+ {% trans "Cancel" context "Image form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Image form primary action" %}</button>{% else %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">+ {% trans "Cancel" context "Image form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Image form secondary action" %}</button>{% endif %}</div>diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.htmlindex 5cf8267684..06d43b736e 100644--- a/templates/dashboard/product/stock_form.html+++ b/templates/dashboard/product/stock_form.html@@ -80,10 +80,14 @@<div class="card-action right-align">{% if stock.pk %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">+ {% trans "Cancel" context "Stock form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Stock form action" %}</button>{% else %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">+ {% trans "Cancel" context "Stock form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Stock form action" %}</button>diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.htmlindex 356f5a113d..b70667472c 100644--- a/templates/dashboard/product/stock_locations/form.html+++ b/templates/dashboard/product/stock_locations/form.html@@ -52,10 +52,14 @@<div class="card-action right-align">{% if location.pk %}+ <a href="{% url 'dashboard:product-stock-location-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product stock location secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Stock location detail action" %}</button>{% else %}+ <a href="{% url 'dashboard:product-stock-location-list' %}" class="btn btn-flat">+ {% trans "Cancel" context "Product stock location secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Stock location detail action" %}</button>diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.htmlindex 4f8215ab45..8d9178a125 100644--- a/templates/dashboard/product/variant_form.html+++ b/templates/dashboard/product/variant_form.html@@ -80,10 +80,14 @@<div class="card-action right-align">{% if variant.pk %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">+ {% trans "Cancel" context "Variant form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Update" context "Variant form action" %}</button>{% else %}+ <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">+ {% trans "Cancel" context "Variant form secondary action" %}</a><button type="submit" class="btn btn-flat">{% trans "Create" context "Variant form action" %}</button>