templates/login/index.html.twig line 1

Open in your IDE?
  1. {% extends 'security.html.twig' %}
  2. {% block stylesheets %}
  3.     <link rel="stylesheet" href="{{ asset('assets/css/reset-password.css') }}">
  4. {% endblock %}
  5. {% block body %}
  6.     <div class="container test">
  7.         <div class="row justify-content-center align-items-center authentication authentication-basic h-100">
  8.             <div class="col-xxl-4 col-xl-5 col-lg-5 col-md-6 col-sm-8 col-12">
  9.                 <div class="my-5 d-flex justify-content-center">
  10.                     <a href="{{ path('app_login') }}">
  11.                         <img src="{{ asset('assets/images/brand-logos/desktop-dark.png') }}" alt="logo"
  12.                              class="desktop-logo">
  13.                     </a>
  14.                 </div>
  15.                 <div class="card custom-card">
  16.                     <div class="card-body p-5">
  17.                         <p class="h4 fw-semibold mb-4 text-center">Se connecter</p>
  18.                         {% if error %}
  19.                             <div class="text-danger">
  20.                                 {{ error.message()|trans }}
  21.                             </div>
  22.                         {% endif %}
  23.                         <form action="{{ path('app_login') }}" method="post">
  24.                             <div class="row gy-3">
  25.                                 <div class="col-xl-12">
  26.                                     <label for="username" class="form-label text-default float-start">Nom
  27.                                         d'utilisateur</label>
  28.                                     <input type="text" class="form-control form-control-lg" id="username"
  29.                                            name="_username" value="{{ last_username }}" placeholder="nom@exemple.com" required>
  30.                                 </div>
  31.                                 <div class="col-xl-12 mb-2">
  32.                                     <label for="password" class="form-label text-default d-block float-start">Mot de
  33.                                         passe</label>
  34.                                     <div class="input-group mb-3">
  35.                                         <div class="input-group">
  36.                                             <input type="password" class="form-control form-control-lg" id="password"
  37.                                                    name="_password" placeholder="Mot de passe" required>
  38.                                             <button class="btn btn-light" type="button"
  39.                                                     onclick="createpassword('password',this)" id="button-addon2"><i
  40.                                                         class="ri-eye-off-line align-middle"></i></button>
  41.                                         </div>
  42.                                     </div>
  43.                                     <a href="{{ path('app_forgot_password_request') }}"
  44.                                        class=" text-danger mt-4 text-end fs-14">Mot de passe oublié ?</a>
  45.                                     <div class="mt-3">
  46.                                         <div class="checkbox mb-2 d-flex">
  47.                                             <label class="fs-14">
  48.                                                 <input type="checkbox" value="remember-me" name="_remember_me" checked>
  49.                                                 Se souvenir de moi
  50.                                             </label>
  51.                                         </div>
  52.                                     </div>
  53.                                 </div>
  54.                                 <input type="hidden" name="_target_path" value="{{ path('home') }}"/>
  55.                                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  56.                                 <div class="col-xl-12 d-grid mt-2">
  57.                                     <button class="btn btn-lg btn-shiny" type="submit">Connexion</button>
  58.                                 </div>
  59.                             </div>
  60.                         </form>
  61.                         <div class="mt-4 mb-4 position-relative d-flex justify-content-center" style=" margin: 50px 0 15px; text-align: center; border-top: 1px solid #e0e0e0;">
  62.                             <b class="position-absolute bg-white px-2" style="bottom: -.6em">ou</b>
  63.                         </div>
  64.                         <div class="btn btn-lg btn-primary col-12 center-align mt-2">
  65.                             <a class="py-2 text-white text-decoration-none" href="{{ path('connect_google') }}"
  66.                                style="text-transform:none">
  67.                                 <div class="d-flex align-content-center justify-content-center">
  68.                                     <i class="bi bi-google mx-2"></i>
  69.                                     Se connecter avec Google
  70.                                 </div>
  71.                             </a>
  72.                         </div>
  73.                         <p class="mt-3 mb-1 text-muted">&copy; 2017–2022</p>
  74.                     </div>
  75.                 </div>
  76.             </div>
  77.         </div>
  78.     </div>
  79. {% endblock %}
  80. {% block javascripts %}
  81. {% endblock %}