{% extends "base.html" %} {% block title %}{{ task.title or 'Task' }} — {{ _('Misure') }} — TieMeasureFlow{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
{# ================================================================ HEADER — Task info + traceability ================================================================ #}
{# Left: Task title and directive #}
{# Breadcrumb line #}
{{ _('Task') }} Task {{ (task.order_index or 0) + 1 }}

{{ task.title or _('Task di misurazione') }}

{% if task.directive or task.description %}

{{ task.directive or task.description }}

{% endif %}
{# Right: Traceability + Caliper #}
{# Lot badge #} {% if lot_number %}
{{ lot_number }}
{% endif %} {# Serial badge #} {% if serial_number %}
{{ serial_number }}
{% endif %} {# Caliper status #} {% include "components/caliper_status.html" %}
{# ================================================================ MAIN CONTENT — Split layout ================================================================ #}
{# ────────────────────────────────────────────── LEFT COLUMN — Annotation Viewer (60%) ────────────────────────────────────────────── #}
{# Image viewer card #}
{{ _('Disegno Tecnico') }}
{% if task.file_path and task.file_type == 'image' %} {# Image with annotation overlay #}
{% elif task.file_path and task.file_type == 'pdf' %} {# PDF placeholder #}

{{ _('Visualizzatore PDF') }}

{{ _('In fase di sviluppo') }}

{{ _('Apri PDF') }}
{% else %} {# No file placeholder #}

{{ _('Nessuna immagine allegata') }}

{{ _('Segui le istruzioni nella direttiva') }}

{% endif %}
{# Marker quick-nav strip (horizontal scrollable) #}
{# ────────────────────────────────────────────── RIGHT COLUMN — Measurement Panel (40%) ────────────────────────────────────────────── #}
{# ---- Subtask Info Card ---- #}
{# Marker header #}

{# Counter badge #} /
{# Tolerance parameters table #}
{# Nominal #}
{{ _('Nominale') }}
{# UTL #}
UTL
{# LTL #}
LTL
{# UWL #}
UWL
{# LWL #}
LWL
{# Already measured indicator #}
{{ _('Misurazione registrata') }}:
{# ---- Tolerance Visualization Bar ---- #}
{# Zone labels #}
{# Nominal center line #}
{# Value indicator (needle) #}
{# Pip on top #}
{# ---- Measurement Feedback ---- #}
{% include "components/measurement_feedback.html" %}
{# ---- Numpad ---- #}
{# Saving overlay #}
{{ _('Salvataggio...') }}
{% include "components/numpad.html" %}
{# ---- Next Measurement Indicator ---- #}
{% include "components/next_measurement.html" %}
{# ---- Error message ---- #}
{# ================================================================ FOOTER — Progress bar + navigation ================================================================ #}
{# Left: Back button #} {# Center: Progress #}
{# Text counter #} / {# Progress bar #}
{# Percentage #}
{# Right: Complete / next task button #}
{# ================================================================ COMPLETION OVERLAY ================================================================ #}
{# Success icon #}

{{ _('Misurazioni Complete') }}

{{ _('Tutte le') }} {{ _('misurazioni sono state registrate.') }}

{# Summary counts #}
{{ _('Conformi') }}
{{ _('Attenzione') }}
{{ _('Non Conf.') }}
{% endblock %} {% block extra_js %} {% endblock %}