Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use base template modal confirmation for sale deletion
Jakub Draganek22eab8a2951d
diff --git a/templates/dashboard/discount/sale_modal_confirm_delete.html b/templates/dashboard/discount/sale_modal_confirm_delete.htmlindex e1f39085cf..c00d64549f 100644--- a/templates/dashboard/discount/sale_modal_confirm_delete.html+++ b/templates/dashboard/discount/sale_modal_confirm_delete.html@@ -1,23 +1,11 @@+{% extends "dashboard/modal_confirm_delete.html" %}+{% load i18n %}-<form action="{% url "dashboard:sale-delete" pk=sale.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>- {% trans "Are you sure?" context "Dashboard confirmation modal" %}- </h5>- <p>- {% blocktrans trimmed context "Delete sale (discount) text" %}- You are about to delete <strong>{{ sale }}</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:sale-delete" pk=sale.pk %}{% endblock %}++{% block content %}+{% blocktrans trimmed context "Delete sale (discount) text" %}+You are about to delete <strong>{{ sale }}</strong>.+{% endblocktrans %}+{% endblock content %}