From c0a4eb610acf30296fc4d9dadc4bd58fd1da67a9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 6 May 2013 20:07:44 +0200 Subject: Minor improve on sheet display --- archaeological_files/templates/ishtar/sheet_file.html | 8 ++++---- archaeological_operations/templates/ishtar/sheet_operation.html | 4 ++-- 2 files changed, 6 insertions(+), 6 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 @@
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}

{% trans "General"%}

{{ item.year }}

-

{{ item.numeric_reference }}

+{% if item.numeric_reference %}

{{ item.numeric_reference }}

{% endif %} {% if item.name %}

{{ item.name }}

{% endif %} @@ -42,12 +42,12 @@

{% trans "Localisation"%}

{{ item.towns.all|join:", " }}

- +{% if item.address %}

{{ item.address }}

{% if item.address_complement %}

{{ item.address_complement }}

{%endif%} {% if item.postal_code %}

{{ item.postal_code }}

{%endif%} - -

{% if item.total_surface %} {{ item.total_surface }} m2 ({{ item.total_surface_ha }} ha){%endif%}

+{% endif %} +{% if item.total_surface %}

{{ item.total_surface }} m2 ({{ item.total_surface_ha }} ha)

{%endif%} diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 6fdcfe62d..3a6a20e74 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -45,10 +45,10 @@

{% trans "Localisation"%}

{{ item.towns.all|join:", " }}

-

{{ item.associated_file.address }}

+{% if item.associated_file.address %}

{{ item.associated_file.address }}

{% if item.associated_file.address_complement %}

{{ item.associated_file.address_complement }}

{%endif%} {% if item.associated_file.postal_code %}

{{ item.associated_file.postal_code }}

{%endif%} - +{%endif%} {% comment %}

{{ item.lambert_x }}

{{ item.lambert_y }}

-- cgit v1.2.3