From 641c6e4e397641b4de3aa15e674241e2b7b7f7f6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 19 Nov 2014 01:34:46 +0100 Subject: forms: generalize DeleteGroup for generic confirmation Group deletion is now done with an extra confirmation step on a new page. There is a simple confirmation form that only contains a hidden field and the csrf magic. This commit also removes the direct deletion form on the group page and replace is with a simple button to the new confirmation page. --- templates/group.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'templates/group.html') diff --git a/templates/group.html b/templates/group.html index 6c4d85c..5691e1b 100644 --- a/templates/group.html +++ b/templates/group.html @@ -32,20 +32,22 @@
-

Delete this group

+

+ + Operations + +

-
-
- {% for field in delete_form %} - {{ render_field(field) }} - {% endfor %} -
-
- -
-
-
+
+
+ {% endblock %} -- cgit v1.2.3-1-g7c22