{% extends 'base.html' %} {% load buttons %} {% load helpers %} {% 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 %} {% endif %} {% if filter_form or dynamic_filter_form %} {% endif %} {% if permissions.add and 'add' in action_buttons %} {% add_button content_type.model_class|validated_viewname:"add" %} {% endif %} {% if permissions.add and 'import' in action_buttons %} {% import_button content_type.model_class|validated_viewname:"import" %} {% endif %} {% if 'export' in action_buttons %} {% export_button content_type %} {% endif %}

{% block title %}{{ title }}{% 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:'responsive_table.html' %}
{% block bulk_buttons %}{% endblock %} {% if bulk_edit_url and permissions.change %} {% endif %} {% if bulk_delete_url and permissions.delete %} {% endif %}
{% else %} {% include table_template|default:'responsive_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 %} {% endblock %} {% block javascript %} {% endblock %}