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

{% block fos_user_content %}
    <h3 style="margin-top: 0px;">SSO uws - login</h3>
    {% if error %}
        <h5 class="bc-error">{{ error.messageKey|trans(error.messageData, 'security') }}</h5>
    {% endif %}

    <form action="{{ path("fos_user_security_check") }}" method="post" role="form">
        {% if csrf_token %}
            <input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
        {% endif %}
        <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>
    <br />
    &copy; {{ lsTextAssets.companyName }}
    <div class="badge pull-right"> version {{ webserviceversion }}</div>
    <br/>
{% endblock fos_user_content %}
