{% 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 '' %}
{% 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 %}