|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta name="viewport" content=" minimum-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=no"> |
| 5 | + <meta charset="utf-8" /> |
| 6 | + |
| 7 | + <title>Admin area login</title> |
| 8 | + |
| 9 | + <link rel="stylesheet" href="{{ asset("assets/vendor/bootstrap.min.css") }}"> |
| 10 | + <link rel="stylesheet" href="{{ asset("assets/css/style.css") }}"> |
| 11 | + <style> |
| 12 | + body { background:#fafafa; } |
| 13 | + .login-form { margin-bottom:20px; } |
| 14 | + .login-form-box{ |
| 15 | + width:430px; |
| 16 | + margin-top:200px; |
| 17 | + padding:20px; |
| 18 | + background:rgba(255, 255, 255, .8); |
| 19 | + border:1px solid #cee3ab; |
| 20 | + border-top:5px solid #a3ca5f; |
| 21 | + } |
| 22 | + </style> |
| 23 | + </head> |
| 24 | + <body> |
| 25 | + <div class="login-form-box center-block"> |
| 26 | + <div class="alert alert-info clearfix"> |
| 27 | + <p>This login form is using the Security component.</p> |
| 28 | + |
| 29 | + <a class="docref" href="https://symfony.com/doc/current/security/form_login_setup"><i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the documentation.</a> |
| 30 | + </div> |
| 31 | + |
| 32 | + <h3>Admin area</h3> |
| 33 | + |
| 34 | + {% if error %} |
| 35 | + <div class="alert alert-danger"> |
| 36 | + <span class="glyphicon glyphicon-exclamation-sign"></span> |
| 37 | + {{ error.messageKey|trans(error.messageData, 'security') }} |
| 38 | + </div> |
| 39 | + {% endif %} |
| 40 | + |
| 41 | + <form action="{{ path('login') }}" method="post" class="form-horizontal clearfix login-form"> |
| 42 | + <div class="form-group"> |
| 43 | + <label for="username" class="col-sm-4">Username:</label> |
| 44 | + <div class="col-sm-8"> |
| 45 | + <input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}" /> |
| 46 | + <span class="help-block">The demo username is "anna_admin".</span> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + |
| 50 | + <div class="form-group"> |
| 51 | + <label for="password" class="col-sm-4">Password:</label> |
| 52 | + <div class="col-sm-8"> |
| 53 | + <input type="password" class="form-control" id="password" name="_password" /> |
| 54 | + <span class="help-block">The demo password is "kitten".</span> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + |
| 58 | + <div class="col-sm-offset-4 col-sm-8"> |
| 59 | + <button type="submit" class="btn btn-primary">Login</button> |
| 60 | + </div> |
| 61 | + </form> |
| 62 | + </div> |
| 63 | + </body> |
| 64 | +</html> |
0 commit comments