{% extends "list_view.html" %} {% load i18n %} {% comment %} Overrides the outer `content` block, not page.header/page.content-wrapper: those sit inside page_view.html's , a plain div that breaks the flex chain a filled layout needs (specs/027-table-layout-and-column-styling/research.md R5). {% endcomment %} {% comment %} The breadcrumb trail draws in the app header, not here, so page.header has nothing of its own to draw — it stays declared for a project that filled it. {% endcomment %} {% comment %} app.footer is emptied: the shell's footer belongs to a page that ends, and this one does not — the table spends the whole viewport, so a footer under it either steals rows or never comes into view. {% endcomment %} {% block app.footer %}{% endblock app.footer %} {% block content %} {% block page.content-wrapper %} {% comment %} gap="0" and padding on the bands, never the page: the table meets the shell edges, so a gap or page padding would inset the scroll region. Three bands stay put (anything in page.header, the toolbar, the footer) and the table between them is the one thing that scrolls. {% endcomment %} {% comment %} No header and no gap in either direction, so the empty header row adds no space above the toolbar and the table meets the panel. {% endcomment %} {% block page.side %} {{ block.super }} {% endblock page.side %} {# The region swapped as on a list page; display: contents keeps the flex chain the #} {# filled layout needs. #}
{% block page.header %} {% endblock page.header %} {% block page.toolbar %} {% if refinements %} {% blocktrans count counter=refinements|length %}{{ counter }} filter active{% plural %}{{ counter }} filters active{% endblocktrans %} {% endif %} {# Compact draws the title in the bar; any other layout draws it above the bar. #} {% block page.title %} {% block page.eyebrow %}{{ page.title_args.eyebrow }}{% endblock page.eyebrow %} {% block page.heading %}{{ page.title_args.title }}{% endblock page.heading %} {% block page.lead %}{{ page.title_args.lead }}{% endblock page.lead %} {% block page.info %} {% endblock page.info %} {% endblock page.title %} {% block page.summary %} {% endblock page.summary %} {# The same controls as a list page, in its order. page.actions holds Add. #} {% block page.controls %} {% if panel_fields %} {% endif %} {% block page.actions %} {% for action in page.title_args.actions %}{% endfor %} {% endblock page.actions %} {% endblock page.controls %} {% block page.panel %} {# The panel the toggle closes. The filter panel itself sits beside the table. #} {% if filter %} {% block page.filters %}
{# Enter in a text field submits only through a submit button, and some forms have none. #} {# The column headings write the order; the form keeps it when it submits. #} {% if table_sort %} {% endif %} {% for field in toolbar_fields %} {% endfor %} {% endblock page.filters %} {% block page.refinements %} {% endblock page.refinements %} {% endif %} {% endblock page.panel %}
{% endblock page.toolbar %} {% block page.content %} {% endblock page.content %} {% block page.footer %} {% if page_obj %} {% endif %} {% endblock page.footer %}
{% endblock page.content-wrapper %}
{% endblock content %}