2021-10-28 13:24:34 +00:00
|
|
|
{% extends theme('base.html') %}
|
2023-03-09 16:45:20 +00:00
|
|
|
{% import 'macro/flask.html' as flask %}
|
2023-03-28 18:37:16 +00:00
|
|
|
{% import 'macro/form.html' as fui %}
|
2023-06-30 14:20:36 +00:00
|
|
|
{% import 'partial/login_field.html' as login_field %}
|
2020-08-17 15:49:49 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
{% block container %}
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="content">
|
|
|
|
<div class="ui clearing segment">
|
|
|
|
{% if logo_url %}
|
|
|
|
<a href="{{ url_for('account.index') }}">
|
|
|
|
<img class="ui tiny centered image" src="{{ logo_url }}" alt="{{ website_name }}">
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<i class="massive sign in icon image ui"></i>
|
|
|
|
{% endif %}
|
2020-08-17 15:49:49 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
<h2 class="ui center aligned header">
|
|
|
|
<div class="content">
|
|
|
|
{{ _("Sign in at %(website)s", website=website_name) }}
|
|
|
|
</div>
|
2022-12-28 00:06:42 +00:00
|
|
|
<div class="sub header">{% trans %}Manage your information and your authorizations{% endtrans %}</div>
|
2022-12-27 23:45:34 +00:00
|
|
|
</h2>
|
2020-08-17 15:49:49 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
{{ flask.messages() }}
|
2020-10-21 08:44:46 +00:00
|
|
|
|
2023-03-28 21:12:54 +00:00
|
|
|
{% call fui.render_form(form) %}
|
2023-06-30 14:20:36 +00:00
|
|
|
{% block login_field scoped %}{{ login_field.render_field(form.login, class="autofocus") }}{% endblock %}
|
2020-10-21 08:44:46 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
{% if "password" in form %}
|
2023-06-30 14:20:36 +00:00
|
|
|
{% block password_field scoped %}{{ login_field.render_field(form.password) }}{% endblock %}
|
2021-12-20 22:57:27 +00:00
|
|
|
{% endif %}
|
2022-12-27 23:45:34 +00:00
|
|
|
|
|
|
|
<div class="ui right aligned container">
|
|
|
|
<div class="ui stackable buttons">
|
|
|
|
{% if has_smtp and has_password_recovery %}
|
|
|
|
<a type="button" class="ui right floated button" href="{{ url_for('account.forgotten') }}">{{ _("Forgotten password") }}</a>
|
|
|
|
{% endif %}
|
|
|
|
<button type="submit" class="ui right floated primary button">{{ _("Continue") }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-28 21:12:54 +00:00
|
|
|
{% endcall %}
|
2021-07-01 07:55:40 +00:00
|
|
|
</div>
|
2022-12-27 23:45:34 +00:00
|
|
|
</div>
|
2021-12-20 22:57:27 +00:00
|
|
|
</div>
|
2020-08-17 15:49:49 +00:00
|
|
|
{% endblock %}
|