From ade7bd4b74d9ae42c54648cc7390d8c067b5c5e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Oct 2012 17:49:57 +0200 Subject: Djangoization - Major refactoring (step 1) --- ishtar_common/templates/sheet_ope.html | 146 +++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 ishtar_common/templates/sheet_ope.html (limited to 'ishtar_common/templates/sheet_ope.html') diff --git a/ishtar_common/templates/sheet_ope.html b/ishtar_common/templates/sheet_ope.html new file mode 100644 index 000000000..dbe3297b3 --- /dev/null +++ b/ishtar_common/templates/sheet_ope.html @@ -0,0 +1,146 @@ +{% 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 "ID" %}{% 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" %}
+ +{% endblock %} -- cgit v1.2.3