23 lines
828 B
HTML
23 lines
828 B
HTML
{% extends "account/base.html" %}
|
|
|
|
{% load i18n a17t_tags %}
|
|
{% block head_title %}{% trans "Change Password" %}{% endblock %}
|
|
{% block page_title %}{% trans "Change Password" %}{% endblock %}
|
|
|
|
{% block card %}
|
|
{% if token_fail %}
|
|
{% url 'account_reset_password' as passwd_reset_url %}
|
|
<p>{% 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 %}</p>
|
|
{% else %}
|
|
{% if form %}
|
|
<form method="POST" action="{{ action_url }}" class="max-w-lg">
|
|
{% csrf_token %}
|
|
{{ form|a17t }}
|
|
<button type="submit" name="action" class="button ~urge @high">{% trans 'Change Password' %}</button>
|
|
</form>
|
|
{% else %}
|
|
<p>{% trans 'Your password is now changed.' %}</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|