Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use common delete confirmation base template for not possible class deletion
Jakub Draganek327674192cde
diff --git a/templates/dashboard/product/product_class/modal_cannot_delete_class.html b/templates/dashboard/product/product_class/modal_cannot_delete_class.htmlnew file mode 100644index 0000000000..122972d943--- /dev/null+++ b/templates/dashboard/product/product_class/modal_cannot_delete_class.html@@ -0,0 +1,24 @@+{% extends "dashboard/modal_confirm_delete.html" %}++{% load i18n %}+{% load prices_i18n %}++{% block title %}+{% trans "Error" context "Dashboard error" %}+{% endblock %}++{% block content %}+<div class="col s12 center-align">+ <p>+ {% blocktrans trimmed context "Modal delete product class with products text" %}+ This type is base for created products. Cannot remove it.+ {% endblocktrans %}+ </p>+</div>+{% endblock content %}++{% block footer %}+<a href="#!" class="modal-action modal-close btn-flat">+ {% trans "Cancel" context "Dashboard cancel action" %}+</a>+{% endblock footer %}