From 029945ebd31fce0a3283c6dd581caa65a758bb45 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 25 Feb 2011 03:56:53 +0100 Subject: Work on archaelogical file sheet (refs #227) --- ishtar/templates/sheet_file.html | 99 ++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 50 deletions(-) (limited to 'ishtar/templates/sheet_file.html') diff --git a/ishtar/templates/sheet_file.html b/ishtar/templates/sheet_file.html index 67b48d26b..57f1c00fc 100644 --- a/ishtar/templates/sheet_file.html +++ b/ishtar/templates/sheet_file.html @@ -1,79 +1,78 @@ {% extends "sheet.html" %} {% load i18n %} {% block content %} +

{% trans "General"%}

{{ item.year }}

{{ item.numeric_reference }}

{{ item.internal_reference }}

{{ item.history.all.0.history_date }}

-{% if item.reception_date %}

{%trans "Reception date"%} : {{ item.reception_date }}

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

{{ item.reception_date }}

{% endif %} +

{{ item.creation_date }}

{% comment %} -

{%trans "Creation date"%} : {% item.creation_date %}

{% if item.deadline_date and not item.acts %}

{%trans "Deadline"%} : {% item.deadline_date %}

{% endif %} +{% endcomment %} -

{%trans "Responsible"%} : {% item.responsible %}

- -{% if item.is_active %} -

{%trans "Active file"%}

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

{%trans "Closed file"%}

-

{%trans "Closure date" %} : {% item.closure_date %} {%trans "by" %} {% item.closer_user%}

+

{{ item.in_charge.full_label }}

+

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

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

+

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

{% endif %} - -

{%trans "Type"%} : {% item.type %}

-{% if item.related %}

{%trans "Related file"%} : {% item.related %}

{% endif %} +

{{ item.file_type }}

- -

{%trans "Communes"%} : {% item.communes %}

+{% if item.related_file %}

{%trans "Related file:"%} {{ item.related_file }}

{% endif %} +

{{ item.comment }}

-

{%trans "Principal adress"%} : {% item.princ_adress %}

-

{%trans "Complementary adress"%} : {% item.complem_adress %}

-

{%trans "Postal code"%} : {% item.postal_code %}

+

{% trans "Localisation"%}

+

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

+

{{ item.address }}

+

{{ item.complem_adress }}

+

{{ item.postal_code }}

- -

{%trans "Surface"%} : {% item.surface %} ({% item.surface_ha %) ha)

+

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

- {% if item.is_preventive %} -

{%trans "Planed surface"%} : {% item.planed_surface %} ({% item.planed_surface_ha %) ha)

-

{%trans "Saisine type"%} : {% item.saisine_type %}

- {% if item.service %}

{%trans "Service"%} : {% item.service %}

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

{%trans "Permit type"%} : {% item.permit_type %}

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

{%trans "Permit reference"%} : {% item.permit_ref %}

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

{%trans "Contractor organisation"%} : {% item.contractor_org %}

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

{%trans "Contractor"%} : {% item.contractor %}

{% endif %} -

{%trans "Numerical reference"%} : {% item.index %}

+

{% trans "Preventive archaelogical file"%}

+

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

+

{{ 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 %} +{% comment %} +

{%trans "Numerical reference"%} : {% item.index %}

+{% endcomment %} {% endif %} -

{%trans "Comments"%} : {% item.comments %}

- - - - - - - {% for label, in item.data_acts %} - - {% endfor %} - - {% for data, in item.data_acts %} - - - - - - - {% endfor %} -
{%trans "Admninistrative acts"%}
{{label}}
{{year}}{{reference}}{{type}}{{date}}
- +{% if item.administrative_act.all %} + + + + + + + + + {% for act in item.administrative_act.all %} + + + + + + + {% endfor %} +
{%trans "Admninistrative acts"%}
{% trans "Year" %}{% trans "Reference" %}{% trans "Type" %}{% trans "Date" %}
{{act.signature_date.year}}{{act.ref_sra}}{{act.act_type}}{{act.signature_date}}
+{%endif%} +{% comment %} -- cgit v1.2.3