{% extends "djadmin2theme_bootstrap3/base.html" %}
{% load i18n admin2_tags %}

{% block page_title %}{% trans "Password change" %}: {{ form.user }}{% endblock page_title %}

{% block breadcrumbs %}
    <li>
        <a href="{% url "admin2:dashboard" %}">{% trans "Home" %}</a>
    </li>
    <li class="active">{% trans "Password change" %} {{ form.user }}</li>
{% endblock breadcrumbs %}

{% block content %}
    <div class="row">
        <div class="col-md-12">
            <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>

            {% if form.errors %}
                <p class="error-note">
                    {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}
                        Please correct the errors below.{% endblocktrans %}
                </p>
            {% endif %}

            <form method="post">
                {% csrf_token %}
                {{ form }}
                <button class="btn btn-sm btn-success" type="submit" name="_save">{% trans "Change my password" %}</button>
            </form>
        </div>
    </div>

{% endblock content %}
