canaille-globuzma/canaille/templates/forgotten-password.html

50 lines
1.7 KiB
HTML
Raw Normal View History

{% extends theme('base.html') %}
2021-12-05 17:52:34 +00:00
{% import 'fomanticui.html' as sui %}
2020-10-22 15:37:01 +00:00
{% block content %}
<div class="loginform">
<h3 class="ui top attached header">
2020-10-30 09:56:16 +00:00
{% if logo_url %}
<img class="ui image" src="{{ logo_url }}">
{% endif %}
<div class="content">
2020-10-22 15:37:01 +00:00
{% trans %}Forgotten password{% endtrans %}
2020-10-30 09:56:16 +00:00
</div>
2020-10-22 15:37:01 +00:00
</h3>
2020-10-31 17:22:24 +00:00
2020-10-22 15:37:01 +00:00
<div class="ui attached message">
{% trans %}
After this form is sent, if the email address or the login you provided
exists, you will receive an email containing a link that will allow you
to reset your password.
{% endtrans %}
</div>
<div class="ui attached clearing segment">
<form method="POST"
id="{{ form.id or form.__class__.__name__|lower }}"
action="{{ request.url }}"
role="form"
class="ui form"
>
{{ form.hidden_tag() if form.hidden_tag }}
{{ sui.render_field(form.login, icon="user") }}
2021-07-01 07:55:40 +00:00
<div class="ui right aligned container">
<div class="ui stackable buttons">
<a type="button" class="ui right floated button" href="{{ url_for('account.login') }}">{{ _("Login page") }}</a>
<button type="submit" class="ui right floated {% if request.method != "POST" or form.errors %}primary {% endif %}button">
{% if request.method == "POST" %}
{{ _("Send again") }}
{% else %}
{{ _("Send") }}
{% endif %}
</button>
</div>
</div>
2020-10-22 15:37:01 +00:00
</form>
</div>
</div>
{% endblock %}