{% set il = inline_cls %} {% set iid = identity %} {% set pp = parent_pk %} {% set base_url = "/admin/" ~ parent_identity ~ "/inline/" ~ iid ~ "/" ~ pp %} {% set sortable = (order_field is defined and order_field) %}
{# ── Header ── #}

{% if icon %}{% endif %} {{ label }} {{ pagination.count }} {% if sortable %} sortable {% endif %}

{# Search #} {% if search_enabled %}
{% if search %} {% endif %}
{% endif %} {# Add button #} {% if can_create %}
{% endif %}
{# ── Body ── #}
{# Drag handle column header #} {% if sortable %} {% endif %} {# Delete checkbox column header — independent from sortable #} {% if can_delete %} {% endif %} {% for col in display_columns %} {% endfor %} {% if pagination.rows %} {% for row in pagination.rows %} {% set row_pk = il.encode_pk(row) %} {# Drag handle cell #} {% if sortable %} {% endif %} {# Delete checkbox cell #} {% if can_delete %} {% endif %} {% for col in display_columns %} {% endfor %} {% endfor %} {% else %} {% endif %}
{{ column_labels[col] }}
{{ il.get_display_value(row, col) }} {% if can_edit %} {% endif %}
{% if search %} No results for "{{ search }}" {% else %} No {{ label }} yet{% if can_create %} — click Add to create one{% endif %}. {% endif %}
{# ── Footer ── #} {% if can_delete or pagination.total_pages > 1 or pagination.count > 0 %} {% endif %}