Commit | Line | Data |
---|---|---|
929ca066 BA |
1 | {% extends "FOSUserBundle::layout.html.twig" %} |
2 | ||
3 | {% block title %}{{ parent() }}login{% endblock %} | |
4 | ||
5 | {% block fos_user_content %} | |
6 | {% trans_default_domain 'FOSUserBundle' %} | |
7 | ||
8 | {% if error %} | |
9 | <div class="row"> | |
10 | <div class="error col-xs-12">{{ error|trans }}</div> | |
11 | </div> | |
12 | {% endif %} | |
13 | ||
14 | <div class="row"> | |
15 | ||
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 }}"> | |
22 | </div> | |
23 | </div> | |
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"> | |
28 | </div> | |
29 | </div> | |
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"> | |
34 | </div> | |
35 | </div> | |
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> | |
39 | </div> | |
40 | </div> | |
41 | </form> | |
42 | ||
43 | </div> | |
44 | ||
45 | <div class="row"> | |
46 | ||
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> | |
50 | </div> | |
51 | ||
52 | </div> | |
53 | ||
54 | {% endblock fos_user_content %} |