]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | {% extends 'AcmeDemoBundle::layout.html.twig' %} |
2 | ||
3 | {% block content %} | |
4 | <h1 class="title">Login</h1> | |
5 | ||
6 | <p> | |
7 | Choose between two default users: <em>user/userpass</em> <small>(ROLE_USER)</small> or <em>admin/adminpass</em> <small>(ROLE_ADMIN)</small> | |
8 | </p> | |
9 | ||
10 | {% if error %} | |
11 | <div class="error">{{ error.message }}</div> | |
12 | {% endif %} | |
13 | ||
14 | <form action="{{ path("_demo_security_check") }}" method="post" id="login"> | |
15 | <div> | |
16 | <label for="username">Username</label> | |
17 | <input type="text" id="username" name="_username" value="{{ last_username }}" /> | |
18 | </div> | |
19 | ||
20 | <div> | |
21 | <label for="password">Password</label> | |
22 | <input type="password" id="password" name="_password" /> | |
23 | </div> | |
24 | ||
25 | <button type="submit" class="sf-button"> | |
26 | <span class="border-l"> | |
27 | <span class="border-r"> | |
28 | <span class="btn-bg">Login</span> | |
29 | </span> | |
30 | </span> | |
31 | </button> | |
32 | </form> | |
33 | {% endblock %} | |
34 | ||
35 | {% set code = code(_self) %} |