summaryrefslogtreecommitdiff
path: root/archaeological_files
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2013-05-06 18:32:13 +0000
committerÉtienne Loks <etienne.loks@proxience.com>2013-05-06 18:32:13 +0000
commit109c24b73e608057159bc96c6e299812b85a41a2 (patch)
treed8f21afdd49ae7dcbacc17cc09e15f088c162455 /archaeological_files
parentf75e7a111ab69298130bede26dc55d9b5f6160bc (diff)
parent31c3a9a2e17db368a54e570eb1a2982b29849484 (diff)
downloadIshtar-109c24b73e608057159bc96c6e299812b85a41a2.tar.bz2
Ishtar-109c24b73e608057159bc96c6e299812b85a41a2.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_files')
-rw-r--r--archaeological_files/templates/ishtar/sheet_file.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html
index 7f45777a0..7d708c23f 100644
--- a/archaeological_files/templates/ishtar/sheet_file.html
+++ b/archaeological_files/templates/ishtar/sheet_file.html
@@ -16,7 +16,7 @@
<div class='tool'>{%trans "Export as:"%} <a href='{% url show-file item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-file item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
<h3>{% trans "General"%}</h3>
<p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.year }}</span></p>
-<p><label>{%trans "Numerical reference:"%}</label> <span class='value'>{{ item.numeric_reference }}</span></p>
+{% if item.numeric_reference %}<p><label>{%trans "Numerical reference:"%}</label> <span class='value'>{{ item.numeric_reference }}</span></p>{% endif %}
{% if item.name %}
<p><label>{%trans "File's name:"%}</label> <span class='value'>{{ item.name }}</span></p>
{% endif %}
@@ -42,12 +42,12 @@
<h3>{% trans "Localisation"%}</h3>
<p><label>{%trans "Towns:"%}</label> <span class='value'>{{ item.towns.all|join:", " }}</span></p>
-
+{% 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%}
{% if item.postal_code %}<p><label>{%trans "Postal code:"%}</label> <span class='value'>{{ item.postal_code }}</span></p>{%endif%}
-
-<p><label>{%trans "Surface:"%}</label>{% if item.total_surface %} <span class='value'>{{ item.total_surface }} m<sup>2</sup> ({{ item.total_surface_ha }} ha)</span>{%endif%}</p>
+{% endif %}
+{% if item.total_surface %}<p><label>{%trans "Surface:"%}</label> <span class='value'>{{ item.total_surface }} m<sup>2</sup> ({{ item.total_surface_ha }} ha)</span></p>{%endif%}