summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/delete_wizard.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 18:37:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 18:37:29 +0200
commitbddadc1eec4f477ff85e666e009382a274ac1103 (patch)
tree81714ce5e159dcdd06faed1b44b2fa4ccdf22e1a /ishtar_common/templates/ishtar/wizard/delete_wizard.html
parent9bc04754f1a8a01cb7457c335c41a3b2fee0a68c (diff)
downloadIshtar-bddadc1eec4f477ff85e666e009382a274ac1103.tar.bz2
Ishtar-bddadc1eec4f477ff85e666e009382a274ac1103.zip
Muliple person deletion wizard
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/delete_wizard.html')
-rw-r--r--ishtar_common/templates/ishtar/wizard/delete_wizard.html42
1 files changed, 42 insertions, 0 deletions
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" %}
+<div class="alert alert-danger">
+ <p><i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
+ {% if current_objs and current_objs.1 %}
+ {% trans "Are you sure to want to delete theses items?" %}
+ <ul>{% for obj in current_objs %}
+ <li>{{obj}}</li>
+ {% endfor %}</ul>
+ {% else %}
+ {% trans "Are you sure to want to delete this item?" %}{% endif %}
+ </p>
+ <p>{% trans "No rollback is possible. Be careful to scroll to the end of page to check every piece of information." %}</p>
+</div>
+{% endblock %}
+
+{% block "cards" %}
+{% for form_label, form_data in datas %}
+
+<div class="card">
+ {% if form_label %}
+ <div class="card-header">
+ {{form_label}}
+ </div>{% endif %}
+ <div class="card-body">
+ {% 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 %}
+ <table class='table'>
+ {% for data in form_data %}
+ <tr{% if data.2 %} class='{{data.2}}'{%endif%}><th>{{data.0}}</th><td>{{data.1}}</td></tr>
+ {% endfor %}
+ </table>
+
+ </div>
+</div>
+
+{% endfor %}
+{% endblock "cards" %}