{% extends "ishtar/sheet.html" %} {% load i18n window_tables window_ope_tables window_field from_dict %} {% block head_sheet %} {{block.super}}
{% trans "This operation is virtual." %}
{% endif %}{{ 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%}{% 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"%}{{ item.closing.date }} {%trans "by" %} {{ item.closing.user }}
{% endif %}{{ 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%}{{ item.remains.all|join:", " }}
{{ item.periods.all|join:", " }}
{% field "Record quality" item.record_quality|from_dict:item.QUALITY_DICT %} {% if item.associated_file %} {% if item.associated_file.is_preventive %} {#{% if item.operator_reference_code %}{{ item.operator_reference_code }}
{% endif %}#} {% if item.associated_file.town_planning_service %}{{ item.associated_file.town_planning_service }}
{% 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 %} {% if item.associated_file.general_contractor.attached_to %}{{ item.associated_file.general_contractor.attached_to }}
{% endif %} {% if item.associated_file.general_contractor %}{{ item.associated_file.general_contractor.full_label }}
{% endif %} {% endif %} {% endif %} {% if item.comment %}{{ item.comment }}
{%endif%}{{ item.towns.all|join:", " }}
{% 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 %} {% trans "Associated parcels" as parcels_label %} {% include "ishtar/blocks/window_tables/parcels.html" %} {% if item.administrative_act %} {% trans "Administrativ 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 %} {% 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' %} {% endif %} {% comment %} {% 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 %} {% endif %} {% endcomment %} {% 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' %} {% endif %} {% comment %} {% trans "Documents from associated finds" as find_docs %} {% if item.find_docs_q.count %} {% table_document find_docs item.find_docs_q.all %}{% endif %} {% endcomment %} {% endblock %}