{# admin/base_list.html — block-based base for model list views (Tailwind-first, no legacy classes). Extend this to customize individual sections of the list view. Available blocks: list_breadcrumb — breadcrumb navigation list_header — page header (title + export/import/create actions) list_filters — filter bar (search input + filter chips) list_bulk_actions — bulk actions toolbar list_table — data table fragment list_scripts — page-level JS (filterBar, bulk actions) Context: registered, items, display_columns, permissions, filter_fields, active_filters, ordering, search_query, pagination, view, etc. #} {% extends "base.html" %} {% block title %}{{ registered.verbose_name_plural }} — {{ title | default("Admin") }}{% endblock %} {% block content %}
{% block list_breadcrumb %} {% endblock %} {% block list_header %}

{{ registered.verbose_name_plural }}

Manage your {{ registered.verbose_name_plural | lower }} and inventory

{% if permissions.can_export %}
{% endif %} {% if permissions.can_import %}
{% endif %} {% if permissions.can_create %} + New {{ registered.verbose_name }} {% endif %}
{% endblock %} {% block list_filters %}
{{ icon("magnifying-glass", size="20px") }}
{% if filter_fields %}
{% for field_name, field_info in filter_fields.items() %}
{% if field_info.field_type == "date" %}
{% if active_filters.get(field_name) %} {% endif %}
{% elif field_info.field_type == "datetime" %}
{% if active_filters.get(field_name) %} {% endif %}
{% elif field_info.field_type == "time" %}
{% if active_filters.get(field_name) %} {% endif %}
{% elif field_info.field_type == "text" %}
{% if active_filters.get(field_name) or active_filters.get(field_name + '__icontains') %} {% endif %}
{% elif field_info.field_type in ("numeric", "integer") %}
{% if active_filters.get(field_name + '__gte') or active_filters.get(field_name + '__lte') %} {% endif %}
{% else %} {# boolean, enum, relation — render as dropdown #} {% endif %}
{% endfor %}
{% endif %}
{% if filter_fields %}
{% endif %}
{% endblock %} {% block list_bulk_actions %} {# Bulk Actions Bar — Django-style: always visible above table #} {% if permissions.can_delete or list_actions %}
{% endif %} {% endblock %} {% block list_table %} {% include "partials/list_table.html" %} {% endblock %}
{% block list_scripts %} {% endblock %} {% endblock %}