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_operation.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index e3a53e5fa..c0beac524 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -73,11 +73,24 @@

{{ item.associated_file }}

{% if item.associated_file.is_preventive %} {#{% if item.operator_reference_code %}

{{ item.operator_reference_code }}

{% endif %}#} -{% if item.associated_file.town_planning_service %}

{{ item.associated_file.town_planning_service }}

{% endif %} + +{% field "Responsible for town planning service" item.associated_file.responsible_town_planning_service.full_address %} +{% if item.associated_file.town_planning_service %} + {% field "Town planning service organization" item.associated_file.town_planning_service.full_address %} +{% else %} + {% field "Town planning service organization" item.associated_file.responsible_town_planning_service.attached_to.full_address %} +{% endif %} + {% if item.associated_file.permit_type %}

{{ item.associated_file.permit_type }}

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

{{ item.associated_file.permit_reference }}

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

{{ item.associated_file.general_contractor.attached_to }}

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

{{ item.associated_file.general_contractor.full_label }}

{% endif %} + +{% field "General contractor" item.associated_file.general_contractor.full_address %} +{% if item.associated_file.corporation_general_contractor %} + {% field "General contractor organization" item.associated_file.corporation_general_contractor.full_address %} +{% else%} + {% field "General contractor organization" item.associated_file.general_contractor.attached_to.full_address %} +{% endif %} + {% endif %} {% endif %} -- cgit v1.2.3