{% extends "admin/base_site.html" %} {% load i18n l10n admin_urls static %}{% comment %} "Delete selected" confirmation: how many rows, a sample of them, and what else goes with them, instead of every row and every related row. A model with soft delete says the rows can be restored. Override this template, or set delete_selected_confirmation_template on the admin class. {% endcomment %} {% block extrahead %}{{ block.super }} {{ media }} {% endblock %} {% block extrastyle %}{{ block.super }} {% include "karni_admin/includes/page_styles.html" %} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} {% block content %}
{% if perms_lacking %}

{% blocktranslate %}You cannot delete the selected {{ objects_name }}{% endblocktranslate %}

{% translate "Deleting them would also delete related rows, and your account may not delete these:" %}

{% translate "No, take me back" %}
{% elif protected %}

{% blocktranslate %}You cannot delete the selected {{ objects_name }}{% endblocktranslate %}

{% translate "Other rows depend on them, and those must be deleted first:" %}

{% translate "No, take me back" %}
{% else %} {% with total=queryset.count %}

{% blocktranslate count counter=total with name=opts.verbose_name plural=opts.verbose_name_plural %}Delete {{ counter }} {{ name }}?{% plural %}Delete {{ counter }} {{ plural }}?{% endblocktranslate %}

{% if karni_soft %}{% translate "They move to Deleted and can be restored from the list." %}{% else %}{% translate "This cannot be undone." %}{% endif %}

{% if karni_soft %}

{% translate "This is a soft delete: rows that refer to them are kept as they are, and their links to them keep working." %}

{% endif %} {% if total > 10 %}

{% blocktranslate with more=total|add:"-10" %}and {{ more }} more.{% endblocktranslate %}

{% endif %} {% if not karni_soft %}{% for name, number in model_count %}{% if forloop.first %}

{% translate "Counting what goes with them:" %} {% endif %}{{ number }} {{ name }}{% if not forloop.last %}, {% endif %}{% if forloop.last %}.

{% endif %}{% endfor %}{% endif %} {% endwith %}
{% csrf_token %} {% if request.POST.select_across == "1" %}{% for obj in queryset|slice:":1" %}{% endfor %}{% else %}{% for obj in queryset %}{% endfor %}{% endif %}
{% translate "No, take me back" %}
{% endif %}
{% endblock %}