| 1 |
{% extends "account/base_entrance.html" %} |
| 2 |
{% load i18n %} |
| 3 |
{% load allauth %} |
| 4 |
{% block head_title %} |
| 5 |
{% trans "Change Password" %} |
| 6 |
{% endblock head_title %} |
| 7 |
{% block content %} |
| 8 |
{% element h1 %} |
| 9 |
{% if token_fail %} |
| 10 |
{% trans "Bad Token" %} |
| 11 |
{% else %} |
| 12 |
{% trans "Change Password" %} |
| 13 |
{% endif %} |
| 14 |
{% endelement %} |
| 15 |
{% if token_fail %} |
| 16 |
{% url 'account_reset_password' as passwd_reset_url %} |
| 17 |
{% element p %} |
| 18 |
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %} |
| 19 |
{% endelement %} |
| 20 |
{% else %} |
| 21 |
{% element form method="post" action=action_url %} |
| 22 |
{% slot body %} |
| 23 |
{% csrf_token %} |
| 24 |
{{ redirect_field }} |
| 25 |
{% element fields form=form %} |
| 26 |
{% endelement %} |
| 27 |
{% endslot %} |
| 28 |
{% slot actions %} |
| 29 |
{% element button type="submit" name="action" %} |
| 30 |
{% trans 'Change Password' %} |
| 31 |
{% endelement %} |
| 32 |
{% element button type="submit" form="logout-from-stage" tags="link,cancel" %} |
| 33 |
{% translate "Cancel" %} |
| 34 |
{% endelement %} |
| 35 |
{% endslot %} |
| 36 |
{% endelement %} |
| 37 |
{% endif %} |
| 38 |
{% if not cancel_url %} |
| 39 |
<form id="logout-from-stage" |
| 40 |
method="post" |
| 41 |
action="{% url 'account_logout' %}"> |
| 42 |
<input type="hidden" name="next" value="{% url 'account_login' %}"> |
| 43 |
{% csrf_token %} |
| 44 |
</form> |
| 45 |
{% endif %} |
| 46 |
{% endblock content %} |