password_change_form.html 1.11 KB
{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% block userlinks %}{% trans 'Change password' %} /
    <a href="{% url 'auth_logout' %}">{% trans 'Log out' %}</a>{% endblock %}

{% block title %}{% trans 'Password change' %}{% endblock %}

{% block text-content %}
    <div id="content-main">

        <form action="" method="post">{% csrf_token %}
            <div>
                {% if form.errors %}
                    <p class="errornote">
                        {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
                    </p>
                {% endif %}

                <h1>{% trans 'Password change' %}</h1>

                <p>{% trans "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." %}</p>

                {{ form.as_p }}

                <script type="text/javascript">document.getElementById("id_old_password").focus();</script>
            </div>
        </form>
    </div>

{% endblock %}