{% extends 'AppBundle:Admin:layout.html.twig' %}

{% block body %}
    <div class="container-fluid">
        <div class="row fixed">
            <div class="col-md-5"></div>
            <div class="col-md-2">
                <div id="login">

                    <form action="{{ path('app_admin.security.login_check') }}" method="POST">
                        {#<input type="hidden" name="_target_path" value="{{ url('app_admin') }}" />#}

                        <div class="form-group">
                            <input type="text" id="username" name="_username" class="form-control" placeholder="Login">
                        </div>
                        <div class="form-group">
                            <input type="password" id="password" name="_password" class="form-control" placeholder="Hasło">
                        </div>
                        <div class="form-group text-center">
                            <button type="submit" class="btn btn-primary">Zaloguj</button>
                        </div>
                    </form>

                    {% if error %}
                        <div class="alert alert-danger alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                            <strong>Błędne</strong> dane logowania.
                        </div>
                    {% endif %}

                    <form role="form">

                    </form>
                </div>
            </div>
            <div class="col-md-5"></div>
        </div>

        <div class="row text-center">
            <a href="{{ path('app_admin.recovery.index') }}">Przywracanie hasła</a>
        </div>
    </div>
{% endblock %}