Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Set empty class property for remove modal actions
Anna Siwik80bce35f4e19
diff --git a/templates/dashboard/base_modal.html b/templates/dashboard/base_modal.htmlindex 983567d310..4db0dc5c47 100644--- a/templates/dashboard/base_modal.html+++ b/templates/dashboard/base_modal.html@@ -1,6 +1,8 @@{% load i18n %}-<form role="form" action="{% block action_url %}#!{% endblock %}" method="post" class="form-async" novalidate>+<form+ role="form" method="post" action="{% block action_url %}#!{% endblock %}"+ class="{% block form_class %}form-async{% endblock %}" novalidate>{% csrf_token %}<div class="modal-content"><div class="row">diff --git a/templates/dashboard/category/modal/confirm_delete.html b/templates/dashboard/category/modal/confirm_delete.htmlindex 010592f429..4ac36519ae 100644--- a/templates/dashboard/category/modal/confirm_delete.html+++ b/templates/dashboard/category/modal/confirm_delete.html@@ -3,6 +3,8 @@{% load i18n %}{% load mptt_tags %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:category-delete" pk=category.pk %}{% endblock %}diff --git a/templates/dashboard/customer/modal/confirm_promote.html b/templates/dashboard/customer/modal/confirm_promote.htmlindex 0200a63cee..ffa3c8d0ce 100644--- a/templates/dashboard/customer/modal/confirm_promote.html+++ b/templates/dashboard/customer/modal/confirm_promote.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:customer-promote' pk=customer.pk %}{% endblock %}diff --git a/templates/dashboard/discount/sale/modal/confirm_delete.html b/templates/dashboard/discount/sale/modal/confirm_delete.htmlindex 179cfda25d..dd6fd044d3 100644--- a/templates/dashboard/discount/sale/modal/confirm_delete.html+++ b/templates/dashboard/discount/sale/modal/confirm_delete.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:sale-delete" pk=sale.pk %}{% endblock %}diff --git a/templates/dashboard/discount/voucher/modal/confirm_delete.html b/templates/dashboard/discount/voucher/modal/confirm_delete.htmlindex 9075bc1969..6f2fac8b7c 100644--- a/templates/dashboard/discount/voucher/modal/confirm_delete.html+++ b/templates/dashboard/discount/voucher/modal/confirm_delete.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:voucher-delete" pk=voucher.pk %}{% endblock %}diff --git a/templates/dashboard/group/modal/confirm_delete.html b/templates/dashboard/group/modal/confirm_delete.htmlindex b6f65309e6..43d034cb3e 100644--- a/templates/dashboard/group/modal/confirm_delete.html+++ b/templates/dashboard/group/modal/confirm_delete.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:group-delete' pk=group.pk %}{% endblock %}diff --git a/templates/dashboard/product/modal/confirm_delete.html b/templates/dashboard/product/modal/confirm_delete.htmlindex 0636af1796..20c9a69e0b 100644--- a/templates/dashboard/product/modal/confirm_delete.html+++ b/templates/dashboard/product/modal/confirm_delete.html@@ -3,6 +3,8 @@{% load i18n %}{% load prices_i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:product-delete' pk=product.pk %}{% endblock %}diff --git a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.htmlindex e333332521..5cde5ab93f 100644--- a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html+++ b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:product-attribute-delete" pk=attribute.pk %}{% endblock %}diff --git a/templates/dashboard/product/product_class/modal/confirm_delete.html b/templates/dashboard/product/product_class/modal/confirm_delete.htmlindex cdd6c77b46..e4e2c4f2e1 100644--- a/templates/dashboard/product/product_class/modal/confirm_delete.html+++ b/templates/dashboard/product/product_class/modal/confirm_delete.html@@ -4,6 +4,8 @@{% load prices_i18n %}{% load staticfiles %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:product-class-delete" pk=product_class.pk %}{% endblock %}diff --git a/templates/dashboard/product/product_image/modal/confirm_delete.html b/templates/dashboard/product/product_image/modal/confirm_delete.htmlindex d3dc9ffb22..0620d92b79 100644--- a/templates/dashboard/product/product_image/modal/confirm_delete.html+++ b/templates/dashboard/product/product_image/modal/confirm_delete.html@@ -3,6 +3,8 @@{% load i18n %}{% load product_first_image from product_images %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}{% endblock %}diff --git a/templates/dashboard/product/product_variant/modal/confirm_delete.html b/templates/dashboard/product/product_variant/modal/confirm_delete.htmlindex 87088c6a1d..7c59d36a15 100644--- a/templates/dashboard/product/product_variant/modal/confirm_delete.html+++ b/templates/dashboard/product/product_variant/modal/confirm_delete.html@@ -4,6 +4,8 @@{% load prices_i18n %}{% load staticfiles %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url "dashboard:variant-delete" product_pk=product.pk variant_pk=variant.pk %}{% endblock %}diff --git a/templates/dashboard/product/stock/modal/confirm_delete.html b/templates/dashboard/product/stock/modal/confirm_delete.htmlindex 90be0b1912..1485064e68 100644--- a/templates/dashboard/product/stock/modal/confirm_delete.html+++ b/templates/dashboard/product/stock/modal/confirm_delete.html@@ -3,6 +3,8 @@{% load i18n %}{% load prices_i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:variant-stock-delete' product_pk=product.pk variant_pk=variant.pk stock_pk=stock.pk %}{% endblock %}diff --git a/templates/dashboard/product/stock_location/modal/confirm_delete.html b/templates/dashboard/product/stock_location/modal/confirm_delete.htmlindex eb672ba5e4..5d95e1f01b 100644--- a/templates/dashboard/product/stock_location/modal/confirm_delete.html+++ b/templates/dashboard/product/stock_location/modal/confirm_delete.html@@ -2,6 +2,8 @@{% load i18n %}+{% block form_class %}{% endblock %}+{% block action_url %}{% url 'dashboard:product-stock-location-delete' location.pk %}{% endblock %}