templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ parent() }} - Connection{% endblock %}
  3. {% block stylesheets %}
  4.   {{ parent() }}
  5.   {{ encore_entry_link_tags('css/login') }}
  6. {% endblock %}
  7. {% block body %}
  8.   <div class="h-100 row align-items-center justify-content-center">
  9.     <div class="w-md-50 border rounded bg-white" style="box-shadow: 0px 0px 14px 4px rgba(0,0,0,0.75);">
  10.       <div class="row justify-content-center m-3">
  11.         <span class="h5 m-0">Centre de Micropraxie</span>
  12.       </div>
  13.       <hr>
  14.       <div class="d-flex h-100 align-items-center">
  15.         <div class="d-none d-md-block ">
  16.           <img src="./images/Logo cabinet 1-1-2.jpg" alt="Pôle Médecines Douces" width="300px">
  17.         </div>
  18.         <div class="mx-4">
  19.           <form id="login-form" method="post">
  20.             <div class="form-group">
  21.               <p class="small text-center">
  22.                 Saisissez vos identifiants pour vous connecter
  23.               </p>
  24.               <label for="inputEmail" class="text-muted small">Email</label>
  25.               {#
  26.                 <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
  27.               #}
  28.               <input type="email" value="" name="email" id="inputEmail" class="form-control" required autofocus>
  29.             </div>
  30.             <div class="form-group">
  31.               <label for="inputPassword" class="text-muted small">Mot de passe</label>
  32.               <input type="password" name="password" id="inputPassword" class="form-control" required>
  33.             </div>
  34.             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  35.             <div class="form-group text-center">
  36.               <button class="btn btn-success" type="submit">Se connecter</button>
  37.             </div>
  38.           </form>
  39.         </div>
  40.       </div>
  41.       <div class="row justify-content-between mx-3 mb-3">
  42.         <div class="">
  43.           <span id="login-message">
  44.             {% if error %}
  45.               <span class="text-danger small">Erreur de connexion</span>
  46.             {% endif %}
  47.           </span>
  48.         </div>
  49.         <button class="btn btn-sm btn-link text-decoration-none" id="btn-reset-pwd">Mot de passe oublié ?</button>
  50.       </div>
  51.     </div> {# /card #}
  52.   </div>
  53.   <div class="modal" id="modal-reset-pwd" tabindex="-1">
  54.     <div class="modal-dialog modal-dialog-centered">
  55.       <div class="modal-content">
  56.         <div class="modal-header">
  57.           <h5 class="modal-title">Réinitialiser mon mot de passe</h5>
  58.         </div>
  59.         <div class="modal-body">
  60.           <p class="small">Pour recevoir un nouveau mot de passe, saisissez votre adresse mail.</p>
  61.           <form id="reset-pwd-form" method="post">
  62.             <div class="form-group">
  63.               <div class="input-group mb-2 mr-sm-2">
  64.                 <div class="input-group-prepend">
  65.                   <div class="input-group-text"><i class="fas fa-envelope prefix grey-text"></i></div>
  66.                 </div>
  67.                 <input type="email" class="form-control" name="emailInput">
  68.                 <input type="hidden" name="_csrf_reset_token" value="{{ csrf_token('reset-password') }}">
  69.               </div>
  70.             </div>
  71.           </form>
  72.           <div class="row justify-content-center">
  73.             <button class="btn btn-sm btn-outline-secondary mr-3" data-dismiss="modal">Annuler</button>
  74.             <button class="btn btn-sm btn-outline-primary" id="btn-reset-pwd-submit">Valider</button>
  75.           </div>
  76.         </div>
  77.       </div>
  78.     </div>
  79.   </div>
  80. {% block javascripts %}
  81.   {{ encore_entry_script_tags('js/login') }}
  82. {% endblock %}
  83. {% endblock %}