From bddadc1eec4f477ff85e666e009382a274ac1103 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Sep 2019 18:37:06 +0200 Subject: Muliple person deletion wizard --- .../templates/ishtar/wizard/confirm_wizard.html | 3 +- .../templates/ishtar/wizard/delete_wizard.html | 42 ++++++++++++++++++++++ .../ishtar/wizard/wizard_person_deletion.html | 4 +-- 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 ishtar_common/templates/ishtar/wizard/delete_wizard.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/wizard/confirm_wizard.html b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html index e78a2f4a6..56887d28b 100644 --- a/ishtar_common/templates/ishtar/wizard/confirm_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html @@ -15,6 +15,7 @@ {% endblock %} {% block "detailed_informations" %} + {% block "cards" %} {% for form_label, form_data in datas %}
@@ -32,8 +33,8 @@
- {% endfor %} + {% endblock "cards" %} {{wizard.management_form}} {% if not wizard.form.is_hidden %} diff --git a/ishtar_common/templates/ishtar/wizard/delete_wizard.html b/ishtar_common/templates/ishtar/wizard/delete_wizard.html new file mode 100644 index 000000000..82e074eae --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/delete_wizard.html @@ -0,0 +1,42 @@ +{% extends "ishtar/wizard/confirm_wizard.html" %} +{% load i18n %} +{% load range %} +{% block "warning_message" %} +
+

+ {% if current_objs and current_objs.1 %} + {% trans "Are you sure to want to delete theses items?" %} +

+ {% else %} + {% trans "Are you sure to want to delete this item?" %}{% endif %} +

+

{% trans "No rollback is possible. Be careful to scroll to the end of page to check every piece of information." %}

+
+{% endblock %} + +{% block "cards" %} +{% for form_label, form_data in datas %} + +
+ {% if form_label %} +
+ {{form_label}} +
{% endif %} +
+ {% if current_objs and current_objs.1 %}{% for current_object in current_objs %}{% if forloop.counter == forloop.parentloop.counter %} + {% block "detailled_extra_info" %} + {% endblock %} + {% endif %}{% endfor %}{% endif %} +
+ {% for data in form_data %} + + {% endfor %} +
{{data.0}}{{data.1}}
+ + + + +{% endfor %} +{% endblock "cards" %} diff --git a/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html b/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html index 6d1f06bd1..27595286b 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html @@ -1,6 +1,6 @@ -{% extends "ishtar/wizard/confirm_wizard.html" %} +{% extends "ishtar/wizard/delete_wizard.html" %} {% load i18n %} -{% block "extra_informations" %} +{% block "detailled_extra_info" %} {% if current_object.file_responsability.count %}

{% trans "In charge of archaeological files" %}

-- cgit v1.2.3