{% import 'macros/forms.html' as forms %} {% extends "auth/layout.html" %} {% block head_title_content %}{{ _('Sign in') }}{% endblock %} {% block title %}{{ _('Welcome back!') }}{% endblock %} {% macro oauth_provider_button(oauth_provider, tenant) %} {% set display_name, logo_svg = get_oauth_provider_branding(oauth_provider) %} {% if logo_svg %} {% endif %} {{ _('Sign in with %(provider)s', provider=display_name) }} {% endmacro %} {% block auth_form %}
{{ forms.form_field(form.email) }} {{ forms.form_field(form.password) }} {{ forms.form_csrf_token(form) }}
{% if oauth_providers | length > 0 %}
{% if oauth_provider_login_hint %}
{{ oauth_provider_button(oauth_provider_login_hint, tenant )}}
{{ _('Used last') }}
{% endif %} {% for oauth_provider in oauth_providers %} {% if oauth_provider != oauth_provider_login_hint %} {{ oauth_provider_button(oauth_provider, tenant )}} {% endif %} {% endfor %}
{% endif %} {% if tenant.registration_allowed %}
{{ _("Don't have an account?") }} {{ _('Sign up') }}
{% endif %} {% endblock %}