From 5abe9dcdfc37493be0596d49c1ce8aa8266f2e34 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Jan 2016 17:13:44 +0100 Subject: Sheets: Full address display for organizations and persons --- .../templates/ishtar/sheet_file.html | 29 ++++++++++++++++------ 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'archaeological_files/templates/ishtar/sheet_file.html') diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 10ee82232..67341c07d 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -76,14 +76,27 @@

{% trans "Preventive archaelogical file"%}

{% if item.total_developed_surface %}

{{ item.total_developed_surface }} m2 ({{ item.total_developed_surface_ha }} ha)

{% endif %} -

{{ item.saisine_type }}

-{% if item.town_planning_service %}

{{ item.town_planning_service }}

{% endif %} -{% if item.permit_type %}

{{ item.permit_type }}

{% endif %} -{% if item.permit_reference %}

{{ item.permit_reference }}

{% endif %} -{% if item.general_contractor.attached_to %}

{{ item.general_contractor.attached_to }}

{% endif %} -{% if item.general_contractor %}

{{ item.general_contractor.full_label }}

{% endif %} - -{%else%} + +{% field "Saisine type" item.saisine_type %} + +{% field "Responsible for town planning service" item.responsible_town_planning_service.full_address %} +{% if item.town_planning_service %} + {% field "Town planning service organization" item.town_planning_service.full_address %} +{% else %} + {% field "Town planning service organization" item.responsible_town_planning_service.attached_to.full_address %} +{% endif %} + +{% field "Permit type" item.permit_type %} +{% field "Permit reference" item.reference %} + +{% field "General contractor" item.general_contractor.full_address %} +{% if item.corporation_general_contractor %} + {% field "General contractor organization" item.corporation_general_contractor.full_address %} +{% else%} + {% field "General contractor organization" item.general_contractor.attached_to.full_address %} +{% endif %} + +{% else %}

{% trans "Research archaeology"%}

{% if item.departments.count %}

{% for department in item.departments.all %}{% if forloop.counter0 %}, {% endif %}{{ department }}{% endfor %}

{% endif %} -- cgit v1.2.3