summaryrefslogtreecommitdiff
path: root/archaeological_files/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-08-28 12:11:41 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-08-28 12:11:41 +0200
commit99209de93445c7f760b8f6f594c4700134aefb04 (patch)
treea667bc72d80244a271c403ceb490ef2c45aa4db6 /archaeological_files/templates
parentb6178af0b0ffe1d8a93b8f117ab9802f097fcbb1 (diff)
downloadIshtar-99209de93445c7f760b8f6f594c4700134aefb04.tar.bz2
Ishtar-99209de93445c7f760b8f6f594c4700134aefb04.zip
Archaeological files: add departments to preventive forms - Wizards manage several many to many in one form
Diffstat (limited to 'archaeological_files/templates')
-rw-r--r--archaeological_files/templates/ishtar/sheet_file.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html
index 2d7b6262d..fc5ddbe70 100644
--- a/archaeological_files/templates/ishtar/sheet_file.html
+++ b/archaeological_files/templates/ishtar/sheet_file.html
@@ -57,7 +57,8 @@
{% if item.comment %}<p><label>{%trans "Comment:"%}</label> <span class='value'>{{ item.comment }}</span></p>{%endif%}
<h3>{% trans "Localisation"%}</h3>
-<p><label>{%trans "Towns:"%}</label> <span class='value'>{{ item.towns.all|join:", " }}</span></p>
+{% if item.towns.count %}<p><label>{%trans "Towns:"%}</label> <span class='value'>{{ item.towns.all|join:", " }}</span></p>{% endif %}
+{% if item.departments.count %}<p><label>{%trans "Departments:"%}</label> <span class='value'>{{ item.departments.all|join:", " }}</span></p>{% endif %}
{% if item.address %}
<p><label>{%trans "Main address:"%}</label> <span class='value'>{{ item.address }}</span></p>
{% if item.address_complement %}<p><label>{%trans "Complement:"%}</label> <span class='value'>{{ item.address_complement }}</span></p>{%endif%}