{% extends "admin/base_site.html" %} {% load i18n static %} {% load admin_urls %} {% comment %} Based on Django 5.2 admin/auth/user/change_password.html. Deliberate differences: - rows use suit's .form-group instead of Django's .form-row / .flex-container (forms.css layout, not loaded by suit); unusable_password_field.css relies on the field-password1/2 classes, its JS fallback (browsers without CSS :has(), i.e. none current) on .form-row, which suit styles {% endcomment %} {% block title %}{% if form.errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block bodyclass %}{{ block.super }} {{ opts.app_label }}-{{ opts.model_name }} change-form{% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} {% if form.errors %}

{% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

{% endif %}

{% blocktranslate with username=original %}Enter a new password for the user {{ username }}.{% endblocktranslate %}

{% if not form.user.has_usable_password %}

{% blocktranslate %}This action will enable password-based authentication for this user.{% endblocktranslate %}

{% endif %}
{{ form.usable_password.errors }} {{ form.usable_password.label_tag }} {{ form.usable_password }} {% if form.usable_password.help_text %}

{{ form.usable_password.help_text|safe }}

{% endif %}
{{ form.password1.errors }} {{ form.password1.label_tag }} {{ form.password1 }} {% if form.password1.help_text %}
{{ form.password1.help_text|safe }}
{% endif %}
{{ form.password2.errors }} {{ form.password2.label_tag }} {{ form.password2 }} {% if form.password2.help_text %}
{{ form.password2.help_text|safe }}
{% endif %}
{% if form.user.has_usable_password %} {% else %} {% endif %}
{% endblock %}