From ca92ada04a5440c7bcfb9ec6f1bae3fc9f3902ab Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 21 Apr 2011 23:20:25 +0200 Subject: First version of context record window (refs #376) --- ishtar/templates/sheet_contextrecord.html | 136 ++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 ishtar/templates/sheet_contextrecord.html (limited to 'ishtar/templates/sheet_contextrecord.html') diff --git a/ishtar/templates/sheet_contextrecord.html b/ishtar/templates/sheet_contextrecord.html new file mode 100644 index 000000000..0f7259f3a --- /dev/null +++ b/ishtar/templates/sheet_contextrecord.html @@ -0,0 +1,136 @@ +{% extends "sheet.html" %} +{% load i18n %} +{% block content %} +
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
+ +

{% trans "Context Record"%}

+ +{% if item.parcel.operation.code_patriarche %} +

+{% else %} +

+

+{%endif%} +{{item.full_label}}

+{%if item.unit %} +

{{ item.unit }}

+{%endif%} +

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

+

{{ item.parcel.town }}

+

{{ item.parcel.short_label }}

+ +{% if item.description or item.lenght or item.width or item.depth %} +

{% trans "Description"%}

+ +

{{ item.description }}

+{% if item.lenght %}

{{ item.length }}

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

{{ item.width }}

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

{{ item.depth }}

{%endif%} +{% endif %} + +{% if item.activity or item.identification or item.interpretation %} +

{% trans "Interpretation"%}

+ +{% if item.activity %}

{{ item.activity }}

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

{{ item.identification }}

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

{{ item.interpretation }}

{%endif%} +{% endif %} + +{% if item.taq or item.taq_estimated or item.tpq or item.tpq_estimated %} +

{% trans "Datations"%}

+{% if item.taq %}

{{ item.taq }}

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

{{ item.taq_estimated }}

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

{{ item.tpq }}

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

{{ item.tpq_estimated }}

{%endif%} +{%endif%} + +{% if item.parcel.operation %} +

{% trans "Operation resume"%}

+

{{ item.parcel.operation.year }}

+

{{ item.parcel.operation.numeric_reference }}

+{% if item.parcel.operation.code_patriarche %} +

+{{ item.parcel.operation.code_patriarche }}

+{% else %}

+{%endif%} +

+{{ item.parcel.operation.internal_reference }}

+

+{{ item.parcel.operation.in_charge.full_label }}

+

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

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

+

{{ item.parcel.operation.closing.date }} +{%trans "by" %} {{ item.parcel.operation.closing.user }}

+{% endif %} +

{{ item.parcel.operation.operation_type }}

+

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

+

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

+{% if item.parcel.operation.comment %}

{{ item.parcel.operation.comment }}

{%endif%} +

{% trans "Localisation"%}

+

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

+

+{{ item.parcel.operation }}

+{# TODO: Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related operation #} +{% else %}

+{% endif %} + + + + + + + + + + {% for doc in item.parcel.operation.documents.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 context record" %}
+ + + + + + + + + + + + + + + {% for find in item.base_items.all %} + + +{# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} +{# or displayed as (Year)-(index)-(Record unit label)-(Finds label). #} + +{# Displayed as (Patriarche operation code)-(Record unit label)-(material code)-(Finds label indexed by material type). #} +{# or displayed as (Year)-(index)-(Record unit label)-(material code)-(Finds label indexed by material type) #} + + + {# TODO .all|join:", " ? #} + + + + + + {#{%trans "Details"%}#} + + {% empty %} + + {% endfor %} +
{%trans "Finds"%}
{% trans "Find" %}{% trans "Material type" %}{% trans "Context record" %}{% trans "Periods" %}{% trans "Description" %}{% trans "Weight" %}{% trans "Numbers" %}{% trans "Parcel" %} 
{{ find.full_label }}{{ find.get_last_item.material_type_label }}{{find.context_record.short_label}}{{ find.get_last_item.dating}}{{ find.get_last_item.description }}{{ find.get_last_item.weight }}{{ find.get_last_item.item_number }}{{ item.context_record.parcel.short_label }}
{% trans "No find associated to this operation" %}
+ +{% endblock %} -- cgit v1.2.3