{% extends "base.html" %} {% from "macros.html" import icon, btn, badge %} {% block title %}{{ model_label }}{% endblock %} {% block content %}
{# Toolbar (Airy) #}
{{ icon('search', 16) }}
{% if filters %}
{% endif %}
{# Bulk Action Bar #}
0 {{ t('selected') }}
{% for act in bulk_actions %}
{{ request.csrf_input() }}
{% endfor %}
{# Table Partial Wrapper #} {% block model_table %}
{% if items %}
{% set has_actions = can_edit or can_delete %} {% for s in sort_links %} {{ s.col }}{% if s.arrow %} {{ s.arrow }}{% endif %} {% endfor %} {% if has_actions %} {% endif %} {% for row in items %} {% for col in columns %} {% if loop.first %} {{ row[col] | date }} {% else %} {{ row[col] | date }} {% endif %} {% endfor %} {% if has_actions %} {% endif %} {% endfor %}
{{ t('ACTIONS') }}
{% if is_auth_model and row.id != request.user.id and not trash %}
{{ request.csrf_input() }}
{% endif %} {% if can_edit %} {{ icon('edit', 16) }} {% endif %} {% if trash %}
{{ request.csrf_input() }}
{% elif can_delete %}
{{ request.csrf_input() }}
{% endif %}
{% else %}
{{ icon('table', 28, 'empty-icon') }}

{{ t('No records found') }}

{% if q %}{{ t('Try a different search term or filter.') }} {% else %}{{ t('Get started by adding your first record.') }}{% endif %}

{% if can_add and not trash %} {{ icon('plus', 16) }} {{ t('Add first record') }} {% endif %}
{% endif %}
{% endblock %}
{% endblock %}