{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}

{{ title }}

{% if edit_mode and (prev_id or next_id or total_records > 0) %}
{% if total_records > 0 %} {{ _('Record') }} {{ current_position }} {{ _('of') }} {{ total_records }} {% else %} {{ _('Viewing record') }} {% endif %}
{% if prev_id %} {{ _('Previous') }} {% else %} {% endif %} {{ _('Back to List') }} {% if next_id %} {{ _('Next') }} {% else %} {% endif %}
{% endif %}
{{ form.hidden_tag() }} {% if form.errors %}
{{ _('Form errors:') }}
    {% for field_name, errors in form.errors.items() %} {% for error in errors %}
  • {{ field_name }}: {{ error }}
  • {% endfor %} {% endfor %}
{% endif %}
{{ _('Identification') }}
{{ form.sito(class="form-select", required=True) }} {% if form.sito.errors %}
{{ form.sito.errors[0] }}
{% endif %}
{{ form.area(class="form-control") }}
{{ form.us(class="form-control", required=True) }} {% if form.us.errors %}
{{ form.us.errors[0] }}
{% endif %}
{{ form.unita_tipo(class="form-select", id="unita_tipo") }}
{{ form.settore(class="form-control") }}
{{ form.ambient(class="form-control") }}
{{ form.saggio(class="form-control") }}
{{ form.quad_par(class="form-control") }}
{{ _('Excavation Data') }}
{{ form.anno_scavo(class="form-control", placeholder="YYYY") }}
{{ form.scavato(class="form-select") }}
{{ form.metodo_di_scavo(class="form-select") }}
{{ form.data_schedatura(class="form-control", placeholder="YYYY-MM-DD") }} {{ _('Format: YYYY-MM-DD') }}
{{ form.schedatore(class="form-control") }}
{{ form.direttore_us(class="form-control") }}
{{ form.responsabile_us(class="form-control") }}
{{ form.attivita(class="form-control") }}
{{ _('ICCD Cataloguing') }}
{{ form.n_catalogo_generale(class="form-control") }}
{{ form.n_catalogo_interno(class="form-control") }}
{{ form.n_catalogo_internazionale(class="form-control") }}
{{ form.soprintendenza(class="form-control") }}
{{ form.d_stratigrafica(class="form-control", rows=4) }}
{{ form.d_interpretativa(class="form-control", rows=4) }}
{{ form.descrizione(class="form-control", rows=6) }}
{{ form.interpretazione(class="form-control", rows=6) }}
{{ form.osservazioni(class="form-control", rows=4) }}
{{ _('Characteristics') }}
{{ form.definizione_stratigrafica(class="form-select") }}
{{ form.formazione(class="form-select") }}
{{ form.stato_di_conservazione(class="form-select") }}
{{ form.colore(class="form-select") }}
{{ form.consistenza(class="form-select") }}
{{ form.struttura(class="form-control") }}
{{ _('Measurements') }}
{{ form.quota_relativa(class="form-control", placeholder=_('e.g. 10.50')) }} {{ _('Meters') }}
{{ form.quota_abs(class="form-control", placeholder=_('e.g. 120.50')) }} {{ _('Meters a.s.l.') }}
{{ form.lunghezza_max(class="form-control", placeholder=_('e.g. 250')) }} {{ _('cm') }}
{{ form.larghezza_media(class="form-control", placeholder=_('e.g. 150')) }} {{ _('cm') }}
{{ form.altezza_max(class="form-control", placeholder=_('e.g. 50')) }} {{ _('cm') }}
{{ form.altezza_min(class="form-control", placeholder=_('e.g. 10')) }} {{ _('cm') }}
{{ form.profondita_max(class="form-control", placeholder=_('e.g. 80')) }} {{ _('cm') }}
{{ form.profondita_min(class="form-control", placeholder=_('e.g. 20')) }} {{ _('cm') }}
{{ _('Periodization') }}
{{ form.periodo_iniziale(class="form-control") }}
{{ form.fase_iniziale(class="form-control") }}
{{ form.periodo_finale(class="form-control") }}
{{ form.fase_finale(class="form-control") }}
{{ form.datazione(class="form-select") }}
{{ form.affidabilita(class="form-select") }}
{{ _('Tip:') }} {{ _('Specifying the initial and final period helps to chronologically contextualize the stratigraphic unit in the archaeological site.') }}
{{ _('Stratigraphic relationships format:') }}
{{ _('Enter relationships in the format:') }} {{ _('covers 1002, cuts 1005, leans on 1010') }}
{{ _('Relationship types: covers, cuts, leans on, fills, equal to, bonds to') }}
{{ form.rapporti(class="form-control", rows=8) }} {{ _('Example: "Covers 1002, Covers 1003, Cuts 1005, Leans on 1010"') }}
{{ _('Harris Matrix Relationships') }}

{{ _('After saving the SU, it will be possible to view the complete Harris Matrix of the site in the dedicated section.') }}

{{ _('The system will automatically validate stratigraphic relationships to identify any paradoxes or cycles.') }}

{{ form.inclusi(class="form-control", rows=4) }} {{ _('Materials or elements included in the SU') }}
{{ form.campioni(class="form-control", rows=4) }} {{ _('Samples taken from the SU') }}
{{ form.flottazione(class="form-select") }}
{{ form.setacciatura(class="form-select") }}
{{ form.documentazione(class="form-control", rows=4) }} {{ _('References to photographic, graphic documentation, etc.') }}
{{ form.cont_per(class="form-control", rows=4) }} {{ _('Containment relationships (e.g. "Container: SU 1000")') }}
{% if edit_mode and us_id %}
{{ _('Media Files') }}
{{ _('Upload Media') }}

Drag & drop files here or click to browse

Supports: images, documents, videos, audio, 3D models

{% if media_list %}
{% for media in media_list %}
{% if media.media_type == 'image' and media.media_path %} {{ media.media_name }} {% elif media.media_type == 'document' %} {% elif media.media_type == 'video' %} {% elif media.media_type == 'audio' %} {% elif media.media_type == 'spreadsheet' %} {% elif media.media_type == 'docx' %} {% elif media.media_type == '3d_model' %} {% else %} {% endif %}

{{ media.media_name }}

{% if media.description %}

{{ media.description[:50] }}{% if media.description|length > 50 %}...{% endif %}

{% endif %} {% if media.is_primary %} {{ _('Primary') }} {% endif %}
{% endfor %}
{% else %}
{{ _('No media files have been uploaded for this US yet.') }} {{ _('Upload your first file') }}
{% endif %}
{% endif %}
{{ _('Cancel') }}
{% endblock %}