1 {% extends "FOSUserBundle::layout.html.twig" %}
3 {% block title %}{{ parent() }}login{% endblock %}
5 {% block fos_user_content %}
6 {% trans_default_domain 'FOSUserBundle' %}
10 <div class="error col-xs-12">{{ error|trans }}</div>
16 <form action="{{ path('fos_user_security_check') }}" method="post" class="fos_user_security_login form-horizontal">
17 <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
18 <div class="form-group">
19 <label for="username" class="col-sm-2 control-label">Email</label>
20 <div class="col-sm-8">
21 <input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}">
24 <div class="form-group">
25 <label for="password" class="col-sm-2 control-label">{{ 'security.login.password'|trans }}</label>
26 <div class="col-sm-8">
27 <input type="password" class="form-control" id="password" name="_password" required="required placeholder="Password">
30 <div class="form-group">
31 <label for="remember_me" class="col-sm-2 control-label">{{ 'security.login.remember_me'|trans }}</label>
32 <div class="col-sm-8">
33 <input type="checkbox" id="remember_me" name="_remember_me" value="on">
36 <div class="form-group">
37 <div class="col-sm-8 col-sm-offset-2">
38 <button type="submit" class="btn btn-primary">{{ 'security.login.submit'|trans }}</button>
47 <div id="afterform" class="col-xs-11 col-xs-offset-1 col-sm-10 col-sm-offset-2">
48 <p>New user ? <a href="{{ path('fos_user_registration_register') }}">Sign up</a> first !</p>
49 <p><a href="{{ path('fos_user_resetting_request') }}">I have forgotten my password</a></p>
54 {% endblock fos_user_content %}