{% extends "ishtar/sheet.html" %} {% load i18n window_tables window_ope_tables window_field from_dict %} {% block head_sheet %} {{block.super}}

{% trans "Operation"%}

{% endblock %} {% block content %} {% if previous or next %}
{%if previous%} {%trans "Previous version"%} ({{previous}}) {% endif %} {% if previous and next %} - {% endif %} {%if next%} Rollback - {%trans "Next version"%} ({{next}}) {% endif %}
{% endif %}
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
{% trans "Modify" %}
{% if item.virtual_operation %}

{% trans "This operation is virtual." %}

{% endif %}

{% trans "General"%}

{% if item.common_name %}

{{ item.common_name }}

{% endif %} {% if item.year %}

{{ item.year }}

{% endif %} {% if item.operation_code %}

{{ item.operation_code }}

{% endif %} {% if item.code_patriarche %}

OA{{ item.code_patriarche }}

{%else%}

{%trans "Patriarche OA code not yet recorded!"%}

{%endif%} {% field "Old code" item.old_code %}

{% if item.history_date %}{{ item.history_date }}{% else %}{{ item.history.all.0.history_date }}{% endif %}

{{ item.history_creator.ishtaruser.full_label }}

{% if item.start_date %}

{{ item.start_date }}

{{ item.excavation_end_date|default:"-" }}

{%endif%} {% if item.scientist %}

{{ item.scientist.full_label }}

{%endif%} {% if item.in_charge %}

{{ item.in_charge.full_label }}

{%endif%} {% if item.operator %}

{{ item.operator }}

{% endif %}

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

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

{% if item.closing.date %}

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

{% endif %} {% endif %} {% field "Report delivery date" item.report_delivery_date %} {% field "Report processing" item.report_processing %}

{{ item.operation_type }}

{% if item.surface %}

{{ item.surface }} m2 ({{ item.surface_ha }} ha)

{% endif %} {% if item.cost %}

{{ item.cost }} €{% if item.cost_by_m2 %}, ({{ item.cost_by_m2 }} €/m2){%endif%}

{%endif%} {% if item.duration %}

{{ item.duration }} {%trans "Day"%}s

{%endif%} {% field_multiple "Remains" item.remains %} {% field_multiple "Periods" item.periods %} {% if item.QUALITY_DICT %} {% field "Record quality" item.record_quality|from_dict:item.QUALITY_DICT %} {% endif %} {% if item.history_object and item.history_object.QUALITY_DICT %} {% field "Record quality" item.record_quality|from_dict:item.history_object.QUALITY_DICT %} {% endif %} {% field "Abstract" item.abstract %} {% if item.associated_file %}

{{ item.associated_file }}

{% if item.associated_file.is_preventive %} {#{% if item.operator_reference_code %}

{{ item.operator_reference_code }}

{% endif %}#} {% field "Responsible for town planning service" item.associated_file.responsible_town_planning_service.full_address %} {% if item.associated_file.town_planning_service %} {% field "Town planning service organization" item.associated_file.town_planning_service.full_address %} {% else %} {% field "Town planning service organization" item.associated_file.responsible_town_planning_service.attached_to.full_address %} {% endif %} {% if item.associated_file.permit_type %}

{{ item.associated_file.permit_type }}

{% endif %} {% if item.associated_file.permit_reference %}

{{ item.associated_file.permit_reference }}

{% endif %} {% field "General contractor" item.associated_file.general_contractor.full_address %} {% if item.associated_file.corporation_general_contractor %} {% field "General contractor organization" item.associated_file.corporation_general_contractor.full_address %} {% else%} {% field "General contractor organization" item.associated_file.general_contractor.attached_to.full_address %} {% endif %} {% endif %} {% endif %} {% field "Comment" item.comment "
" "
" %} {% if item.towns.count %}

{% trans "Localisation"%}

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

{% endif %} {% if item.associated_file.address %}

{{ item.associated_file.address }}

{% if item.associated_file.address_complement %}

{{ item.associated_file.address_complement }}

{%endif%} {% if item.associated_file.postal_code %}

{{ item.associated_file.postal_code }}

{%endif%} {%endif%} {% comment %}

{{ item.lambert_x }}

{{ item.lambert_y }}

{{ item.altitude }}

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

{% 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" as administrativeacts_label %} {% table_administrativact administrativeacts_label 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 %} {% trans "Context records" as context_records %} {% if item.context_record.count %} {% dynamic_table_document context_records '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 %} {% endblock %}