{% extends 'admin.html.twig' %}

{% block body %}
    <section class="clearfix">
        <div class="content-copy">
            <h1>Login Adminbereich</h1>

            {% if error %}
                <div id="message">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
            {% endif %}

            <form action="{{ path('login') }}" class="st-booking-form" method="post">

                {#{{ form_errors(form) }}#}

                <div class="form-box">
                    <label for="username">Benutzername:</label>
                    <input type="text" id="username" name="_username" value="{{ last_username }}" />

                    <label for="password">Passwort:</label>
                    <input type="password" id="password" name="_password" />

                    {#TODO hier evtl hidden input#}

                    <br><br>
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <button type="submit" id="submit"
                                class="btn btn-primary btn-lg border-radius"
                        >
                            Login
                        </button>
                    </div>
                </div><!-- end form-box -->
            </form>
        </div>
    </section><!-- end section -->
{% endblock body %}