<div class="login">
  {% if error %}
      <ul class="error_list"><li>{{ error|trans({}, 'validators') }}</li></ul>
  {% endif %}

  <form action="{{ path("fos_user_security_check") }}" method="post">
      <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
      <input type="text" id="username" name="_username" value="{{ last_username }}" />

      <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
      <input type="password" id="password" name="_password" />

      <br />
      <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
      <label for="remember_me">{{ 'login.remember_me.label'|trans({}, 'userui') }}</label>

      <input type="submit" class="button" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
  </form>
</div>

<a href="{{ path('fos_user_resetting_request') }}">{{ 'connexion.password_lost'|trans({}, 'userui') }}</a>