{% extends "shelf-security/base.html" %}
{% from "shelf-security/_macros.html" import render_field_with_errors, render_field, render_errors, render_menu with context %}

{% block title %}WELCOME BACK{% endblock %}

{% block url %}{{ url_for_security('login') }}{% endblock %}

{% block form %}
	{{ login_user_form.hidden_tag() }}
	{{ render_field_with_errors(login_user_form.email, "user", class="form-control", placeholder="Email") }}
	{{ render_field_with_errors(login_user_form.password, "lock", class="form-control", placeholder="Password") }}
	{{ render_field(login_user_form.remember, label=True) }}
	{{ render_field(login_user_form.submit, class="btn btn-default") }}

	{{ render_menu("login") }}

	{{ render_errors(login_user_form) }}

{% endblock %}
