{# Grid region — first adopter of the shared region_card macro (UX-035). Contract: ~/.claude/skills/ux-architect/components/grid-region.md (UX-066) v0.62 CSS refactor: inline Tailwind → semantic .dz-grid-* classes (components/regions.css). Cell hover-state lives on .is-clickable modifier (toggled by `{% if action_url %}`); attention accent still flows through the unchanged attention_classes macro. #} {% from 'macros/status_badge.html' import render_status_badge %} {% from 'macros/region_wrapper.html' import region_card %} {% from 'macros/attention_accent.html' import attention_classes %} {% from 'macros/ref_cell.html' import ref_cell %} {% call region_card(title) %}
{{ col.label }}: {% if col.type == "badge" %} {{ render_status_badge(value=item[col.key]) }} {% elif col.type == "bool" %} {{ item[col.key] | bool_icon }} {% elif col.type == "date" %} {{ item[col.key] | dateformat }} {% elif col.type == "currency" %} {{ item[col.key] | currency }} {% elif col.type == "ref" %} {{ ref_cell(item[col.key], item.get(col.key ~ "_display", ""), col.ref_route or "", 'link_stop') }} {% else %} {{ item[col.key] | default("") | truncate_text }} {% endif %}
{% endif %} {% endfor %}