From e481d61268a9747cb673448bb22264d0b74d7e99 Mon Sep 17 00:00:00 2001 From: Le Jeune Yann Date: Tue, 19 Apr 2011 15:38:23 +0200 Subject: Adding listing of finds to OPE sheet --- ishtar/templates/sheet_ope_modif.html | 182 ++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 ishtar/templates/sheet_ope_modif.html (limited to 'ishtar') diff --git a/ishtar/templates/sheet_ope_modif.html b/ishtar/templates/sheet_ope_modif.html new file mode 100644 index 000000000..da8fa640a --- /dev/null +++ b/ishtar/templates/sheet_ope_modif.html @@ -0,0 +1,182 @@ +{% extends "sheet.html" %} +{% load i18n %} +{% block content %} +
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
+

{% trans "General"%}

+

{{ item.year }}

+

{{ item.numeric_reference }}

+ +{% if item.patriarche_code %}

{{ item.patriarche_code }}

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

{%endif%} + +

{{ item.internal_reference }}

+ +

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

+ +

{{ item.begin_date }}

+

{{ item.end_date }}

+ +

{{ item.head_scientist.full_label }}

+

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

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

+

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

+{% endif %} +

{{ item.operation_type }}

+

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

+

{{ item.cost }} Euros, ({{ item.cost_by_m2 }} Euros/m2)

+

{{ item.duration }} {%trans "Day"%}s

+ +

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

+

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

+ +{% if item.related_file %} +

{{ item.related_file }}

+{% if item.related_file.is_preventive %} +{% if item.operator_reference_code %}

{{ item.operator_reference_code }}

{% endif %} +{% if item.related_file.town_planning_service %}

{{ item.related_file.town_planning_service }}

{% endif %} +{% if item.related_file.permit_type %}

{{ item.related_file.permit_type }}

{% endif %} +{% if item.related_file.permit_reference %}

{{ item.related_file.permit_reference }}

{% endif %} +{% if item.related_file.general_contractor.attached_to %}

{{ item.related_file.general_contractor.attached_to }}

{% endif %} +{% if item.related_file.general_contractor %}

{{ item.related_file.general_contractor.full_label }}

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

{{ item.comment }}

{%endif%} + +

{% trans "Localisation"%}

+

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

+ +

{{ item.address }}

+{% if item.address_complement %}

{{ item.address_complement }}

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

{{ item.postal_code }}

{%endif%} + +

{{ item.lambert_x }}

+

{{ item.lambert_y }}

+

{{ item.altitude }}

+ + + + + + + + + + + {% for parcels in item.parcel.all %} + + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Associated parcels"%}
{% trans "Commune" %}{% trans "Year" %}{% trans "Section" %}{% trans "Parcel" %}{% trans "Owner" %}
{{operation.commune}}{{operation.year}}{{operation.section}}{{operation.parcel}}{{operation.parcel.owner}}
{% trans "No parcel associated to this operation" %}
+ +

{% trans "Admninistrative acts"%}

+ + + + + + + + + {% for act in item.administrative_act.all %} + + + + + + + {% empty %} + + {% 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}}
{% trans "No administrative act associated to this operation" %}
+ +

{% trans "Documentation"%}

+ + + + + + + + + {% for doc in item.doc.all %} + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Documents"%}
{% trans "Title" %}{% trans "Type" %}{% trans "Authors" %}{% trans "Localisation" %}
{{ doc.title }}{{doc.type}}{{ doc.author.all|join:", " }}{{ doc.localisation }}
{% trans "No document associated to this operation" %}
+ +

{% trans "Recording Units"%}

+ + + + + + + + + + + {% for record_unit in item.record_unit.all %} + + + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Recording Units"%}
{% trans "Label" %}{% trans "Type" %}{% trans "Chronology" %}{% trans "Description" %}{% trans "Parcel" %} 
{{ record_unit.label }}{{record_unit.unit_type}}{{ record_unit.period.all|join:", " }}{{ record_unit.description }}{{ record_unit.section_and_parcel }}
{% trans "No recording unit associated to this operation" %}
+ +

{% trans "Finds"%}

+ + + + + + + + + + + + + + {% for find in item.find.all %} + + + {% if item.patriarche_code %}{%endif%} + {% if item.patriarche_code_not_recorded %}{%endif%} + + {% if item.patriarche_code %}{%endif%} + {% if item.patriarche_code_not_recorded %}{%endif%} + + + + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Finds"%}
{% trans "Find_complete_Label" %}{% trans "Find_complete_material_type_Label" %}{% trans "Context_record" %}{% trans "Periods" %}{% trans "Description" %}{% trans "Weight" %}{% trans "Numbers" %}{% trans "Parcel" %} 
{% trans "find.complete_label" %}{% trans "find.not_patriarche_complete_label" %}{% trans "find.material_type_complete_label" %}{% trans "find.material_type_not_patriarche_complete_label" %}{{find.context_record}}{{ find.period.all|join:", " }}{{ find.description }}{{ find.weight }}{{ find.numbers }}{{ find.record_unit.section_and_parcel }}
{% trans "No find associated to this operation" %}
+ +{% endblock %} -- cgit v1.2.3