From ead8754f14c0dc26214a26ebf3131b8e5be4a411 Mon Sep 17 00:00:00 2001 From: Le Jeune Yann Date: Mon, 28 Feb 2011 22:39:00 +0100 Subject: Proto-template for operation sheet --- ishtar/templates/sheet_ope.html | 120 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 ishtar/templates/sheet_ope.html diff --git a/ishtar/templates/sheet_ope.html b/ishtar/templates/sheet_ope.html new file mode 100644 index 000000000..1a8b1d40e --- /dev/null +++ b/ishtar/templates/sheet_ope.html @@ -0,0 +1,120 @@ +{% 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 "Recording Units"%}

+ + + + + + + + {% for act in item.administrative_act.all %} + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Recording Units"%}
{% trans "Label" %}{% trans "Datations" %}{% trans "Type" %}
{{ record_unit.label }}{{ record_unit.period.all|join:", " }}{{record_unit.unit_type}}{{act.signature_date}}
{% trans "No recording unit associated to this operation" %}
+ +{% endblock %} -- cgit v1.2.3