diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-28 17:14:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-28 17:14:20 +0100 |
commit | 4c99f2d8afcfdb6104edc679ec9b7fce81ceec0c (patch) | |
tree | 2f9fd95b3448ae0623249584bd174d008f6b85f3 /archaeological_finds/templates | |
parent | 1f5e9d5ae4895d3b96a6a2df55a7baa98c4fedc3 (diff) | |
download | Ishtar-4c99f2d8afcfdb6104edc679ec9b7fce81ceec0c.tar.bz2 Ishtar-4c99f2d8afcfdb6104edc679ec9b7fce81ceec0c.zip |
Treatment deletion: more explicit messages.
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html b/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html new file mode 100644 index 000000000..b0ebe7409 --- /dev/null +++ b/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html @@ -0,0 +1,27 @@ +{% extends "ishtar/wizard/confirm_wizard.html" %} +{% load i18n %} + +{% block "warning_message" %} +{% with has_downstream=current_object.downstream.count %} +<div class="alert alert-{% if has_downstream %}danger{% else %}warning{% endif%}"> + <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> + {% trans "Are you sure you want to delete this treatment?" %} +{% if has_downstream %} + {% trans "The following finds will be deleted and restored to a previous version."%} + <ul>{% for item in current_object.downstream.all %} + <li> + {{item}} + </li> + {% endfor %}</ul> + {% trans "All changes made to the associated finds since this treatment record will be lost!" %} +{% endif %} +</div> + +<div class="alert alert-info"> + {% trans "Treatment informations:" %} +</div> + + + +{% endwith %} +{% endblock %} |