templates/security/login.html.twig line 1

Open in your IDE?
  1. {% include 'headerlogin.html.twig' %}
  2. <body>
  3.     <div class="container-scroller">
  4.       <div class="container-fluid page-body-wrapper full-page-wrapper">
  5.         <div class="content-wrapper d-flex align-items-center auth" style="background: linear-gradient(to right, #90caf9, #047edf 99%);">
  6.           <div class="row flex-grow">
  7.             <div class="col-lg-4 mx-auto" style="margin-right: 10%;">
  8.               <div class="auth-form-light text-left p-5" style="height : 100%; ">
  9.                 <div class="brand-logo" style="margin-left : 24%;">
  10.                   <img style="margin- : auto;" src="{{ asset('images/icones/mlc.png')}}">
  11.                 </div>
  12.                 {% if  app.request.query.get("mail")  is defined and app.request.query.get("mail")  != null  %}
  13.                 <span style="font-weight : bold;" class="text-success">Inscription effectuée,</span> <br/>
  14.                 
  15.                  connectez vous avec l'identifiant :  <span style="font-weight : bold;" class="text-info">{{ app.request.query.get("mail") }} </span>
  16.                  et le mot de passe choisi lors de l'inscription
  17.                 {% endif %}
  18.                 {% if app.request.query.get("doublon")  is defined  %}
  19.                      <span style="font-weight : bold;" class="text-danger">{{app.request.query.get("doublon")}}</span> <br/>
  20.          
  21.                 {% endif %}
  22.                 
  23.                    <h6 style="font-weight : bold;">Connexion</h6>
  24.           
  25.                 <form class="pt-3" method="post">
  26.                   <div class="form-group">
  27.                     {% if error %}
  28.                     <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  29.                 {% endif %}
  30.             
  31.                 {% if app.user %}
  32.                     <div class="mb-3">
  33.                         You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  34.                     </div>
  35.                 {% endif %}
  36.                     <input type="email" class="form-control form-control-lg" name="email"  value="{{ last_username }}" placeholder="Email">
  37.                   </div>
  38.                   <div class="form-group">
  39.                     <input type="password" class="form-control form-control-lg" name="password"  placeholder="Mot de passe">
  40.                   </div>
  41.                   <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  42.                   <button class="btn btn-block btn-gradient-info btn-lg font-weight-medium auth-form-btn" type="submit">
  43.                     Connexion
  44.                 </button>
  45.                 <a href="{{path('inscription_province')}}" style="width : 100%;"class="btn btn-gradient-warning"> S'adhérer </a>
  46.                   <div class="my-2 d-flex justify-content-between align-items-center">
  47.                     <div class="form-check">
  48.                       <label class="form-check-label text-muted">
  49.                         <input type="checkbox" class="form-check-input">  </label>
  50.                     </div>
  51.                       <div style="">
  52.                            </div>
  53.                   </div>
  54.                 </form>
  55.                 <a href="{{path('membre_oublie_password')}}"> Mot de passe oublié  </a>
  56.               </div>
  57.             </div>
  58.           </div>
  59.         </div>
  60.         <!-- content-wrapper ends -->
  61.       </div>
  62.       <!-- page-body-wrapper ends -->
  63.     </div>
  64.     {#
  65.         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  66.         See https://symfony.com/doc/current/security/remember_me.html
  67.         <div class="checkbox mb-3">
  68.             <label>
  69.                 <input type="checkbox" name="_remember_me"> Remember me
  70.             </label>
  71.         </div>
  72.     #}