{% set page_title = "Login" %}

{% extends theme("layout.html") %}
{% from theme("macros.html") import horizontal_field %}
{% block content %}

<form class="form-horizontal" role="form" method="POST">
    <h2>Login</h2>
    <hr>
    {{ form.hidden_tag() }}
    {{ horizontal_field(form.login)}}
    {{ horizontal_field(form.password)}}

    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-3">
            <div class="checkbox">
                <label>
                    {{ form.remember_me }} Remember Me
                </label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-9">
            <button type="submit" class="btn btn-success">Login</button>
        </div>
    </div>
</form>

{% endblock %}
