summaryrefslogtreecommitdiff
path: root/archaeological_files/templates
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
commit5656fd567c395b713429613287f0a500ac663641 (patch)
tree8e3f802bfbc43513efed4692087a26cb3f0a66f6 /archaeological_files/templates
parent778a7b6c0639f92f35dcdebaf62377e8e5828a67 (diff)
downloadIshtar-5656fd567c395b713429613287f0a500ac663641.tar.bz2
Ishtar-5656fd567c395b713429613287f0a500ac663641.zip
Catch template syntax error on documet generation
Diffstat (limited to 'archaeological_files/templates')
-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>