{% extends "admin/base.html" %} {% load i18n admin_urls static %} {% block title %}{% trans "Soft delete confirmation" %}{% endblock %} {% block content_title %}

{% trans "Soft delete confirmation" %}

{% endblock %} {% block content %}
{% if perms_lacking %}

{% blocktranslate %}Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktranslate %}

    {{ perms_lacking|unordered_list }}
{% elif protected %}

{% blocktranslate %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktranslate %}

    {{ protected|unordered_list }}
{% else %}

{% blocktrans with objects_name=objects_name %}Are you sure you want to soft delete the selected {{ objects_name }}? This action can be undone by restoring the objects.{% endblocktranslate %}

{% if deletable_objects %}

{% trans "Objects to be soft deleted:" %}

    {% for obj in deletable_objects %}
  • {{ obj }}
  • {% endfor %}
{% endif %}
{% csrf_token %} {% for obj in queryset %} {% endfor %} {% if preserved %} {% for obj in preserved %} {% endfor %} {% endif %}
{% trans "No, take me back" %}
{% endif %}
{% endblock %}