{# inline_edit.html — phase-based cell editor, ux-architect/primitives/inline-edit contract Context: edit_row_id (str), edit_col (ColumnContext), edit_value (str) Phases: Display → Editing → Saving → Success/Error → Cancel Rendered inside via x-if in table_rows.html. No DaisyUI classes. #}
{# ── Text input (col type: text / default) ──────────────────────────────── #} {% if edit_col.type not in ["bool", "badge", "date"] %} {# ── Boolean checkbox (col type: bool) ─────────────────────────────────── #} {% elif edit_col.type == "bool" %}
{# ── Enum select (col type: badge) ──────────────────────────────────────── #} {% elif edit_col.type == "badge" %} {# ── Date input (col type: date) ────────────────────────────────────────── #} {% elif edit_col.type == "date" %} {% endif %} {# ── Saving spinner (phase 3: Commit) ───────────────────────────────────── #} {# ── Error message (phase 4: Error) ─────────────────────────────────────── #}