From 37a52a77a7cf2b02c5a811af7a81def1751ea737 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 19 Jan 2018 19:13:07 +0100 Subject: Improve sheet context record --- .../templates/ishtar/sheet_contextrecord.html | 157 ++++++++++++--------- 1 file changed, 91 insertions(+), 66 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 93a9b67d2..4fa98c6a9 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -1,7 +1,7 @@ {% extends "ishtar/sheet.html" %} {% load i18n window_field window_header window_tables window_field %} -{% block head_title %}{% trans "Context Record:" %}{{item.full_label}}{% endblock %} +{% block head_title %}{% trans "Context Record" %} - {{item.full_label}}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-contextrecord' 'record_modify' 'show-historized-contextrecord' 'revert-contextrecord' previous next 1 %} @@ -9,65 +9,73 @@ {% block content %} -{% if item.image %} - -{% endif%} - -

{{ item.parcel.short_label }}

-

{{ item.label|default:"" }}

-{% include "ishtar/blocks/sheet_external_id.html" %} - - -{% field "Comment on datings" item.datings_comment "
" "
" %} + {% field_flex "Type" item.unit %} + {% field_flex "Excavation technic" item.excavation_technic %} + {% field_flex_multiple "Chronology" item.datings %} + {% field_flex "Town" item.parcel.town %} + {% field_flex_multiple "Documentation" item.documentations %} + {% field_flex "Opening date" item.opening_date %} + {% field_flex "Closing date" item.closing_date %} + {% field_flex_full "Comment on datings" item.datings_comment "
" "
" %} + {% include "ishtar/blocks/sheet_json.html" %} {% if item.diameter or item.depth_of_appearance or item.documentations.count or item.description or item.lenght or item.width or item.depth or item.thickness or item.comment %}

{% trans "Description"%}

-{% field "Description" item.description "
" "
" %} -{% field "Comment" item.comment "
" "
" %} - +
+ {% field_flex_full "Description" item.description "
" "
" %} + {% field_flex_full "Comment" item.comment "
" "
" %} + {% field_flex "Length (m)" item.lenght %} + {% field_flex "Width (m)" item.width %} + {% field_flex "Diameter (m)" item.diameter %} + {% field_flex "Depth (m)" item.depth %} + {% field_flex "Thickness (m)" item.thickness %} + {% field_flex "Depth of appearance (m)" item.depth_of_appearance %} +
{% endif %} {% if item.activity or item.identification or item.interpretation %}

{% trans "Interpretation"%}

- - -{% field "Filling" item.filling "
" "
" %} -{% field "Interpretation" item.interpretation "
" "
" %} +
+ {% field_flex_multiple "Documentation" item.documentations %} + {% field_flex "Activity" item.activity %} + {% field_flex "Identification" item.identification %} + {% field_flex_full "Filling" item.filling "
" "
" %} + {% field_flex_full "Interpretation" item.interpretation "
" "
" %} +
{% endif %} {% if item.taq or item.taq_estimated or item.tpq or item.tpq_estimated %}

{% trans "Datations"%}

- +
+ {% field_flex "TAQ" item.taq %} + {% field_flex "Estimated TAQ" item.taq_estimated %} + {% field_flex "TPQ" item.tpq %} + {% field_flex "Estimated TPQ" item.tpq_estimated %} +
{% endif %} {% trans "Context record relations" as cr_rels %} @@ -79,31 +87,48 @@ {% if item.operation %}

{% trans "Operation summary"%}

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

+ {% endif %} - -{% field "Comment" item.operation.comment "
" "
" %} + {% field_flex num_ref_label item.operation.operation_code %} + {% field_flex "Patriarche OA code" item.operation.code_patriarche %} + {% field_flex_detail "Head scientist" item.operation.scientist %} + +
+
{% trans "State" %}
+
{% if item.operation.is_active %}{% trans "Active file" %}{% else %}{%trans "Closed operation" %}{% endif %}
+
+ + {% if not item.operation.is_active %} +
+
{%trans "Closing date"%}
+
+ {{ item.operation.closing.date }} {%trans "by" %} {{ item.operation.closing.user }} +
+
+ {% endif %} + {% field_flex "Type" item.operation.operation_type %} + {% field_flex_multiple "Remains" item.operation.remains %} + {% field_flex_multiple "Periods" item.operation.periods %} + {% field_flex_full "Comment" item.operation.comment "
" "
" %} +

{% trans "Localisation"%}

-

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

-

-{{ item.operation }}

-{% else %}

-{% endif %} +
+ {% field_flex_multiple "Towns" item.operation.towns %} + {% field_flex_detail "Operation" item.operation %} +
+ +{% else %} + +{% endif %} {% trans "Document from this context record" as cr_docs %} {% if item.source.count %} {% dynamic_table_document cr_docs 'context_records_docs' 'context_record' item.pk '' output %} -- cgit v1.2.3