canaille-globuzma/canaille/templates/login.html

43 lines
1.5 KiB
HTML
Raw Normal View History

{% extends theme('base.html') %}
2021-12-05 17:52:34 +00:00
{% import 'fomanticui.html' as sui %}
2020-08-17 15:49:49 +00:00
{% block content %}
<div class="ui clearing segment">
{% if logo_url %}
2021-05-24 15:43:15 +00:00
<a href="{{ url_for('account.index') }}">
2020-11-05 11:18:17 +00:00
<img class="ui tiny centered image" src="{{ logo_url }}" alt="{{ website_name }}">
</a>
2020-08-17 15:49:49 +00:00
{% else %}
2020-08-26 09:54:35 +00:00
<i class="massive sign in icon image ui"></i>
2020-08-17 15:49:49 +00:00
{% endif %}
<h2 class="ui center aligned header">
<div class="content">
{{ _("Sign in at %(website)s", website=website_name) }}
</div>
<div class="sub header">{% trans %}Log-in and manage your authorizations.{% endtrans %}</div>
</h2>
2020-10-21 08:44:46 +00:00
<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 }}
2021-12-05 17:52:34 +00:00
{{ sui.render_field(form.login, icon="user", noindicator=true) }}
2021-01-23 21:30:43 +00:00
{% if "password" in form %}
2021-12-05 17:52:34 +00:00
{{ sui.render_field(form.password, icon="key", noindicator=true) }}
2021-01-23 21:30:43 +00:00
{% endif %}
2020-10-21 08:44:46 +00:00
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.forgotten') }}">{{ _("Forgotten password") }}</a>
<button type="submit" class="ui right floated primary button">{{ _("Continue") }}</button>
</div>
</div>
2020-10-21 08:44:46 +00:00
</form>
2020-08-17 15:49:49 +00:00
</div>
{% endblock %}