{% extends "admin/base_site.html" %} {% load i18n admin_static widget_tweaks %} {% load admin_urls %} {% block extrahead %}{{ block.super }} {% endblock %} {% block content-col %}12{% 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 %}

{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{% endif %}

{% blocktrans with username=original %}Enter a new password for the user {{ username }}.{% endblocktrans %}

{# TODO: get required class on label_tag #} {{ form.password1|add_class:"form-control"|attr:"required:required"}} {% for e in form.password1.errors %} {{ e }} {% endfor %}
{# TODO: get required class on label_tag #} {{ form.password2|add_class:"form-control"|attr:"required:required" }} {% for e in form.password2.errors %} {{ e }} {% endfor %}
{% endblock %}