{% extends "ishtar/sheet.html" %} {% load i18n window_tables window_ope_tables %} {% 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" %}

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

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

{% if item.associated_file %}

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

{% trans "Localisation"%}

{{ 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 %} {% table_document operation_docs item.source.all|slice:":15" %} {% if item.source.count > 15 %} Seuls les 15 premiers éléments ont été affichés sur un total de {{item.source.count}}. {% endif %} {% endif %} {% for context_record in item.context_record.all|slice:"15" %} {# periods ?#} {% empty %} {% endfor %}
{%trans "Context records"%}
{% trans "ID" %} {% trans "Type" %} {% trans "Chronology" %} {% trans "Description" %} {% trans "Parcel" %}  
{{ context_record.label }} {{context_record.unit|default:""}} {{ context_record.datings.all|join:", " }}{{ context_record.description }} {{ context_record.parcel.section }} - {{context_record.parcel.parcel_number}}
{% trans "No context record associated to this operation" %}
{% if item.context_record.count > 15 %} Seuls les 15 premiers éléments ont été affichés sur un total de {{item.context_record.count}}. {% endif %} {% trans "Documents from associated context records" as cr_docs %} {% if item.context_record_docs_q.count %} {% table_document cr_docs item.context_record_docs_q.all|slice:"15" %}{% endif %}
{% for context_record in item.context_record.all|slice:"5" %} {% for find in context_record.base_finds.all|slice:"15" %} {# OPE|MAT.CODE|UE|FIND_index #} {# OPE|FIND_index #} {# TODO .all|join:", " ? #} {#{%trans "Details"%}#} {% empty %} {% endfor %} {% empty %} {% endfor %}
{%trans "Finds"%}
{% trans "Complete Id" %} {% trans "Short Id" %} {% trans "Material type" %} {% trans "Context record" context "short"%} {% trans "Periods" %} {% trans "Description" %} {% trans "Weight" %} {% trans "Numbers" %} {% trans "Parcel" %} {% trans "Container ref." %} {% trans "Warehouse" %}  
{{ find.complete_id|default:""}}{{ find.short_id|default:"" }} {{ find.get_last_find.material_type|default:"" }} {{find.context_record.label}} {{ find.get_last_find.dating}}{{ find.get_last_find.description }} {{ find.get_last_find.weight|default:"" }} {{ find.get_last_find.item_number }} {{ context_record.parcel.short_label }} {{ find.get_last_find.container.reference|default:""}} {{ find.get_last_find.container.location|default:""}}
{% trans "No find associated to context record" %} {{context_record.short_label}}
{% trans "No find associated to parcel" %} {{parcel.short_label}} {% trans "(no context record)" %}
Seuls les 15 premiers éléments des 5 premières UEs sont affichées {% 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 %}