summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-06 19:22:41 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-06 19:24:15 +0100
commitb8517e71ef80647740ddecd93fc5baeb9c775257 (patch)
tree049a1cc0687437fddc3011874fbe023c7e467e40 /ishtar_common
parentc1b0fc6772ac8b8d8c9923b93c595a1d5f9558fc (diff)
downloadIshtar-b8517e71ef80647740ddecd93fc5baeb9c775257.tar.bz2
Ishtar-b8517e71ef80647740ddecd93fc5baeb9c775257.zip
Administrative act: add a warning when associated item is deleted (refs #4554)
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html5
-rw-r--r--ishtar_common/wizards.py1
2 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html b/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html
new file mode 100644
index 000000000..c1284b94d
--- /dev/null
+++ b/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html
@@ -0,0 +1,5 @@
+{% extends "ishtar/wizard/delete_wizard.html" %}
+{% load i18n %}
+{% block "extra_warning" %}
+<p><strong>{% trans "If any, all administrative act listed above will be deleted." %}</strong></p>
+{% endblock %}
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index aa3ef68ab..c2383e2de 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1944,7 +1944,6 @@ class IshtarUserDeletionWizard(MultipleDeletionWizard):
def get_formated_datas(self, forms):
datas = super(IshtarUserDeletionWizard, self).get_formated_datas(forms)
- print(self.current_objs, datas)
for idx, values in enumerate(datas):
obj = self.current_objs[idx]
datas[idx][1].append((_("Username"), obj.user_ptr.username))