{% if ui_lang is not defined %} {% set ui_lang = { 'login_title': 'Annotation Platform', 'login_subtitle_password': 'Sign in to continue', 'login_subtitle_username': 'Enter your username to continue', 'sign_in_tab': 'Sign In', 'register_tab': 'Register', 'username_label': 'Username', 'password_label': 'Password', 'sign_in_button': 'Sign In', 'continue_button': 'Continue', 'register_button': 'Register', 'forgot_password': 'Forgot Password?', 'username_placeholder': 'Enter your username', 'choose_username_placeholder': 'Choose a username', 'create_password_placeholder': 'Create a password', 'sign_in_with': 'Sign in with', 'or_divider': 'or', 'powered_by': 'Powered by', 'html_lang': 'en', 'html_dir': 'ltr' } %} {% endif %} {{ title|default(ui_lang.login_title|default("Annotation Platform")) }} {% if oauth_providers %} {% endif %}

{{ title|default(ui_lang.login_title|default("Annotation Platform")) }}

{% if oauth_providers and not allow_local_login %} {{ ui_lang.login_subtitle_password|default('Sign in to continue') }} {% elif require_password %} {{ ui_lang.login_subtitle_password|default('Sign in to continue') }} {% else %} {{ ui_lang.login_subtitle_username|default('Enter your username to continue') }} {% endif %}

{% if login_error %}
{{ login_error }}
{% endif %} {% if oauth_providers %} {% if allow_local_login or require_password %}
{{ ui_lang.or_divider|default('or') }}
{% endif %} {% endif %} {% if not oauth_providers or allow_local_login or require_password %} {% if require_password %}
{% endif %}
{% if require_password %}
{% endif %} {% if require_password %}
{{ ui_lang.forgot_password|default('Forgot Password?') }}
{% endif %}
{% if require_password %}
{% endif %} {% endif %}