templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}- Connexion{% endblock %}
  3. {%block menu%}
  4. {%endblock%}
  5. {% block body %}
  6. <main>
  7.     <!-- Section -->
  8.     <section class="min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0" data-background="{{ asset('assets/img/cards-3662554_1920.jpg') }}">
  9.         <div class="container">
  10.             <div class="row justify-content-center">
  11.                 <div class="col-12">
  12.                     <div class="text-center text-md-center mb-5 mt-md-0 text-white">
  13.                         <h1 class="mb-0 h3">Connexion</h1>
  14.                     </div>
  15.                 </div>
  16.                 <div class="col-12 d-flex align-items-center justify-content-center">
  17.                     <div class="signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">
  18.                         <span class="clearfix"></span>
  19.                         <form method="post" name="login" onsubmit="return onloginsubmit(event);">
  20.                             {% if error %}
  21.                             <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  22.                             {% endif %}
  23.                             {% if app.user %}
  24.                             <div class="mb-3">
  25.                                 Vous êtes déjà connecté:<br /> {{ app.user.username }} <br />
  26.                                 <a href="{{ path('app_logout') }}">Déconnecter</a>
  27.                             </div>
  28.                             {% endif %}
  29.                             <div class="form-group">
  30.                                 <div class="input-group">
  31.                                     <div class="input-group-prepend">
  32.                                         <span class="input-group-text"><i class="far fa-user"></i></span>
  33.                                     </div>
  34.                                     <input type="email" class="form-control" id="input-email" name="email" placeholder="Email" value="{{ last_username }}" required>
  35.                                 </div>
  36.                             </div>
  37.                             <div class="form-group">
  38.                                 <div class="input-group">
  39.                                     <div class="input-group-prepend">
  40.                                         <span class="input-group-text"><i class="fas fa-unlock-alt"></i></span>
  41.                                     </div>
  42.                                     <input class="form-control" placeholder="Mot de passe" name="password" type="password" required>
  43.                                 </div>
  44.                             </div>
  45.                             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  46.                             <div class="form-check mb-3">
  47.                                 <input class="form-check-input" id="remember" type="checkbox">
  48.                                 <label class="form-check-label" for="remember">
  49.                                     Se souvenir de moi
  50.                                 </label>
  51.                             </div>
  52.                             <div class="mt-4">
  53.                                 <input type="hidden" id="login_recaptchatoken" name="login_recaptchatoken" required='false' />
  54.                                 <button type="submit" class="btn btn-block btn-primary animate-up-2">Connexion</button>
  55.                             </div>
  56.                         </form>
  57.                         <div class="d-flex justify-content-between align-items-center mt-4">
  58.                             <span>
  59.                                 <small>Vous n'avez pas de compte?</small>
  60.                                 <a href="{{ path('home_route', {'routename':'signup'}, relative = false) }}" class="small font-weight-bold">Créer</a>
  61.                             </span>
  62.                             <div><a href="{{ path('app_resetpassword', {}, relative = false) }}" class="small text-right">Mot de passe oublié?</a></div>
  63.                         </div>
  64.                     </div>
  65.                 </div>
  66.             </div>
  67.         </div>
  68.     </section>
  69. </main>
  70. <!-- Recaptcha -->
  71. <script src="https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K"></script>
  72. <script src="{{ asset('/assets/js/recaptcha.js') }}"></script>
  73. {% endblock %}