diff options
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 |
commit | 5656fd567c395b713429613287f0a500ac663641 (patch) | |
tree | 8e3f802bfbc43513efed4692087a26cb3f0a66f6 /archaeological_files/templates | |
parent | 778a7b6c0639f92f35dcdebaf62377e8e5828a67 (diff) | |
download | Ishtar-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.html | 3 |
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">×</span> </button> |