{% extends "fastapi_panel/base.html" %} {% from "fastapi_panel/widgets.html" import widget, errors %} {% block content %}

{{ title }}

{% if admin.search_fields %} {% if admin.search_help_text %}

{{ admin.search_help_text }}

{% endif %} {% endif %} {% if date_links %} {% endif %} {% if saved_filters or current_query %}
{% if saved_filters %}Saved:{% endif %} {% for saved in saved_filters %}
{{ saved.name }}
{% endfor %} {% if current_query and not saved_filters|selectattr("active")|list %}
Save this view
{% endif %}
{% endif %}
{% if actions %}
0 of {{ rows|length }} selected {% if total > rows|length %} {% endif %}
{% endif %}
{% if actions %}{% endif %} {% for header in headers %} {% endfor %} {% if can_restore %}{% endif %} {% for row in rows %} {% if actions %}{% endif %} {% for cell in row.cells %} {% endfor %} {% if can_restore %}{% endif %} {% else %} {% endfor %}
{% if header.url %}{{ header.label }}{% if header.direction == "asc" %} {% elif header.direction == "desc" %} {% endif %} {% else %}{{ header.label }}{% endif %} Restore
{% if loop.first and editable %}{% endif %} {% if cell.field %} {{ widget(cell.field) }}{{ errors(cell.field) }} {% elif cell.link %} {{ cell.value }} {% else %}{{ cell.value }}{% endif %}
{% if query or any_filter_active %}Nothing matches. Clear the search and filters. {% else %}No {{ title.lower() }} yet.{% endif %}
{{ total }} {{ admin.name.lower() if total == 1 else title.lower() }} {% if editable and rows %}{% endif %} {% if last_page > 1 %} {% endif %}
{% if filters %} {% endif %}
{% endblock %}