2020-08-17 15:49:49 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% import 'fomanticui.j2' as sui %}
|
2020-10-31 17:22:24 +00:00
|
|
|
{% import 'flask.j2' as flask %}
|
2020-08-17 15:49:49 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="ui clearing segment">
|
|
|
|
{% if logo_url %}
|
2020-11-05 11:18:17 +00:00
|
|
|
<a href="{{ url_for('canaille.account.index') }}">
|
|
|
|
<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-31 17:22:24 +00:00
|
|
|
{{ flask.messages() }}
|
2020-08-17 15:49:49 +00:00
|
|
|
|
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 }}
|
|
|
|
{{ sui.render_field(form.login, icon="user") }}
|
|
|
|
{{ sui.render_field(form.password, icon="lock") }}
|
|
|
|
|
|
|
|
<button type="submit" class="ui right floated primary button">{{ _("Sign in") }}</button>
|
2020-10-22 15:37:01 +00:00
|
|
|
<a type="button" class="ui right floated button" href="{{ url_for('canaille.account.forgotten') }}">{{ _("Forgotten password") }}</a>
|
2020-10-21 08:44:46 +00:00
|
|
|
</form>
|
2020-08-17 15:49:49 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|