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

Open in your IDE?
  1. {% extends 'frontend/base.html.twig' %}
  2. {% block title %}Authentification{% endblock %}
  3. {% block body %}
  4.     <div class="row justify-content-md-center mt-4">
  5.         <div class="col-12 col-lg-8 mt-5 mt-lg-0">
  6.             <div class="card">
  7.                 <div class="card-header text-center mt-3">
  8.                     <h2>Bienvenue sur votre espace FFCB</h2>
  9.                 </div>
  10.                 <div class="card-body">
  11.                     <form method="post">
  12.                         {% if error %}
  13.                             <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  14.                         {% endif %}
  15.                         {% include 'frontend/partials/_flashes.html.twig' %}
  16.                         <div class="row mb-5">
  17.                             <div class="col-10 mx-auto">
  18.                                 <label class="form-label required" for="inputEmail">Email</label>
  19.                                 <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control mb-4" autocomplete="off" required autofocus>
  20.                                 {#
  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.                                 #}
  24.                                 <div class="mb-3">
  25.                                     <label for="inputPassword" class="form-label required">Mot de passe</label>
  26.                                     <div class="input-group">
  27.                                         <input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
  28.                                         <span class="input-group-text">
  29.                                             <a hre="#" data-controller="password-see"><i class="fas fa-eye"></i></a>
  30.                                         </span>
  31.                                     </div>
  32.                                 </div>
  33.                                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  34.                                 <div class="row mb-4">
  35.                                     <div class="col-6">
  36.                                         <div class="checkbox">
  37.                                             <label class="form-label">
  38.                                                 <input type="checkbox" name="_remember_me"> Se souvenir de moi
  39.                                             </label>
  40.                                         </div>
  41.                                     </div>
  42.                                     <div class="col-6 text-end">
  43.                                         <a href="{{ path('app_forgot_password_request') }}">
  44.                                             Mot de passe oublié ?
  45.                                         </a>
  46.                                     </div>
  47.                                 </div>
  48.                                 <div class="text-end">
  49.                                     <button class="btn btn-primary">Connexion</button>
  50.                                 </div>
  51.                             </div>
  52.                         </div>
  53. {#                        <hr>#}
  54. {#                        <div class="text-center mt-4">#}
  55. {#                            <h3 class="mb-3">Créer mon compte</h3>#}
  56. {#                            <div class="mb-3">Vous pouvez faire votre demande de compte en cliquant sur le lien suivant</div>#}
  57. {#                            <div class="text-center">#}
  58. {#                                <a href="{{ path('customer_signup') }}" class="btn btn-lg btn-primary">#}
  59. {#                                    Demander un compte#}
  60. {#                                </a>#}
  61. {#                            </div>#}
  62. {#                        </div>#}
  63.                     </form>
  64.                 </div>
  65.             </div>
  66.         </div>
  67.     </div>
  68. {% endblock %}