Acasa = ecran de import (tab Import scos, ?tab=import->Acasa). Bara status compacta pe 2 randuri cu bife accesibile (glife + text) + data formatata. 'Coada'->'Trimiteri': coloane RO, stare umana, detaliu la click in panou dedicat. Mapari pe 3 sectiuni (de rezolvat / op salvate / formate coloane), Cont doar cheie+creds. Filtrare Trimiteri, corectie inline needs_data cu re-enqueue + detectie coliziune idempotency, badge contoare pe tab-uri. Helper pur partajat payload_view.py (web + GET /v1/prezentari). Backend trimitere (worker/idempotenta/mapping/schema) neatins. 483 teste. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
57 lines
2.2 KiB
HTML
57 lines
2.2 KiB
HTML
<div id="acasa-section">
|
|
|
|
{# === Centru de greutate: caseta de upload (importul e operatia principala) === #}
|
|
{% include '_upload.html' %}
|
|
|
|
{# === Subordonat: primii pasi pe un singur rand compact === #}
|
|
{% set toti_esentiali = are_creds and are_trimiteri %}
|
|
{% if not toti_esentiali %}
|
|
<div class="card" style="margin-top:14px; padding:12px 16px;">
|
|
<div style="display:flex; gap:20px; flex-wrap:wrap; align-items:center; font-size:13px;">
|
|
<span class="muted" style="font-weight:600;">Primii pasi:</span>
|
|
|
|
{# Pas 1: Cont RAR (esential) #}
|
|
<span style="display:inline-flex; align-items:center; gap:6px;">
|
|
{% if are_creds %}
|
|
<span class="s-sent" aria-hidden="true" style="font-weight:bold;">✓</span>
|
|
{% else %}
|
|
<span class="muted" aria-hidden="true">○</span>
|
|
{% endif %}
|
|
<a href="/?tab=cont">Cont RAR</a>
|
|
</span>
|
|
|
|
{# Pas 2: Cheie API (optional) #}
|
|
<span style="display:inline-flex; align-items:center; gap:6px;">
|
|
{% if are_cheie_folosita %}
|
|
<span class="s-sent" aria-hidden="true" style="font-weight:bold;">✓</span>
|
|
{% else %}
|
|
<span class="muted" aria-hidden="true">○</span>
|
|
{% endif %}
|
|
<a href="/?tab=cont">Cheie API</a>
|
|
<span class="muted">(optional)</span>
|
|
</span>
|
|
|
|
{# Pas 3: Import (esential) — marcat ca pas curent #}
|
|
<span style="display:inline-flex; align-items:center; gap:6px;">
|
|
{% if are_trimiteri %}
|
|
<span class="s-sent" aria-hidden="true" style="font-weight:bold;">✓</span>
|
|
{% else %}
|
|
<span class="s-queued" aria-hidden="true" style="font-weight:bold;">●</span>
|
|
{% endif %}
|
|
<strong>Import</strong> <span class="muted">(incarca fisierul sus)</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{# === Subordonat: ajutor rapid pe un rand discret === #}
|
|
<div style="margin-top:10px; font-size:13px; color:var(--muted);
|
|
display:flex; gap:16px; flex-wrap:wrap; align-items:center;">
|
|
<span>Ajutor:</span>
|
|
<a href="/?tab=coada">Trimiteri</a>
|
|
<a href="/?tab=mapari">Mapari</a>
|
|
<a href="/?tab=nomenclator">Coduri RAR</a>
|
|
</div>
|
|
|
|
</div>
|