{# The login page. This page displays a form to get the user identifier. :param form: The login form. :type form: :class:`~canaille.core.endpoints.forms.LoginForm` #} {% extends theme('base.html') %} {% import 'macro/flask.html' as flask %} {% import 'macro/form.html' as fui %} {% import 'core/partial/login_field.html' as login_field %} {% block container %}
{% block header %} {% if logo_url %} {{ website_name }} {% else %} {% endif %}

{{ _("Sign in at %(website)s", website=website_name) }}
{% trans %}Manage your information and your authorizations{% endtrans %}

{% endblock %} {% block messages %} {{ flask.messages() }} {% endblock %} {% call fui.render_form(form) %} {% block fields %} {% block login_field scoped %}{{ login_field.render_field(form.login, class="autofocus") }}{% endblock %} {% endblock %} {% block buttons %}
{% if features.has_registration %} {{ _("Create an account") }} {% endif %} {% if features.has_smtp and features.has_password_recovery %} {{ _("Forgotten password") }} {% endif %}
{% endblock %} {% endcall %}
{% endblock %}