Coverage for templates / account / password_reset_from_key.html: 0%
23 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-03-10 14:10 +0000
« prev ^ index » next coverage.py v7.13.2, created at 2026-03-10 14:10 +0000
2{% extends '_base.html' %}
3{% load crispy_forms_tags %}
4{% load i18n %}
6{% block page_title %}{% trans "Change Password" %}{% endblock %}
7{% block page_h2 %}{% trans "Change Password" %}{% endblock %}
9{% block page_body %}
10 <h3>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h3>
12 {% if token_fail %}
13 <p>{% trans "The password reset link was invalid. Perhaps it has already been used? Please request a " %}<a href="{% url 'account_reset_password' %}">{% trans "new password reset" %}</a>.</p>
14 {% else %}
15 {% if form %}
16 <form method="POST" action=".">
17 {% csrf_token %}
18 {{ form|crispy }}
19 <button class="btn btn-primary" type="submit">{% trans "Change Password" %}</button>
20 </form>
21 {% else %}
22 <p>{% trans "Your password is now changed." %}</p>
23 {% endif %}
24 {% endif %}
25{% endblock %}
28{% block %}
29<form method="post" action="{% url 'account_change_password' %}">
30 {% csrf_token %}
31 {{ form|crispy }}
32 <button class="btn btn-success" type="submit">{% trans "Change Password" %}</button>
33</form>
34{% endblock %}