Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use common delete confirmation for attribute deletion
Jakub Draganek47392444d7b4
diff --git a/templates/dashboard/product/product_attribute/modal_confirm_delete.html b/templates/dashboard/product/product_attribute/modal_confirm_delete.htmlindex 6f4de99b8c..400019dfca 100644--- a/templates/dashboard/product/product_attribute/modal_confirm_delete.html+++ b/templates/dashboard/product/product_attribute/modal_confirm_delete.html@@ -1,23 +1,15 @@+{% extends "dashboard/modal_confirm_delete.html" %}+{% load i18n %}-<form action="{% url "dashboard:product-attribute-delete" pk=attribute.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>- {% trans "Are you sure?" context "Dashboard confirmation modal" %}- </h5>- <p>- {% blocktrans trimmed context "Modal delete attribute text" %}- You are about to delete an attribute <strong>{{ attribute }}</strong>.- {% endblocktrans %}- </p>- </div>- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat">- {% trans "Delete" context "Dashboard delete action" %}- </button>- <a href="#!" class="modal-action modal-close btn-flat">- {% trans "Cancel" context "Dashboard cancel action" %}- </a>- </div>-</form>+{% block action_url %}+{% url "dashboard:product-attribute-delete" pk=attribute.pk %}+{% endblock %}++{% block content %}+<p>+{% blocktrans trimmed context "Modal delete attribute text" %}+You are about to delete an attribute <strong>{{ attribute }}</strong>.+{% endblocktrans %}+</p>+{% endblock content %}