{% extends "FOSUserBundle::layout.html.twig" %}

{% block fos_user_content %}

    <div style="width:600px;margin:auto;margin-top:30px;">
        <form class="well" action="{{ path("fos_user_security_check") }}" method="post" role="form">
            <h3 style="margin-top: 0px;">SSO REST - login</h3>
            {% if error %}
                <h5 class="bc-error">{{ error.message|trans({}, 'FOSUserBundle') }}</h5>
            {% endif %}
            <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

            <div class="form-group">
                <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
                <input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}" required="required" />
            </div>

            <div class="form-group">
                <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
                <input type="password" class="form-control" id="password" name="_password" required="required" />
            </div>

            <div class="checkbox">
                <label>
                    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
                    {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}
                </label>
            </div>

            <input type="submit" class="btn btn-info" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
        </form>
    </div>
{% endblock fos_user_content %}
