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

{% trans "Archaeological file"%}

{% 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 can_add_operation %}
{%trans "Add an associated archaeological operation"%}
{%endif%}

{% trans "General"%}

{% field "Year" item.year "" "" %} {% field "Numerical reference" item.numeric_reference "" "" %} {% field "Other reference" item.internal_reference %} {% field "Name" item.name %}

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

{% field "Reception date" item.reception_date|date:"DATE_FORMAT" %} {% field "Creation date" item.creation_date|date:"DATE_FORMAT" %} {% field "Created by" item.history_creator.ishtaruser.full_label %} {% comment %} {% if item.deadline_date and not item.acts %}

{% item.deadline_date %}

{% endif %} {% endcomment %} {% field "In charge" item.in_charge.full_label %}

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

{% else %}{%trans "Closed file"%}

{% if item.closing %}

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

{% endif %} {% endif %} {% field "Type" item.file_type %} {% if item.related_file %}

{{ item.related_file }}

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

{% trans "Localisation"%}

{% if item.towns.count %}

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

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

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

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

{{ item.address }}

{% if item.address_complement %}

{{ item.address_complement }}

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

{{ item.postal_code }}

{%endif%} {% endif %} {% if item.total_surface %}

{{ item.total_surface }} m2 ({{ item.total_surface_ha }} ha)

{%endif%} {% if item.is_preventive %}

{% trans "Preventive archaelogical file"%}

{% if item.total_developed_surface %}

{{ item.total_developed_surface }} m2 ({{ item.total_developed_surface_ha }} ha)

{% endif %} {% field "Saisine type" item.saisine_type %} {% field "Responsible for town planning service" item.responsible_town_planning_service.full_address %} {% if item.town_planning_service %} {% field "Town planning service organization" item.town_planning_service.full_address %} {% else %} {% field "Town planning service organization" item.responsible_town_planning_service.attached_to.full_address %} {% endif %} {% field "Permit type" item.permit_type %} {% field "Permit reference" item.permit_reference %} {% field "General contractor" item.general_contractor.full_address %} {% if item.corporation_general_contractor %} {% field "General contractor organization" item.corporation_general_contractor.full_address %} {% else%} {% field "General contractor organization" item.general_contractor.attached_to.full_address %} {% endif %} {% else %}

{% trans "Research archaeology"%}

{% if item.departments.count %}

{% for department in item.departments.all %}{% if forloop.counter0 %}, {% endif %}{{ department }}{% endfor %}

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

{{ item.scientist }}

{% endif %} {% if item.requested_operation_type %}

{{ item.requested_operation_type }}

{% endif %} {% if item.organization %}

{{ item.organization }}

{% endif %} {% if item.cira_advised != None %}

{{ item.cira_advised|yesno }}

{% endif %} {% if item.mh_register != None %}

{{ item.mh_register|yesno }}

{% endif %} {% if item.mh_listing != None %}

{{ item.mh_listing|yesno }}

{% endif %} {% if item.classified_area != None %}

{{ item.classified_area|yesno }}

{% endif %} {% if item.protected_area != None %}

{{ item.protected_area|yesno }}

{% endif %} {% if item.research_comment %}

{{ item.research_comment }}

{% endif %} {% endif %} {% trans "Associated parcels" as parcels_label %} {% include "ishtar/blocks/window_tables/parcels.html" %} {% trans "Administrative acts" as administrativeacts_label %} {% table_administrativact administrativeacts_label item.administrative_act.all %} {% for operation in item.operations.all %} {% empty %} {% endfor %}
{%trans "Associated operations"%}
{% trans "Ref." %} Code Patriarche {% trans "Type" %} {% trans "In charge" %} {% trans "Start date" %} {% trans "Excavation end date" %}  
{{operation.year_index}} {{operation.full_code_patriarche|default:""}} {{operation.operation_type}} {{operation.in_charge|default:""}} {{operation.start_date|default:""}} {{operation.excavation_end_date|default:""}}
{% trans "No operation associated to this archaelogical file" %}
{% for act in item.operation_acts %} {% empty %} {% endfor %}
{%trans "Admninistrative acts linked to associated operations"%}
{% trans "Year" %} {% trans "Ref." %} {% trans "Type" %} {% trans "Date" %}
{{act.signature_date.year}} {{act.ref_sra}} {{act.act_type}} {{act.signature_date}}
{% trans "No administrative act linked to operations" %}
{% endblock %}