{% extends "admin/base_site.html" %} {% load i18n static django_admin_mazer %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %} {% translate 'Documentation' %} / {% endif %} {% translate 'Change password' %} / {% translate 'Log out' %}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate 'Please enter your old password, for security’s sake, and then enter your new password twice so we can verify you typed it in correctly.' %}

{% csrf_token %}
{% if form.errors %}

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

{% endif %}
{{ form.old_password|add_class:"form-control is-invalid" }}
{% if not line.fields|length_is:'1' and not field.is_readonly %} {{ form.old_password.errors }}{% endif %}
{% if form.old_password.help_text %}

{{ form.old_password.help_text }}

{% endif %}
{% if line.fields|length_is:'1' %}{{ form.old_password.errors }}{% endif %}
{{ form.new_password1|add_class:"form-control is-invalid" }}
{% if not line.fields|length_is:'1' and not field.is_readonly %} {{ form.new_password1.errors }}{% endif %}
{% if form.new_password1.help_text %}

{{ form.new_password1.help_text }}

{% endif %}
{% if line.fields|length_is:'1' %}{{ form.new_password1.errors }}{% endif %}
{{ form.new_password2|add_class:"form-control is-invalid" }}
{% if not line.fields|length_is:'1' and not field.is_readonly %} {{ form.new_password2.errors }}{% endif %}
{% if form.new_password2.help_text %}

{{ form.new_password2.help_text }}

{% endif %}
{% if line.fields|length_is:'1' %}{{ form.new_password2.errors }}{% endif %}
{% endblock %}