From ebe47cf4d963caf5f765509eec7b6e80a42a084b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 7 Sep 2016 12:46:34 +0200 Subject: Display a message to warn about related items and history - many improvment on sheet layout --- .../templates/ishtar/sheet_contextrecord.html | 96 +++++++++++----------- 1 file changed, 46 insertions(+), 50 deletions(-) (limited to 'archaeological_context_records/templates') diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 493a00f1b..2c2bf98fe 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -10,49 +10,50 @@ {% endif%} -{% if item.operation.code_patriarche %} -

-{% else %} -

-

-{%endif%} -{{item.full_label}}

-

{{ item.creation_date }}

-

{{ item.history_creator.ishtaruser.full_label }}

-{%if item.unit %} -

{{ item.unit }}

-{%endif%} -

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

+ {% field "Comment on datings" item.datings_comment "
" "
" %} -

{{ item.parcel.town }}

-

{{ item.parcel.short_label }}

{% if item.description or item.lenght or item.width or item.depth or item.thickness or item.comment %}

{% trans "Description"%}

- -

{{ item.description }}

-{% if item.comment %}

{{ item.comment }}

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

{{ item.length }}

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

{{ item.width }}

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

{{ item.depth }}

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

{{ item.thickness }}

{%endif%} +{% field "Description" item.description "
" "
" %} +{% field "Comment" item.comment "
" "
" %} + {% 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%} + +{% field "Filling" item.filling "
" "
" %} +{% field "Interpretation" item.interpretation "
" "
" %} {% 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%} + +{% endif %} {% if item.right_relations.count %}

{% trans "In relation with"%}

@@ -86,33 +87,28 @@ {% if item.operation %}

{% trans "Operation summary"%}

-

{{ item.operation.year }}

-{% field "Numerical reference" item.operation.operation_code %} -{% if item.operation.code_patriarche %} -

-{{ item.operation.code_patriarche }}

-{% else %}

-{%endif%} -{#

{{ item.operation.internal_reference }}

#} -{% if item.operation.scientist %}

{{ item.operation.scientist.full_label }}

{%endif%} -

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

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

-

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

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

+{% endif %} + {% field "Comment" item.operation.comment "
" "
" %}

{% trans "Localisation"%}

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

{{ item.operation }}

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

{% endif %} -- cgit v1.2.3