summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-10-02 11:57:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commita930c0a56b2cba4799e9caf76375b23f366feaf6 (patch)
tree131da1d6da468eda01c99f03d77be2267ea7cb22 /ishtar_common/templates/ishtar
parent3ffbf5d51476061e11a98013ec3073eed568ef95 (diff)
downloadIshtar-a930c0a56b2cba4799e9caf76375b23f366feaf6.tar.bz2
Ishtar-a930c0a56b2cba4799e9caf76375b23f366feaf6.zip
Container: warning message about associated finds, containers on deletion
Diffstat (limited to 'ishtar_common/templates/ishtar')
-rw-r--r--ishtar_common/templates/ishtar/wizard/delete_wizard.html26
-rw-r--r--ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html2
-rw-r--r--ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html2
3 files changed, 17 insertions, 13 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/delete_wizard.html b/ishtar_common/templates/ishtar/wizard/delete_wizard.html
index 21c5f31b5..3a3d5ab1d 100644
--- a/ishtar_common/templates/ishtar/wizard/delete_wizard.html
+++ b/ishtar_common/templates/ishtar/wizard/delete_wizard.html
@@ -3,15 +3,15 @@
{% 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>
+ <div><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 %}
+ </div>
<p>{% trans "No rollback is possible. Be careful to scroll to the end of page to check every piece of information." %}</p>
</div>
{% endblock %}
@@ -26,7 +26,7 @@
</div>{% endif %}
<div class="card-body">
{% for current_object in current_objs %}{% if forloop.counter == forloop.parentloop.counter %}
- {% block "detailled_extra_info" %}
+ {% block "detailed_extra_info" %}
{% endblock %}
{% endif %}{% endfor %}
<table class='table'>
@@ -34,9 +34,13 @@
<tr{% if data.2 %} class='{{data.2}}'{%endif%}><th>{{data.0}}</th><td>{{data.1}}</td></tr>
{% endfor %}
</table>
-
</div>
</div>
+{% for current_object in current_objs %}{% if forloop.counter == forloop.parentloop.counter %}
+{% block "detailed_related_info" %}
+{% endblock %}
+{% endif %}{% endfor %}
+
{% endfor %}
{% endblock "cards" %}
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html b/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html
index bd45ab5e8..ba99042d9 100644
--- a/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html
+++ b/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html
@@ -1,6 +1,6 @@
{% extends "ishtar/wizard/delete_wizard.html" %}
{% load i18n %}
-{% block "detailled_extra_info" %}
+{% block "detailed_extra_info" %}
{% if current_object.members.count %}
<h3>{% trans "Associated persons" %}</h3>
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html b/ishtar_common/templates/ishtar/wizard/wizard_person_deletion.html
index 27595286b..d078aeba3 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/delete_wizard.html" %}
{% load i18n %}
-{% block "detailled_extra_info" %}
+{% block "detailed_extra_info" %}
{% if current_object.file_responsability.count %}
<h3>{% trans "In charge of archaeological files" %}</h3>