{% extends "layui/base_template.html" %} {% load i18n static %} {% block title %} {% trans 'email_btn_reset_password' %} {% endblock title %} {% block login-main-header %} {% if state == 'done' %}
{% trans 'resetPassword_successful' %}
{% else %}
{% trans 'email_reset_password_title' %}
{% endif %} {% endblock login-main-header %} {% block login-main-form %}
{% if state == 'done' %}

{% trans 'resetPassword_successful_tips' %}

{% elif state == 'confirm' or state == 'failed' %} {% if state == 'failed' %}

{% trans 'app_password_reset_failed' %}

{% endif %} {# Opening the emailed link changes nothing; the reset happens only on this POST. #}
{% csrf_token %}
{% else %}

{% trans 'app_password_reset_failed' %}

{% endif %}
{% endblock login-main-form %}