{% extends "ishtar/sheet.html" %}
{% load i18n window_tables window_header window_ope_tables window_field from_dict %}
{% block head_title %}{% trans "Operation" %}{% endblock %}
{% block content %}
{% window_nav item window_id 'show-operation' 'operation_modify' 'show-historized-operation' 'revert-operation' previous next %}
{% if item.image %}
{% endif%}
{% if item.virtual_operation %}
{% trans "This operation is virtual." %}
{% endif %}
{% if not item.code_patriarche %}
{%trans "Patriarche OA code not yet recorded!"%}
{% endif %}
{% trans "General"%}
" "
" %}
{% if item.towns.count %}
{% trans "Localisation"%}
{% endif %}
{% if item.right_relations.count %}
{% trans "Relations"%}
{% for rel in item.right_relations.all %}
{% ifchanged rel.relation_type %}
{% if forloop.counter0 %}{% endif %}
{{rel.relation_type}}
{% endifchanged %}
- {{rel.right_record}}
{% if forloop.last %}
{% endif %}
{% endfor %}
{% endif %}
{% if item.archaeological_sites.count %}
{% trans "Archaeological sites" as archaeologicalsites_label %}
{% table_archaeologicalsites archaeologicalsites_label item.archaeological_sites.all %}
{% endif %}
{% trans "Associated parcels" as parcels_label %}
{% include "ishtar/blocks/window_tables/parcels.html" %}
{% if item.administrative_act %}
{% trans "Administrative acts" %}
{% table_administrativact "" item.administrative_act.all %}
{% endif %}
{% trans "Document from this operation" as operation_docs %}
{% if item.source.count %}
{% dynamic_table_document operation_docs 'operation_docs' 'operation' item.pk '' output %}
{% endif %}
{% if item.context_record.count %}
{% trans "Context records" %}
{% dynamic_table_document '' 'context_records_for_ope' 'operation' item.pk 'TABLE_COLS_FOR_OPE' output %}
{% endif %}
{% trans "Documents from associated context records" as cr_docs %}
{% if item.context_record_docs_q.count %}
{% dynamic_table_document cr_docs 'context_records_docs' 'context_record__operation' item.pk '' output %}
{% endif %}
{% trans "Finds" as finds %}
{% if item.finds %}
{% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record__operation' 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__operation' item.pk '' output %}
{% endif %}
{% trans "Statistics" %}
{% trans "Administrative acts" %}
{% trans "Context records" %}
{% trans "Finds" %}
{% trans "Sources" %}
{% if item.nb_stats_finds_by_ue %}
{% trans "Finds by context records" %}
{% endif %}
{% endblock %}