{# admin/base_list.html — block-based base for model list views. 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 %} {% endblock %} {% block list_filters %}
{% 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 %}
{% else %} {# boolean, enum, relation, text — render as dropdown #}
{{ field_name | replace('_', ' ') | title }}
{% for value, label in field_info.choices %}
{% endfor %}
{% 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 %}