{% extends "account/base_entrance.html" %} {% load static i18n %} {% load allauth account %} {% load phoxtail_core_tags %} {% block head_title %} {% if token_fail %} {% trans "Bad Token" %} {% else %} {% trans "Change Password" %} {% endif %} {% endblock head_title %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %} {% if messages %} {% include "account/messages.html" %} {% endif %}
{% include "allauth/components/logo.html" %}

{% if token_fail %} {% trans "Bad Token" %} {% else %} {% trans "Change Password" %} {% endif %}

{% if token_fail %}

{% url 'account_reset_password' as passwd_reset_url %} {% blocktrans %} The password reset link was invalid, possibly because it has already been used. Please request a new password reset. {% endblocktrans %}

{% endif %}
{% if not token_fail %}
{% csrf_token %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %} {% for field in form %}
{{ field|add_class:"auth-input" }}
{% if field.errors %}
{% for error in field.errors %}

{{ error }}

{% endfor %}
{% endif %}
{% endfor %} {{ redirect_field }}
{% include "allauth/components/submit_button.html" with text_key="Change Password" button_type="submit" %}
{% endif %}
{% endblock body %}