{% with field_name=field|stringformat:"s" %}{# cast to string to support virtual fields #} {% if field_name in sortable_fields %} {{ 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 %} | {% endfor %}{% trans "Actions" %} |
---|---|
{% include "beam/partials/detail_field.html" with object=object field=field %} | {% endfor %} {% block list_item_links %}{% include "beam/partials/list_links.html" with links=viewset.links link_layout=component.list_item_link_layout object=object %} | {% endblock %}
{% if search_query %} {% blocktrans with name=options.verbose_name_plural %}Could not find any {{ name }} for query "{{ search_query }}"{% endblocktrans %}. {% else %} {% blocktrans with name=options.verbose_name_plural %}Could not find any {{ name }}{% endblocktrans %}. {% endif %}
{% 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 %}