Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use base template modal confirmation for voucher deletion
Jakub Draganekc30ce4874ed1
diff --git a/templates/dashboard/discount/voucher_modal_confirm_delete.html b/templates/dashboard/discount/voucher_modal_confirm_delete.htmlindex 16013201ee..5463f67791 100644--- a/templates/dashboard/discount/voucher_modal_confirm_delete.html+++ b/templates/dashboard/discount/voucher_modal_confirm_delete.html@@ -1,23 +1,13 @@+{% extends "dashboard/modal_confirm_delete.html" %}+{% load i18n %}-<form action="{% url "dashboard:voucher-delete" pk=voucher.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 voucher text" %}- You are about to delete <strong>{{ voucher }}</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:voucher-delete" pk=voucher.pk %}+{% endblock %}++{% block content %}+{% blocktrans trimmed context "Delete voucher text" %}+You are about to delete <strong>{{ voucher }}</strong>.+{% endblocktrans %}+{% endblock content %}