diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-17 17:01:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-17 17:01:28 +0200 |
commit | e3ef037cd3130b93a7b8347caf2a7960377125cc (patch) | |
tree | 3eac2845a09a86decced6ad737e61657d8e3ad3b /archaeological_finds/templates | |
parent | 324c6a34afe67b82621f1e84e7bd1be1dc27445e (diff) | |
download | Ishtar-e3ef037cd3130b93a7b8347caf2a7960377125cc.tar.bz2 Ishtar-e3ef037cd3130b93a7b8347caf2a7960377125cc.zip |
Find modif wizard: manage non coherent base finds
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html b/archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html index b1d77ba81..2ebde34ff 100644 --- a/archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html +++ b/archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html @@ -6,8 +6,15 @@ {% trans 'This find is related to many base finds. To edit field related to base finds edit the corresponding find between theses:' %} <ul>{% for base_find in wizard.form.base_finds %} {% with find=base_find.get_main_find %}<li> + {% if not find %} + <p class="alert-danger"> + <i class="fa fa-exclamation-triangle"></i> + {% trans "Inconsistency in the database: the related base find as not source find." %} + </p> + {% else %} {{find.short_label }} <a href="{% url 'find_modify' find.pk %}"><i class="fa fa-pencil"></i></a> + {% endif %} </li>{% endwith %}{% endfor %}</ul> </div> {% endblock %} |