templates/registration/password_reset_confirm.html
changeset 236 39f83b4cf557
parent 235 e338eaeccad7
equal deleted inserted replaced
235:e338eaeccad7 236:39f83b4cf557
     1 {% extends "base.html" %}
       
     2 {% load i18n %}
       
     3 
       
     4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset confirmation' %}</div>{% endblock %}
       
     5 
       
     6 {% block title %}{% trans 'Password reset' %}{% endblock %}
       
     7 
       
     8 {% block content %}
       
     9 
       
    10 {% if validlink %}
       
    11 
       
    12 <h1>{% trans 'Enter new password' %}</h1>
       
    13 
       
    14 <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
       
    15 
       
    16 <form action="" method="post">
       
    17 {{ form.new_password1.errors }}
       
    18 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
       
    19 {{ form.new_password2.errors }}
       
    20 <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
       
    21 <p><input type="submit" value="{% trans 'Change my password' %}" /></p>
       
    22 </form>
       
    23 
       
    24 {% else %}
       
    25 
       
    26 <h1>{% trans 'Password reset unsuccessful' %}</h1>
       
    27 
       
    28 <p>{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>
       
    29 
       
    30 {% endif %}
       
    31 
       
    32 {% endblock %}