{% extends "layout.html" %} {% from "_column_header.html" import render as column_header with context %} {% from "_pagination.html" import render as pagination with context %} {% from "_filter_bar.html" import render as filter_bar with context %} {% from "_filter_builder.html" import render as filter_builder with context %} {% from "actions.html" import action_item with context %} {% set inline_edit_enabled = view.inline_editable_fields and view.can_edit(request) %} {% block header %}
{% block page_title %}

{{ view.menu_label }}

{% endblock %} {% block breadcrumbs %} {% endblock %}
{% endblock %} {% block modal %} {% include "modals/loading.html" %} {% include "modals/actions.html" %} {% if view.can_import(request) and view.importers %} {% include "modals/import.html" %} {% endif %} {% if inline_edit_enabled %} {% include "inline-edit/popover.html" %} {% include "inline-edit/popover_body.html" %} {% endif %} {% endblock %} {% block content %}
{% block list_search %}
{% for s_name, s_dir in list_params.sorts %} {% endfor %} {% if list_params.page_size != view.page_size %} {% endif %} {% if list_params.visible_cols is not none %} {% endif %} {% if raw_filter %} {% endif %}
{% endblock %}
{% block list_toolbar %} {% include "actions.html" %} {{ filter_builder(view,list_params, filter_chips, filter_builder_fields) }} {% if view.column_visibility %} {% endif %} {% for action in _actions | selectattr("dedicated_button") | list %} {{ action_item(action, dedicated=True) }} {% endfor %} {% if view.can_import(request) and view.importers %} {% endif %} {% block list_toolbar_extra %}{% endblock %} {% if view.can_create(request) %} {{ _("New %(name)s", name=view.display_name) }} {% endif %} {% endblock %}
{% if filter_chips %}
{{ filter_bar(filter_chips, filter_logic, list_params) }}
{% endif %} {% block list_before_table %} {% endblock %} {% block list_table %} {% if total > (rows | length) %} {% endif %}
{% block list_header %} {% if view.row_actions_position.value == "BEFORE_COLUMNS" %}{% endif %} {% for field in fields %}{% endfor %} {% if view.row_actions_position.value == "AFTER_COLUMNS" %}{% endif %} {% endblock %} {% for row in rows %} {# The row markup lives in _list_row.html so the inline-edit row endpoint can render an identical replacement row. #} {% block list_row scoped %} {% include "_list_row.html" %} {% endblock %} {% else %} {% endfor %}
{{ column_header(field, list_params) }}
{% block list_empty scoped %}{{ _("No data") }}{% endblock %}
{% endblock %} {% block list_after_table %}{% endblock %} {% block list_footer %} {% endblock %}
{% endblock %} {% block head_css %} {{ super() }} {% if view.row_click_navigate %} {% endif %} {% for link in view._additional_css_links(request) %}{% endfor %} {% if inline_edit_enabled %} {% endif %} {% endblock %} {% block script %} {{ super() }} {% if inline_edit_enabled %} {% endif %} {% for link in view._additional_js_links(request) %} {% endfor %} {% if filter_builder_fields %} {% endif %} {% if view.can_import(request) and view.importers %} {% endif %} {# djlint:off #} {# djlint:on #} {% endblock %}