{% extends 'wise_core/base.html' %} {% load i18n %} {% comment %} A list page: icon + title + record count, and a header row of actions. The default `list_actions` is the whole standard row - the search box (when the view has a search filter, see `WiseListView`), the filter drawer's button and the "New" button (a floating action button on a phone) - so a list that only needs to fill in its rows overrides nothing but `list_body`. {% endcomment %} {% block body %}
{% block list_icon %}{% endblock %}

{% block list_title %}{% endblock %}

{% block list_count %}{{ paginator.count }} {% trans "record(s)" %}{% endblock %}

{% block list_actions %} {% if can_search %}{% include 'wise_core/components/_search_bar.html' %}{% endif %} {% include 'wise_core/components/filter_button.html' %} {% include 'wise_core/components/_create_button.html' %} {% endblock %}
{% block list_body %}
{% for item in object_list %} {% block card_item %}{% endblock %} {% empty %} {% include 'wise_core/components/_no_data.html' %} {% endfor %}
{% include 'wise_core/components/_pagination.html' %}
{% endblock %}
{% endblock %}