From e63c940dddbae1751fd9655cae5596ae0284d619 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 5 Oct 2020 11:50:14 +0100 Subject: Nice deletion confirmation using view.get_success_url for the cancel button --- .../register/engagementevent_confirm_delete.html | 28 ++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/ctrack/register/templates/register/engagementevent_confirm_delete.html b/ctrack/register/templates/register/engagementevent_confirm_delete.html index 20aec9e..ec61949 100644 --- a/ctrack/register/templates/register/engagementevent_confirm_delete.html +++ b/ctrack/register/templates/register/engagementevent_confirm_delete.html @@ -7,8 +7,28 @@ {% load crispy_forms_tags %} {% block content %} -
{% csrf_token %} -

Are you sure you want to delete "{{ object }}"?

- -
+
+
+
+
+
+
Confirm deletion
+
Are you sure you want to delete the event {{ object.type.descriptor }} | {{ object.short_description }}?
+
+

This event was created by {{ object.user }} - ensure you have their permission.

+
+
+
+ {% csrf_token %} +
+ + Cancel +
+
+
+
+
+
+
+
{% endblock content %} -- cgit v1.2.3