{% from "_eroare.html" import card_erori %} {% import '_macros.html' as ui %} {# Detaliu editabil in-place. Fragmentul se swap-uieste in corpul modalului global (#detaliu-modal-body). Heading-ul poarta id-ul folosit de aria-labelledby al dialogului. Operatie + cod RAR rezolvat apar IMPREUNA, read-only, folosind `prez.cod_rar` (fallback „nemapat"), fara eticheta separata „Cod RAR". #} {% set cod_afis = prez.cod_rar if (prez.cod_rar and prez.cod_rar != '—') else 'nemapat' %}
{{ motiv }}
{% elif stare_subtext %}{{ stare_subtext }}
{% endif %} {# === Bloc eroare blocanta — DOAR in read-only. In editare, cardul 3-niveluri e inlocuit cu: erori per-camp in macro `camp` (text simplu .s-error) + rezumat top-of-form pentru erori fara camp (mai jos). === #} {% if not editabil and erori_3n %}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 '' %} {% endfor %}{{ rar_error }}