templates/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base/html.html.twig' %}
  2. {% block title %}Login{% endblock %}
  3. {% block stylesheets %}
  4.     <link href="{{ asset('assets/css/style.min.css') }}" rel="stylesheet">
  5. {% endblock %}
  6. {% block bodyClass %}c-app flex-row align-items-center
  7. {% endblock %}
  8. {% block container %}
  9.     <div class="container">
  10.         <div class="row justify-content-center">
  11.             <div class="col-md-8">
  12.                 <div class="card-group">
  13.                     <div class="card p-4">
  14.                         <div class="card-body">
  15.                             <h1>Sportal.bg Dashboard</h1>
  16.                             <p class="text-muted">Sign In to your account</p>
  17.                             {% if error %}<div class ="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  18.                             {% endif %}
  19.                             <form action="{{ path('login') }}" method="post">
  20.                                 <div class="input-group mb-3">
  21.                                     <div class="input-group-prepend">
  22.                                         <span class="input-group-text">
  23.                                             <svg class="c-icon">
  24.                                                 <use xlink:href="{{ asset('assets/vendors/@coreui/icons/svg/free.svg#cil-user') }}"></use>
  25.                                             </svg>
  26.                                         </span>
  27.                                     </div>
  28.                                     <input class="form-control" type="text" placeholder="Username" name="_username" value="{{ username }}">
  29.                                 </div>
  30.                                 <div class="input-group mb-4">
  31.                                     <div class="input-group-prepend">
  32.                                         <span class="input-group-text">
  33.                                             <svg class="c-icon">
  34.                                                 <use xlink:href="{{ asset('assets/vendors/@coreui/icons/svg/free.svg#cil-lock-locked') }}"></use>
  35.                                             </svg>
  36.                                         </span>
  37.                                     </div>
  38.                                     <input class="form-control" type="password" placeholder="Password" name="_password">
  39.                                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  40.                                 </div>
  41.                                 <div class="row">
  42.                                     <div class="col-6">
  43.                                         <button class="btn btn-primary px-4" type="submit">Login</button>
  44.                                     </div>
  45.                                 </div>
  46.                             </form>
  47.                         </div>
  48.                     </div>
  49.                 </div>
  50.             </div>
  51.         </div>
  52.     </div>
  53. {% endblock %}