diff options
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 |
commit | eb6c62736d57d9efb8ba9fc35b16d26b9e88cb03 (patch) | |
tree | a667bc72d80244a271c403ceb490ef2c45aa4db6 /archaeological_files/templates | |
parent | 51a047d697917141fda34a310c8706b4729592c1 (diff) | |
download | Ishtar-eb6c62736d57d9efb8ba9fc35b16d26b9e88cb03.tar.bz2 Ishtar-eb6c62736d57d9efb8ba9fc35b16d26b9e88cb03.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.html | 3 |
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%} |