Notfellchen/src/templates/registration/password_reset_confirmation.html

32 lines
1.2 KiB
HTML

{% extends "fellchensammlung/base_generic.html" %}
{% load i18n %}
{% block content %}
{% if validlink %}
<p>{% translate "Please enter (and confirm) your new password." %}</p>
<form action="" method="post">
{% csrf_token %}
<table>
<tr>
<td>{{ form.new_password1.errors }}
<label for="id_new_password1">{% translate "New password" %}:</label></td>
<td>{{ form.new_password1 }}</td>
</tr>
<tr>
<td>{{ form.new_password2.errors }}
<label for="id_new_password2">{% translate "Confirm password" %}:</label></td>
<td>{{ form.new_password2 }}</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value={% translate "Change my password" %} /></td>
</tr>
</table>
</form>
{% else %}
<h1>{% translate "Password reset failed" %}</h1>
<p>{% translate "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
{% endif %}
{% endblock %}