{%- set page_title = get_part('login page title', word('Sign in')) %} {%- set tab_title = get_part('login page tab title', word('Sign in')) %} {%- set extra_css = get_part('login page extra css') %} {%- set extra_js = get_part('login page extra javascript') %} {%- extends 'flask_user/public_base.html' %} {%- block content %} {%- from "base_templates/form_macros.html" import render_field, render_checkbox_field, render_submit_field, myrender_hidden_field %}

{{ get_part('login page heading', word('Sign in')) }}

{{ get_part('login page pre') }} {%- if config['USE_PASSWORD_LOGIN'] or ('admin' in request.args and request.args['admin'] == '1') %}
{{ form.hidden_tag() }} {%- set field = form.username if user_manager.enable_username else form.email %}
{%- if user_manager.enable_register and not user_manager.require_invitation %} {{ word("New here? Register.") }} {%- endif %}
{{ field(class_='form-control', type='email', tabindex=110) }} {%- if field.errors %} {%- for e in field.errors %}

{{ e }}

{%- endfor %} {%- endif %}
{%- set field = form.password %}
{%- if user_manager.enable_forgot_password %} {{ word("Forgot your Password?") }} {%- endif %}
{{ field(class_='form-control', tabindex=120) }} {%- if field.errors %} {%- for e in field.errors %}

{{ e }}

{%- endfor %} {%- endif %}
{%- if user_manager.enable_remember_me %} {{ render_checkbox_field(login_form.remember_me, tabindex=130) }} {%- endif %} {{ get_part('login page submit') }}
{{ render_submit_field(form.submit, tabindex=180) }}
{%- if config['USE_GOOGLE_LOGIN'] or config['USE_FACEBOOK_LOGIN'] or config['USE_TWITTER_LOGIN'] or config['USE_AZURE_LOGIN'] or config['USE_PHONE_LOGIN'] %}

or

{%- endif %} {%- endif %} {%- if config['USE_PHONE_LOGIN'] %}
{{ word('Sign in with your mobile phone') }}
{%- endif %} {%- if config['USE_GOOGLE_LOGIN'] %}
{{ word('Sign in with Google') }}
{%- endif %} {%- if config['USE_FACEBOOK_LOGIN'] %}
{{ word('Sign in with Facebook') }}
{%- endif %} {%- if config['USE_TWITTER_LOGIN'] %}
{{ word('Sign in with Twitter') }}
{%- endif %} {%- if config['USE_AZURE_LOGIN'] %}
{{ word('Sign in with Azure') }}
{%- endif %}{{ get_part('login page post') }} {%- if False and config['USE_GOOGLE_LOGIN'] %} {%- endif %} {%- endblock %}