{% from "_eroare.html" import card_erori %} {% import '_macros.html' as ui %} {# US-008: conectorul detaliului = fundal subtil + border-top pe randul-sibling (.detaliu-rand, base.html), NU border-left accent (evita AI-slop). #}

Detaliu trimitere #{{ id }}

{{ stare_text }}
{% if stare_subtext %}

{{ stare_subtext }}

{% endif %}
Numar inmatriculare
{{ prez.vehicul_nr }}
VIN (serie sasiu)
{{ prez.vin }}
Operatie
{{ prez.operatie }}
Cod RAR
{{ prez.cod }}
Data prestatie
{{ prez.data_prestatie }}
Odometru final
{{ prez.odometru }}
Nr. prezentare RAR
{{ id_prezentare or '—' }}
Cod HTTP RAR
{{ rar_status_code or '—' }}
Reincercari
{{ retry_count }}
Creat
{{ created_at }}
Actualizat
{{ updated_at }}
Urmatoarea incercare
{{ next_attempt_at }}
{% if erori_3n %}
{{ card_erori(erori_3n) }}
{% elif motiv %}
Motiv
{{ motiv }}
{% endif %} {% if rar_error %}
Mesaj tehnic RAR (integral)
{{ rar_error }}
{% endif %} {# === Lifecycle (US-011): sterge / re-pune in coada — doar randuri blocate === #} {% if gestionabil %}
{% endif %} {# === Mapare inline (PRD 5.7): alege cod RAR pentru operatiile nemapate ale acestui rand === #} {% if nemapate_inline %}

Mapeaza codul operatiei

Alege codul RAR pentru fiecare operatie. La salvare, randul se re-rezolva pe loc (si celelalte randuri cu aceeasi operatie).

{% for op in nemapate_inline %} {% set top = op.suggestions[0] if op.suggestions else None %} {% set preselect = top.cod_prestatie if (top and top.score >= 60) else '' %}
{{ op.cod_op_service }} {% if op.denumire and op.denumire != op.cod_op_service %} — {{ op.denumire }} {% endif %}
{% if op.suggestions %}
Sugestii: {% for s in op.suggestions[:3] %} {{ s.cod_prestatie }} ({{ s.score|round|int }}%){% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}
{{ ui.autosend_toggle(checked=True) }}
{% endfor %}
{% endif %} {# === Corectie inline (US-010): doar randuri ne-trimise blocate === #} {% if editabil %} {% set err_map = {} %} {% for e in corectie_errors %}{% if e.field %}{% set _ = err_map.update({e.field: e.message}) %}{% endif %}{% endfor %}

Corecteaza si re-trimite

{% if corectie_msg %}
{{ corectie_msg }}
{% endif %}
{% macro camp(nume, eticheta, valoare, tip='text') %}
{% if err_map.get(nume) %}
{{ err_map.get(nume) }}
{% endif %}
{% endmacro %} {{ camp('nr_inmatriculare', 'Numar inmatriculare', form_nr) }} {{ camp('vin', 'VIN (serie sasiu)', form_vin) }} {{ camp('data_prestatie', 'Data prestatie (YYYY-MM-DD)', form_data) }} {{ camp('odometru_final', 'Odometru final', form_odo_final) }} {{ camp('odometru_initial', 'Odometru initial (daca e cerut)', form_odo_initial) }}
{% endif %}