summaryrefslogtreecommitdiff
path: root/archaeological_files
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-09-28 17:42:02 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-09-28 17:42:02 +0200
commit4fcafb2275f1f4fe366fb4ac5e162e938ff65a75 (patch)
tree8e3f802bfbc43513efed4692087a26cb3f0a66f6 /archaeological_files
parent65891cf11bf454fa3f8d23b79b7eca40bdfc88c5 (diff)
downloadIshtar-4fcafb2275f1f4fe366fb4ac5e162e938ff65a75.tar.bz2
Ishtar-4fcafb2275f1f4fe366fb4ac5e162e938ff65a75.zip
Catch template syntax error on documet generation
Diffstat (limited to 'archaeological_files')
-rw-r--r--archaeological_files/templates/ishtar/administrativeact_document.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/templates/ishtar/administrativeact_document.html b/archaeological_files/templates/ishtar/administrativeact_document.html
index f8ab213fe..c040ca300 100644
--- a/archaeological_files/templates/ishtar/administrativeact_document.html
+++ b/archaeological_files/templates/ishtar/administrativeact_document.html
@@ -6,9 +6,10 @@
{% endblock %}
{% block content %}
-{% if template_form.non_field_errors %}
+{% if template_form.non_field_errors or template_error %}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
{{template_form.non_field_errors}}
+ {% if template_error %}{{template_error}}{% endif %}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>