diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-05-06 20:07:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-05-06 20:07:44 +0200 |
commit | 37e90a820d3723d1da75b6982048422e581f7d9e (patch) | |
tree | a8526b98c9cd95b21e75081671ab7a66d6f40b39 /archaeological_files/templates/ishtar/sheet_file.html | |
parent | d0965fd0b03d62dee17312454a87c7ba2e0ae363 (diff) | |
download | Ishtar-37e90a820d3723d1da75b6982048422e581f7d9e.tar.bz2 Ishtar-37e90a820d3723d1da75b6982048422e581f7d9e.zip |
Minor improve on sheet display
Diffstat (limited to 'archaeological_files/templates/ishtar/sheet_file.html')
-rw-r--r-- | archaeological_files/templates/ishtar/sheet_file.html | 8 |
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%} |