{% extends "admin/base_site.html" %} {% load i18n static %} {% block breadcrumbs %} {% include "admin/filer/breadcrumbs.html" %} {% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block content %} {% if perms_lacking %}

{% blocktrans %}Your account doesn't have permissions to rename all of the selected files.{% endblocktrans %}

{% else %} {% if not to_rename %}

{% blocktrans %}There are no files available to rename.{% endblocktrans %}

{% else %}

{% blocktrans %}The following files will be renamed (they will stay in their folders and keep original filename, only displayed filename will be changed):{% endblocktrans %}

{% csrf_token %}
{% for f in files_queryset %} {% endfor %} {% for f in folders_queryset %} {% endfor %} {{ rename_form.as_p }}

Rename format is in Python % operator format using dictionary of possible values:

original_filename
original_basename
Original filename without possible file extension.
original_extension
current_filename
current_basename
Current filename without possible file extension.
current_extension
current_folder
Name of the folder the file is currently in.
counter
Renaming sequence counter in the current folder (1-based).
global_counter
Renaming squence counter for all files currently renaming (1-based).

Examples:

  • Prefix %(current_filename)s
  • Image %(counter)03d

{% endif %} {% endif %} {% endblock %}