{% 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 %} {% block page.title %}

{{ page.title }}

{% block page.summary %} {% endblock page.summary %} {% if page.subtitle %} {% endif %} {% endblock page.title %}
{% block page.actions %} {% endblock page.actions %} {% comment %}Add is always last in the bar, shown with the panel open or closed.{% endcomment %} {% block page.panel %} {# The list page's filter form: toolbar fields, then the panel's button. The panel #} {# itself sits beside the table, outside the form. #} {% if filter %}
{# Enter in a text field submits only through a submit button, and some forms have none. #} {% for field in toolbar_fields %} {% endfor %} {% if panel_fields %}
{% endif %} {% 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 %}