{% extends "adminsite/base.html" %} {% import "adminsite/_icons.html" as icons %} {% block page_title %}{{ view.label_plural }} ยท {{ title }}{% endblock %} {% block header_class %}lg:pt-5 lg:pb-3{% endblock %} {% block header %}

{{ view.label_plural }}

{% include "adminsite/_records_total.html" %} {% endblock %} {% block header_actions %} {#- On a phone the page's other actions fold into one menu, so the header keeps to a single line. Wider, Import and Export CSV are buttons, and so is the view's own action when it has only one. Several share a More actions menu, so however many there are, the header keeps to a few buttons. Kept as buttons of the header's own row, they wrap where they do not all fit; kept apart in a row of their own, they ran past the edge of the panel. In either menu whatever cannot be undone comes last, under a line of its own. -#} {%- set safe = view_actions|rejectattr("dangerous")|list -%} {%- set dangerous = view_actions|selectattr("dangerous")|list -%} {% if view_actions or can_import or can_export %} {% endif %} {% if can_create %} {{ icons.icon("plus") }}{{ _('New') }} {% endif %} {% endblock %} {% block content %}

{% if saving_views %}{% include "adminsite/_saved_tabs.html" %}{% endif %} {% include "adminsite/_toolbar.html" %} {% include "adminsite/_table.html" %} {% if view._settings.inline_editable_fields %}{% include "adminsite/_value_editing.html" %}{% endif %} {% if view.list_refresh_seconds %} {#- Reads the rows again every so often, for the address the list shows then, while nobody is at work on it and its tab is in view. Outside the table, so drawing the table again keeps its clock going. -#} {% endif %}
{% endblock %}