{% extends 'base.html' %} {% load buttons %} {% load helpers %} {% load perms %} {% load plugins %} {% load static %} {% block header %}
{% if search_form %}
{{ search_form.q }}
{% endif %}
{% endblock header %} {% block content %}
{% block buttons %}{% endblock %} {% plugin_buttons content_type.model_class 'list' %} {% if table and request.user.is_authenticated and table_config_form %} {% block table_config_button %} {% table_config_button table table_name="ObjectTable" %} {% endblock table_config_button %} {% endif %} {% if filter_form or dynamic_filter_form %} {% endif %} {% if model.is_saved_view_model %}
{% endif %}
{% if permissions.add and 'add' in action_buttons %} {% add_button content_type.model_class|validated_viewname:"add" verbose_name=model|meta:"verbose_name"|bettertitle %} {% elif permissions.add and 'import' in action_buttons %} {% elif 'export' in action_buttons %} {% endif %}
{% comment %} TODO: 3.0 Remove legacy import_button and export button {% endcomment %} {% if permissions.add and 'import' in action_buttons %} {% block import_button %} {% endblock import_button %} {% endif %} {% if 'export' in action_buttons %} {% block export_button %} {% endblock export_button %} {% endif %}

{% block title %} {{ title }} {% if current_saved_view %} — {% if new_changes_not_applied %} {{ current_saved_view.name }} {% else %} {{ current_saved_view.name }} {% endif %} {% endif %} {% endblock %}

{% block header_extra %}{% endblock %} {% if filter_params %}
Filters: {% for field in filter_params %} {{ field.display }}: ×
    {% for value in field.values %}
  • ×{{ value.display }}
  • {% endfor %}
{% endfor %}

{% endif %}
{% block table %}
{% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %} {% if permissions.change or permissions.delete %}
{% csrf_token %} {% if table.paginator.num_pages > 1 %}
{% endif %} {% include table_template|default:'panel_table.html' %}
{% consolidate_bulk_action_buttons %} {% block bulk_buttons %}{% endblock %}
{% else %} {% include table_template|default:'panel_table.html' %} {% endif %} {% endwith %} {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
{% endblock %}
{% if table %}{% table_config_form table table_name="ObjectTable" %}{% endif %} {% filter_form_modal filter_form dynamic_filter_form model_plural_name=title %} {% if model.is_saved_view_model %} {% saved_view_modal request.GET.urlencode list_url model request %} {% endif %} {% dynamic_group_assignment_modal request=request content_type=content_type %} {% endblock %} {% block javascript %} {% endblock %}