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 %}
|
|
|
|
{% import 'macro/fomanticui.html' as sui %}
|
2021-01-23 21:30:43 +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 %}
|
2021-01-23 21:30:43 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
<h2 class="ui center aligned header">
|
|
|
|
<div class="content">
|
|
|
|
{{ _("Sign in as %(username)s", username=username) }}
|
|
|
|
</div>
|
|
|
|
<div class="sub header">{% trans %}Please enter your password for this account.{% endtrans %}</div>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{ flask.messages() }}
|
2021-01-23 21:30:43 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
<form method="POST"
|
|
|
|
id="{{ form.id or form.__class__.__name__|lower }}"
|
|
|
|
action="{{ request.url }}"
|
|
|
|
role="form"
|
|
|
|
class="ui form"
|
|
|
|
>
|
2021-01-23 21:30:43 +00:00
|
|
|
|
2022-12-27 23:45:34 +00:00
|
|
|
{{ form.hidden_tag() if form.hidden_tag }}
|
2022-12-27 23:51:23 +00:00
|
|
|
{{ sui.render_field(form.password, icon="key", noindicator=true, class="autofocus") }}
|
2021-01-23 21:30:43 +00:00
|
|
|
|
2022-12-27 23:45:34 +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') }}">{{ _("I am not %(username)s", username=username) }}</a>
|
|
|
|
{% 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">{{ _("Sign in") }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
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>
|
2021-01-23 21:30:43 +00:00
|
|
|
{% endblock %}
|