{% extends 'viewsets/base.html' %} {% load viewset_tags staticfiles i18n %} {% block extrahead %} {{ filter.form.media }} {% endblock %} {% block breadcrumbs_items %} {% if viewset.view_index %} {% endif %} {% endblock %} {% block body_title %}{{ opts.verbose_name_plural|capfirst }}{% endblock %} {% block title_buttons %} {% if has_create_permission and not is_popup %} {% trans 'Add' %} {% endif %} {% endblock %} {% block content %} {% block filters %} {% include 'viewsets/includes/_filter.html' %} {% endblock %} {% block objects_table %} {% if object_list %}
{% for field_name, title, sorting in serializer.cols %} {% endfor %} {% for object, row in serializer %} {% for col in row %} {% endfor %} {% endfor %}
{% sort_link field_name title sorting %}
{% if forloop.first and not is_popup and has_update_permission and has_detail_permission %} {% endif %} {{ col }}
{% elif filter.form.has_changed %}

{% trans 'Nothing found' %}.

{% endif %} {% endblock %} {% endblock %} {% block content_footer %}{% show_paginator %}{% endblock %}