{# table_rows.html — inline-editable row cells, row states, Tab navigation Requires: dzTable Alpine controller (editing, selected, isEditing, startEdit, toggleRow) Row height: h-9 (36px dense). No DaisyUI classes. #} {% from 'macros/status_badge.html' import render_status_badge %} {% if table and table.rows %} {% set _row_label_col = namespace(key="id") %} {% for col in table.columns %}{% if col.type not in ["ref", "badge", "bool", "currency"] and _row_label_col.key == "id" %}{% set _row_label_col.key = col.key %}{% endif %}{% endfor %} {% for item in table.rows %} {% set _row_label = item[_row_label_col.key] | default(item.id) %} {% set _row_label = _row_label | ref_display if _row_label is mapping else _row_label %}