{% extends "beam/base.html" %} {% load i18n %} {% load beam_tags %} {% block body_classes %}{{ block.super }} beam-list{% if component.model %}{% get_options component.model as options %} beam-list-{{ options.app_label }}-{{ options.model_name }}{% endif %}{% endblock %} {% block content %} {% get_options component.model as options %}
{% block links %}
{% include "beam/partials/links.html" with links=viewset.links link_layout=component.link_layout %}
{% endblock %} {% block heading %}

{% if heading %}{{ heading }}{% else %} {{ options.verbose_name_plural|capfirst }} {% endif %}

{% endblock %} {% block search %} {% if view.search_fields %}
{% if search_query %} {% trans "Clear" %} {% endif %}
{% endif %} {% endblock %} {% block table %} {% for field in component.fields %} {% endfor %} {% for object in object_list %} {% for field in component.fields %} {% endfor %} {% block list_item_links %} {% endblock %} {% endfor %}
{{ component.model|field_verbose_name:field|capfirst }} {% trans "Actions" %}
{% include "beam/partials/detail_field.html" with object=object field=field %} {% include "beam/partials/list_links.html" with links=viewset.links link_layout=component.list_item_link_layout object=object %}
{% endblock %} {% block no_results %} {% if not object_list %} {% endif %} {% endblock %} {% block pagination %}

{% if object_list %} {% if is_paginated %} {% blocktrans with total=page_obj.paginator.count start=page_obj.start_index end=page_obj.end_index name=options.verbose_name_plural %}Showing {{ start }} to {{ end }} of {{ total }} {{ name }}{% endblocktrans %} {% elif page_obj.paginator.count == 1 %} {% blocktrans with total=page_obj.paginator.count start=page_obj.start_index end=page_obj.end_index name_singular=options.verbose_name %}Showing {{ total }} {{ name_singular }}{% endblocktrans %} {% else %} {% blocktrans with total=page_obj.paginator.count start=page_obj.start_index end=page_obj.end_index name_plural=options.verbose_name_plural %}Showing {{ total }} {{ name_plural }}{% endblocktrans %} {% endif %} {% endif %}

{% endif %} {% endblock %}
{% endblock %}