<form action="{{ path("login") }}" method="post" role="form">
    {{ form_widget(form) }}
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>

    {#<div class="form-group has-feedback">#}
        {#<label for="username"#}
               {#class="col-sm-4 control-label">{{ '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 has-feedback">#}
        {#<label for="password"#}
               {#class="col-sm-4 control-label">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>#}

        {#<input type="password" class="form-control"#}
               {#id="password"#}
               {#name="_password" required="required"/>#}
    {#</div>#}

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

    <div class="form-group has-feedback">
        {#<a href="{{ path('fos_user_resetting_request') }}">#}
        <a href="{{ path('legacy_main', { 'name' : 'auth/lostPassword.php'}) }}">
            {{ 'forgotten_password'|trans({}, 'SonataUserBundle') }}
        </a>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-4 col-sm-8">
            <input type="submit" id="_submit" name="_submit"
                   class="btn btn-primary"
                   value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}"/>
        </div>
    </div>
</form>
