{% 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 extra_scripts %}{{ block.super }}{{ filterset.form.media.js }}{% for action in actions %}{{ action.get_form.media.js }}{% endfor %}{% endblock %} {% block extra_styles %}{{ block.super }}{{ filterset.form.media.css }}{% for action in actions %}{{ action.get_form.media.css }}{% endfor %}{% endblock %} {% block title %} {% if heading %} {{ heading }} {% else %} {% get_options component.model as options %} {{ options.verbose_name_plural|capfirst }} {% endif %} | {{ block.super }} {% endblock %} {% block content %} {% get_options component.model as options %}
{% block links_container %} {% endblock %} {% block heading_container %}

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

{% endblock %} {% block search %} {% if view.search_fields %}
{% preserve_get_params_as_hidden_inputs ignore_params=view.page_kwarg q="" %}
{% if search_query %} {% trans "Clear" %} {% endif %}
{% endif %} {% endblock %} {% block filters %} {% include "beam/partials/filters.html" with page_param=view.page_kwarg %} {% endblock %} {% if actions %}
{% csrf_token %} {% block actions %} {% include "beam/partials/actions.html" %} {% endblock %} {% endif %} {% block table %}
{% block table_head %} {% if actions %} {% endif %} {% for field in component.fields %} {% endfor %} {% if component.list_item_link_layout %} {% endif %} {% endblock %} {% for object in object_list %} {% if actions %} {% endif %} {% for field in component.fields %} {% endfor %} {% block list_item_links %} {% if component.list_item_link_layout %} {% endif %} {% endblock %} {% endfor %}
{% with field_name=field|stringformat:"s" %}{# cast to string to support virtual fields #} {% if field_name in sortable_fields %} {# fixme text-nowrap only if there is a chance to fit this? #} {{ component.model|field_verbose_name:field|capfirst }} {% if field_name in sorted_fields %}{% elif "-"|add:field_name in sorted_fields %}{% endif %} {% if field_name in sorted_fields or "-"|add:field_name in sorted_fields %} {% endif %} {% else %} {{ component.model|field_verbose_name:field|capfirst }} {% endif %} {% endwith %} {% trans "Actions" %}
{% include "beam/partials/detail_field.html" with object=object field=field %}
{% endblock %} {% block no_results %} {% if not object_list %} {% endif %} {% endblock %} {% block pagination_container %}
{% block pagination %} {% include "beam/partials/pagination.html" with page_param=view.page_kwarg %} {% endblock %}
{% endblock %} {% if actions %}
{% endif %}
{% endblock %}