{% extends "bootstrap_base_t.html" %}

{% block navbar %}
<div class="navbar navbar-default" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/index">{{ title }}</a>
        </div>
    </div>
</div>
{% endblock navbar %}

{% block mainpage %}
{% include 'flash.html' %}

<div class="panel panel-default col-sm-offset-2 col-sm-8">
    <div class="panel-body">
        <div class="container-fluid">
            <form class="form" method="POST">
                {{ form.hidden_tag() }}
                <div class="form-group">
                    {{ form.login.label(class_="control-label") }}
                    {{ form.login(class_="form-control") }}
                </div>
                <div class="form-group">
                    {{ form.password.label(class_="control-label") }}
                    {{form.password(class_="form-control") }}
                </div>
                <div class="form-group">
                    {{ form.submit_button(class_="btn btn-primary") }}
                </div>
            </form>
        </div>
    </div>
</div>
<div class="col-sm-2-offset"></div>
{% endblock mainpage %}
