Skip to content

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

Switch position of 'confirm' button with 'cancel' button

dominik-zeglen1c5864408dc9
diff --git a/templates/dashboard/base_modal_confirm_delete.html b/templates/dashboard/base_modal_confirm_delete.html
index e5f7e1cebe..596836eecd 100644
--- a/templates/dashboard/base_modal_confirm_delete.html
+++ b/templates/dashboard/base_modal_confirm_delete.html
@@ -18,12 +18,12 @@
</div>
<div class="modal-footer">
{% block footer %}
- <button type="submit" class="modal-action btn-flat">
- {% trans "Remove" context "Dashboard delete action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Remove" context "Dashboard delete action" %}
+ </button>
{% endblock footer %}
</div>
</form>
diff --git a/templates/dashboard/category/modal/edit.html b/templates/dashboard/category/modal/edit.html
index 6329d83828..770219d468 100644
--- a/templates/dashboard/category/modal/edit.html
+++ b/templates/dashboard/category/modal/edit.html
@@ -21,11 +21,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Update" context "Dashboard update action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Update" context "Dashboard update action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/customer/modal/confirm_promote.html b/templates/dashboard/customer/modal/confirm_promote.html
index 5205b7341d..3c7d9f481b 100644
--- a/templates/dashboard/customer/modal/confirm_promote.html
+++ b/templates/dashboard/customer/modal/confirm_promote.html
@@ -13,11 +13,11 @@
{% trans "Are you sure?" context "Dashboard confirmation modal" %}
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Promote" context "Dashboard promote action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Promote" context "Dashboard promote action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/add_note.html b/templates/dashboard/order/modal/add_note.html
index d75b6fd8c4..1169b9e8a1 100644
--- a/templates/dashboard/order/modal/add_note.html
+++ b/templates/dashboard/order/modal/add_note.html
@@ -16,11 +16,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Save note" context "Modal add note primary action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Save note" context "Modal add note primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/cancel_delivery_group.html b/templates/dashboard/order/modal/cancel_delivery_group.html
index b648def6a1..6c1f1b0872 100644
--- a/templates/dashboard/order/modal/cancel_delivery_group.html
+++ b/templates/dashboard/order/modal/cancel_delivery_group.html
@@ -14,11 +14,11 @@
</p>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Cancel this shipment" context "Modal cancel delivery group primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Abort" context "Dashboard abort action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Cancel this shipment" context "Modal cancel delivery group primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/cancel_line.html b/templates/dashboard/order/modal/cancel_line.html
index c5a16ce358..4399be32a3 100644
--- a/templates/dashboard/order/modal/cancel_line.html
+++ b/templates/dashboard/order/modal/cancel_line.html
@@ -56,11 +56,11 @@
</table>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Remove" context "Dashboard remove action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Remove" context "Dashboard remove action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/cancel_order.html b/templates/dashboard/order/modal/cancel_order.html
index 7af43913ea..176f00004d 100644
--- a/templates/dashboard/order/modal/cancel_order.html
+++ b/templates/dashboard/order/modal/cancel_order.html
@@ -16,11 +16,11 @@
<form id="release-form" method="post" role="form" class="form-async"
action="{% url 'dashboard:order-cancel' order_pk=order.pk %}" novalidate>
{% csrf_token %}
- <button type="submit" class="modal-action btn-flat">
- {% trans "Cancel Order" context "Modal cancel order primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Abort" context "Dashboard abort action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Cancel Order" context "Modal cancel order primary action" %}
+ </button>
</form>
</div>
diff --git a/templates/dashboard/order/modal/capture.html b/templates/dashboard/order/modal/capture.html
index 9b45b6c7ab..74a7fd785f 100644
--- a/templates/dashboard/order/modal/capture.html
+++ b/templates/dashboard/order/modal/capture.html
@@ -25,11 +25,11 @@
</ul>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Capture" context "Modal capture payment primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Capture" context "Modal capture payment primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/change_quantity.html b/templates/dashboard/order/modal/change_quantity.html
index 399032e060..1bf1057e37 100644
--- a/templates/dashboard/order/modal/change_quantity.html
+++ b/templates/dashboard/order/modal/change_quantity.html
@@ -12,11 +12,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Update" context "Dashboard update action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Update" context "Dashboard update action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/delivery_group_stock.html b/templates/dashboard/order/modal/delivery_group_stock.html
index b29bcc579d..cd0ddfcc11 100644
--- a/templates/dashboard/order/modal/delivery_group_stock.html
+++ b/templates/dashboard/order/modal/delivery_group_stock.html
@@ -16,11 +16,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Save" context "Dashboard update action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Save" context "Dashboard update action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/order_remove_voucher.html b/templates/dashboard/order/modal/order_remove_voucher.html
index 111aab1894..aa41a94742 100644
--- a/templates/dashboard/order/modal/order_remove_voucher.html
+++ b/templates/dashboard/order/modal/order_remove_voucher.html
@@ -15,11 +15,11 @@
<form id="release-form" method="post" role="form" class="form-async"
action="{% url 'dashboard:order-remove-voucher' order_pk=order.pk %}" novalidate>
{% csrf_token %}
- <button type="submit" class="modal-action btn-flat">
- {% trans "Remove voucher" context "Modal remove voucher from order primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Abort" context "Dashboard abort action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Remove voucher" context "Modal remove voucher from order primary action" %}
+ </button>
</form>
</div>
diff --git a/templates/dashboard/order/modal/refund.html b/templates/dashboard/order/modal/refund.html
index 130e680ac2..25101a3803 100644
--- a/templates/dashboard/order/modal/refund.html
+++ b/templates/dashboard/order/modal/refund.html
@@ -25,11 +25,11 @@
</ul>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Refund" context "Modal refund payment primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Refund" context "Modal refund payment primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/release.html b/templates/dashboard/order/modal/release.html
index 3d6cec23bf..4f4a6c2783 100644
--- a/templates/dashboard/order/modal/release.html
+++ b/templates/dashboard/order/modal/release.html
@@ -12,11 +12,11 @@
<div class="modal-footer">
<form id="release-form" method="post" role="form" class="form-async" action="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}" novalidate>
{% csrf_token %}
- <button type="submit" class="modal-action btn-flat">
- {% trans "Release" context "Modal release payment primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Release" context "Modal release payment primary action" %}
+ </button>
</form>
</div>
diff --git a/templates/dashboard/order/modal/ship_delivery_group.html b/templates/dashboard/order/modal/ship_delivery_group.html
index 471d675de0..b3cc94ec15 100644
--- a/templates/dashboard/order/modal/ship_delivery_group.html
+++ b/templates/dashboard/order/modal/ship_delivery_group.html
@@ -16,11 +16,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Ship" context "Modal ship delivery group primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Ship" context "Modal ship delivery group primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/order/modal/split_order_line.html b/templates/dashboard/order/modal/split_order_line.html
index 803eb0bb1d..247daece5d 100644
--- a/templates/dashboard/order/modal/split_order_line.html
+++ b/templates/dashboard/order/modal/split_order_line.html
@@ -12,11 +12,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Split" context "Modal split order line primary action" %}
- </button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Split" context "Modal split order line primary action" %}
+ </button>
</div>
</form>
diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.html
index 9152a8f59a..6e469dfc63 100644
--- a/templates/dashboard/product/list.html
+++ b/templates/dashboard/product/list.html
@@ -133,12 +133,12 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Create new" context "Dashboard add action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Create new" context "Dashboard add action" %}
+ </button>
</div>
</form>
</div>
diff --git a/templates/dashboard/product/product_variant/modal/select_images.html b/templates/dashboard/product/product_variant/modal/select_images.html
index 058f6c3e37..2103075da7 100644
--- a/templates/dashboard/product/product_variant/modal/select_images.html
+++ b/templates/dashboard/product/product_variant/modal/select_images.html
@@ -13,11 +13,11 @@
</div>
</div>
<div class="modal-footer">
- <button type="submit" class="modal-action btn-flat">
- {% trans "Save" context "Dashboard modal action" %}
- </button>
<a href="#!" class="modal-action modal-close btn-flat">
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
+ <button type="submit" class="modal-action btn-flat">
+ {% trans "Save" context "Dashboard modal action" %}
+ </button>
</div>
</form>