{% extends 'generic/_base.html' %} {% load helpers %} {% load form_helpers %} {% load i18n %} {% comment %} Blocks: - title: Page title - tabs: Page tabs - content: Primary page content Context: - form: The bulk rename form class - obj_type_plural: The plural form of the object type - rename_fields: Tuple of all renameable field names on the view (may be empty) - selected_field_names: List of field names currently selected for renaming - selected_objects: A queryset matching the objects selected for bulk renaming - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block title %} {% trans "Renaming" %} {{ selected_objects|length }} {{ obj_type_plural|bettertitle }} {% endblock %} {% block tabs %}
{% endblock tabs %} {% block content %}| {% blocktrans %}Current {{ field_label }}{% endblocktrans %} | {% blocktrans %}New {{ field_label }}{% endblocktrans %} | {% endwith %} {% endfor %}
|---|---|
| {{ obj|getattr:field }} | {{ obj.new_names|getattr:field|default:'' }} | {% endfor %}