{% extends 'generic/_base.html' %} {% load helpers %} {% load render_table from django_tables2 %} {% load i18n %} {% comment %} Blocks: - title: Page title - tabs: Page tabs - content: Primary page content Context: - model: The model class of the objects being deleted - form: The bulk delete form class - table: The table class for rendering list of objects being deleted - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block title %} {% trans "Delete" %} {{ table.rows|length }} {{ model|meta:"verbose_name_plural"|bettertitle }}? {% endblock %} {% block tabs %} {% endblock tabs %} {% block content %} {# Confirmation form #}
{% csrf_token %} {% for field in form.hidden_fields %} {{ field }} {% endfor %}
{% trans "Cancel" %}
{# /Confirmation form #} {# Selected objects list #}
{% render_table table 'inc/table.html' %}
{# /Selected objects list #} {% endblock content %}