{% extends "ishtar/sheet.html" %}
{% load i18n window_field window_header window_tables %}
{% block head_title %}{% trans "Context Record" %}{% endblock %}
{% block content %}
{% window_nav item window_id 'show-contextrecord' 'record_modify' 'show-historized-contextrecord' 'revert-contextrecord' previous next %}
{% if item.image %}
{% 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 %}{{ 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%} {% endif %} {% if item.activity or item.identification or item.interpretation %}{{ 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 %}{{ 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.right_relations.count %}{{ 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 }}
{% endif %}{{ item.operation.operation_type }}
{{ item.operation.remains.all|join:", " }}
{{ item.operation.periods.all|join:", " }}
{% field "Comment" item.operation.comment "" "" %}
{{ item.operation.towns.all|join:", " }}
{# TODO: Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related 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 %} {% endif %} {% trans "Finds" as finds %} {% if item.base_finds.count %} {% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} {% trans "Documents from associated finds" as finds_docs %} {% if item.find_docs_q.count %} {% dynamic_table_document finds_docs 'finds_docs' 'find__base_finds__context_record' item.pk '' output %} {% endif %} {% endblock %}