summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/templates/ishtar/wizard/wizard_simplefind.html7
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 %}