canaille-globuzma/canaille/templates/password.html
Éloi Rivard 4217fc027c temporarily remove form customization on the login page
At the moment I don't know how to build something that would be generic
enough to bring customization on form fields for regular HTML rendering
and for HTMX inline validation. This is not a blocker feature, so let us
move on on more important things.
2023-06-28 16:23:40 +02:00

42 lines
1.9 KiB
HTML

{% extends theme('base.html') %}
{% import 'macro/flask.html' as flask %}
{% import 'macro/form.html' as fui %}
{% 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 %}
<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() }}
{% call fui.render_form(form) %}
{{ fui.render_field(form.password, class="autofocus") }}
<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>
{% endcall %}
</div>
</div>
</div>
{% endblock %}