templates/security/login.html.twig line 20

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block body %}
  4. <div class="wrapper"  style="background-image: url('https://wallpaperaccess.com/full/1512223.jpg');">
  5.     
  6.     <div class="login-form-bg h-100" >
  7.         <div class="container h-100" >
  8.         <BR>
  9.         
  10.             <div class="row justify-content-center h-100">
  11.     
  12.             
  13.                 <div class="col-xl-6">
  14.                     <div class="form-input-content">
  15.                         <div class="card login-form mb-0">
  16.                             <div class="card-body pt-5">
  17.                                                 {% if app.user %}
  18.                                                     <div class="mb-3">
  19.                                                         You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
  20.                                                     </div>
  21.                                                 {% else %}
  22.                                 <a class="text-center" > <h4>SafeShops</h4></a>
  23.         
  24.                                                     <form method="post" class="mt-5 mb-5 login-input">
  25.                                                 {% if error %}
  26.                                                     <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  27.                                                 {% endif %}
  28.                             
  29.                                     <div class="form-group">
  30.                                         <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus placeholder="Email">
  31.                                     </div>
  32.                                     <div class="form-group">
  33.                                         <input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required placeholder="Password">
  34.                                     </div>
  35.                                     <button class="btn login-form__btn submit w-100">Sign In</button>
  36.                                       <input type="hidden" name="_csrf_token"  value="{{ csrf_token('authenticate') }}"  >
  37.                                 </form>
  38.                                 
  39.                                 <p class="mt-5 login-form__footer">Dont have account? <a href="{{ path('app_register') }}" class="text-primary">Sign Up</a> now</p> {% endif %}
  40.                             </div>
  41.                         </div>
  42.                     </div>
  43.                 </div>
  44.             </div>
  45.         </div><BR>   <div><BR>    <BR></div>
  46.         <BR>
  47.         <div><BR>    <BR></div>
  48.         <BR>    <BR>    <BR>    <BR>
  49.     </div>
  50. {% endblock %}