{% extends "base.html" %} {% block title %}{{ task.title or 'Task' }} — {{ _('Misure') }} — TieMeasureFlow{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
{# ================================================================ HEADER — Compact task info bar ================================================================ #}
{# Back button #} {# Task badge + title #}
Task {{ (task.order_index or 0) + 1 }}

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

{# Lot + Serial badges #}
{% if lot_number %}
{{ lot_number }}
{% endif %} {% if serial_number %}
{{ serial_number }}
{% endif %} {# Caliper status #} {% include "components/caliper_status.html" %}
{# ================================================================ MAIN — 3-column layout ================================================================ #}
{# ────────────────────────────────────────────── LEFT SIDEBAR — Marker list (vertical) ────────────────────────────────────────────── #} {# ────────────────────────────────────────────── CENTER — Image area ────────────────────────────────────────────── #}
{# Main image area #}
{# Option A: Subtask has its own image → plain #}
{{ _('Immagine dettaglio misura') }}
{# Option B: Task image with annotations → annotation-viewer (kept in DOM via x-show) #}
{% if task.file_path %}
{% endif %}
{# Option C: No image → placeholder #}

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

{# ────────────────────────────────────────────── RIGHT PANEL — Info + tolerances + numpad ────────────────────────────────────────────── #}
{# ---- Subtask header ---- #}

/
{# ---- Tolerance parameters (compact grid) ---- #}
{# Nominal row #}
{{ _('Nominale') }}
{# 2x2 tolerance grid #}
UTL
LTL
UWL
LWL
{# ---- Tolerance bar (compact) ---- #}
{# Zone labels #}
{# Center line #}
{# Value needle #}
{# ---- Already measured indicator ---- #}
{{ _('Registrata') }}:
{# ---- 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 #} {# Center: Progress bar #}
/
{# Right: Summary button #}
{# ================================================================ COMPLETION OVERLAY ================================================================ #}

{{ _('Misurazioni Complete') }}

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

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