{% extends "admin/base_site.html" %} {% load i18n l10n admin_urls static %}{% comment %} "Edit selected": tick Change beside each field to set, give it one value, and confirm. Every selected row is saved one by one in one transaction. Override this template, or set bulk_edit_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 }} bulk-edit{% endblock %} {% block content %}
{% blocktranslate count counter=count with name=opts.verbose_name plural=opts.verbose_name_plural %}The change applies to {{ counter }} selected {{ name }}.{% plural %}The change applies to {{ counter }} selected {{ plural }}.{% endblocktranslate %} {% for name in sample %}{{ name }}{% if not forloop.last %}, {% endif %}{% endfor %}{% if more %} {% blocktranslate %}and {{ more }} more{% endblocktranslate %}{% endif %}.
{% blocktranslate with limit=limit %}Each row is saved on its own, so history and signals work as for a single edit. If one row fails, none changes. At most {{ limit }} rows at a time.{% endblocktranslate %}
{% if problems %}{% translate "Nothing was changed." %}