{% 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 1 %} {% if item.image %} {% endif%} {% field "Comment on datings" item.datings_comment "
" "
" %} {% if 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 "
" "
" %} {% endif %} {% if item.activity or item.identification or item.interpretation %}

{% trans "Interpretation"%}

{% 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"%}

{% endif %} {% if item.right_relations.count %}

{% trans "In relation with"%}

{% for relation in item.right_relations.all %} {# periods ?#} {% endfor %}
{% trans "Relation type" %} {% trans "ID" %} {% trans "Type" %} {% trans "Chronology" %} {% trans "Description" %} {% trans "Parcel" %}  
{{ relation.relation_type }} {{ relation.right_record.label }} {{relation.right_record.unit|default:""}} {{ relation.right_record.datings.all|join:", " }}{{ relation.right_record.description }} {{ relation.right_record.parcel.section }} - {{relation.right_record.parcel.parcel_number}}
{% endif %} {% if item.operation %}

{% trans "Operation summary"%}

{% if not item.operation.code_patriarche %}

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

{% trans "Localisation"%}

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

{{ 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 %} {% 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 %}