{% extends "account/base.html" %} {% load i18n %} {% load form_filters %} {% block head_title %}{% trans "Change Password" %}{% endblock %} {% block content %}

{% 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 %}

{% else %}
{% csrf_token %}
{{ form.password1 | add_class:"border sm:text-sm rounded-lg block w-full p-2.5 bg-gray-700 border-gray-600 :placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" }}
{{ form.password1.errors | safe }}
{{ form.password2 | add_class:"border sm:text-sm rounded-lg block w-full p-2.5 bg-gray-700 border-gray-600 :placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" }}
{{ form.password2.errors | safe }}
{% if form.non_field_errors %}
{{ form.non_field_errors | safe }}
{% endif %}
{% endif %} {% endblock %}