canaille-globuzma/canaille/templates/core/reset-password.html

39 lines
1.3 KiB
HTML

{# The password reset template.
Displays a password reset form.
:param form: The password reset form.
:type form: :class:`~canaille.core.endpoints.forms.PasswordResetForm`
:param user: The user associated with the URL.
:type user: :class:`~canaille.core.models.User`
:param hash: The secret link hash.
:type hash: :class:`str`
#}
{% extends theme('base.html') %}
{% import 'macro/form.html' as fui %}
{% block content %}
<div class="loginform">
{% block header %}
<h3 class="ui top attached header">
{% if logo_url %}
<img class="ui image" src="{{ logo_url }}">
{% endif %}
<div class="content">
{% trans %}Password reset{% endtrans %}
</div>
</h3>
{% endblock %}
{% if hash == None %}
<div class="ui attached clearing segment">
{{ fui.render_form(form, _("Password reset"), action=url_for("core.account.reset", user=user)) }}
</div>
{% else %}
<div class="ui attached clearing segment">
{{ fui.render_form(form, _("Password reset"), action=url_for("core.auth.reset", user=user, hash=hash)) }}
</div>
{% endif %}
</div>
{% endblock %}