From a9a1a82a5cc32ea8e5b7a8051de5ff4cd0c6fdc7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 21 Jul 2014 12:11:57 +0200 Subject: Improve layout of parcels --- .../templates/ishtar/sheet_file.html | 27 ++++------------------ 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'archaeological_files/templates') diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index cec748dfc..11a90df9e 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -41,7 +41,7 @@

{{ item.in_charge.full_label }}

{% if item.is_active %}{%trans "Active file"%}

{% else %}{%trans "Closed file"%}

-

{{ item.closing.date }} {%trans "by" %} {{ item.closing.user }}

+{% if item.closing %}

{{ item.closing.date }} {%trans "by" %} {{ item.closing.user.full_label }}

{% endif %} {% endif %}

{{ item.file_type }}

@@ -62,7 +62,7 @@ {% if item.is_preventive %}

{% trans "Preventive archaelogical file"%}

-

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

+{% 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 %} @@ -86,27 +86,8 @@ {% endif %} - - - - - - - - {##} - - {% for parcel in item.grouped_parcels %} - - - - - - {##} - - {% empty %} - - {% endfor %} -
{%trans "Associated parcels"%}
{% trans "Town" %}{% trans "Year" %}{% trans "Section" %}{% trans "Parcels" %}{% trans "Owner" %}
{{parcel.town}}{{parcel.year}}{{parcel.section}}{{parcel.parcel_numbers|join:", "}}{{operation.parcel.owner}}
{% trans "No parcel associated to this operation" %}
+{% trans "Associated parcels" as parcels_label %} +{% include "ishtar/blocks/window_tables/parcels.html" %} {% trans "Administrativ acts" as administrativeacts_label %} {% table_administrativact administrativeacts_label item.administrative_act.all %} -- cgit v1.2.3