33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans 'Password reset' %}{% endblock %}
|
|
|
|
{% block maincontent %}
|
|
{% if validlink %}
|
|
<h2 class="grid_12">{% trans 'Enter new password' %}</h2>
|
|
<p class="grid_6">{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
|
|
<form action="" method="post" class="grid_5">
|
|
{% csrf_token %}
|
|
<fieldset style="margin: -12px 0 0 0">
|
|
<legend>{% trans 'Change my password' %}</legend>
|
|
<ul>
|
|
{%for element in form %}
|
|
<p class="required">{{element.label_tag}} {{element}}
|
|
{%if element.help_text %} <img src="{{STATIC_URL}}icons/information.png" title="{{element.help_text}}"> {% endif %}
|
|
{%if element.errors %}{{element.errors }} {% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<p class="buttonbar"><button type="submit"><img src="{{STATIC_URL}}icons/key.png" /> {% trans 'Change my password' %}</button></p>
|
|
</fieldset>
|
|
</form>
|
|
|
|
|
|
{% else %}
|
|
<h2>{% trans 'Password reset unsuccessful' %}</h2>
|
|
<p class="error">{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|