khaganat-web/neluser/templates/neluser/password_reset_confirm.html
2020-02-28 19:06:37 +01:00

18 lines
593 B
HTML

{% extends "khaganat/centered_dialog.html" %}
{% load i18n %}
{% block title %}{% if validlink %}{% trans "set_new_password"|capfirst %}{% else %}{% trans "password_reset"|capfirst %}{% endif %}{% endblock %}
{% block dialog_class %}{% if validlink %}is-link{% else %}is-danger{% endif %}{% endblock %}
{% block dialog %}
{% if validlink %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="button is-link">{% trans "change_my_password"|capfirst %}</button>
</form>
{% else %}
{% trans "reset_password_invalid_link" %}
{% endif %}
{% endblock %}