templates/backend/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'backend/base.html.twig' %}
  2. {% block title %}Authentification{% endblock %}
  3. {% block content %}
  4.     <div class="row justify-content-md-center">
  5.         <div class="col-12 col-lg-8 mt-5 mt-lg-0">
  6.             <div class="card card-login card-rounded">
  7.                 <div class="card-body">
  8.                     <div class="mt-5 mb-5 text-center">
  9.                         <img class="login-logo" src="{{ asset('build/backend/images/ffcb_logo.jpg', 'backend') }}" alt="Logo FFCB">
  10.                     </div>
  11.                     <div>
  12.                         <form class="m-form-login" method="post">
  13.                             {% if error %}
  14.                                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  15.                             {% endif %}
  16.                             {% include 'backend/partials/_flashes.html.twig' %}
  17.                             <div class="row mb-5">
  18.                                 <div class="col-10 mx-auto">
  19.                                     <label class="form-label required" for="inputEmail">Email</label>
  20.                                     <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control mb-4" autocomplete="off" required autofocus>
  21.                                     <label class="form-label required" for="inputPassword">Mot de passe</label>
  22.                                     <input type="password" name="password" id="inputPassword" class="form-control mb-4" autocomplete="off" required>
  23.                                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  24.                                     <div class="checkbox mb-4">
  25.                                         <label class="form-label">
  26.                                             <input type="checkbox" name="_remember_me"> Se souvenir de moi
  27.                                         </label>
  28.                                     </div>
  29.                                     <div class="text-end">
  30.                                         <button class="btn btn-primary">Connexion</button>
  31.                                     </div>
  32.                                 </div>
  33.                             </div>
  34.                         </form>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </div>
  40. {% endblock %}