{% extends "admin/change_form.html" %}
{% load url from future %}


{% block breadcrumbs %}
    <div class="breadcrumbs">
         <a href="{% url 'admin:index' %}">Home</a> &rsaquo;
         Change password
    </div>
{% endblock %}


{% block title %}Change password{% endblock %}


{% block object-tools %}{% endblock %}


{% block content %}

    <div id="content-main">

        <h1>Change Password</h1>
    
        <p>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 action="" method="post">
            {% csrf_token %}
            <div>

                <fieldset class="module aligned ">

                    <div class="form-row">
                        {{form.old_password.errors}}
                        <label for="id_old_password" class="required">Old password:</label> {{form.old_password}}
                    </div>
                
                    <div class="form-row">    
                        {{form.new_password1.errors}}
                        <label for="id_new_password1" class="required">New password:</label> {{form.new_password1}}
                    </div>
                    
                    <div class="form-row">
                        {{form.new_password2.errors}}
                        <label for="id_new_password2" class="required">Confirm password:</label> {{form.new_password2}}
                    </div>
                
                </fieldset>
                
                <div class="submit-row" >
                    <input type="submit" value="Change password" class="default" name="_save"/>
                </div>

            </div>
            
        </form>

    </div>

{% endblock %}

