{% load i18n %} {# list_view.html — searchable list with optional row actions. Context: list — ListViewData instance (codex_django.cabinet.types.ListViewData) Usage: {% include "cabinet/components/list_view.html" with list=list_data %} #}
{% if list.search_placeholder %}
{% endif %}
{% for row in list.rows %}
{% if row.avatar %} {% include "cabinet/includes/_avatar.html" with initials=row.avatar size="36" %} {% endif %}
{{ row.primary }}
{% if row.secondary %}
{{ row.secondary }}
{% endif %}
{% if row.meta %}
{{ row.meta }}
{% endif %} {% if row.actions %}
{% for action in row.actions %} {% with url_val=row.url %} {% if action.icon %}{% endif %} {{ action.label }} {% endwith %} {% endfor %}
{% endif %}
{% empty %}
{{ list.empty_message }}
{% endfor %}