templates/Security/login.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {% block body %}
  3. <style>
  4. .off-form {
  5.     display: grid;
  6.     background: white;
  7.     justify-content: center;
  8. }
  9. .off-form-i {
  10.     margin: 0;
  11.     padding: 10px;
  12.     display: grid;
  13.     gap: 20px;
  14.     grid-template-columns: repeat(5, 1fr);
  15.     max-width: 1400px;
  16. }
  17. .off-form-i a {
  18.     background-color: #0454A4;
  19.     display: grid;
  20.     color: white;
  21.     font-size: 36px;
  22.     text-align: center;
  23.     padding: 4px;
  24. }
  25. .off-form-i a span {
  26.     color: white;
  27.     font-size: 36px;
  28.     text-align: center;
  29.     align-self: center;
  30. }
  31. #password{
  32.     position: relative;
  33. }
  34. .passwordIcon{
  35.     position: absolute;
  36.     right: 11px;
  37.     top: 13px;
  38. }
  39. .passwordIcon svg{
  40. }
  41. .texte_login {
  42. font-size: 22px;
  43. color: #f4f22b;
  44.     margin-top: 15px !important;
  45.      padding: 10px 65px !important;
  46. }
  47. </style>
  48. <div class="middle--off" style="background-position: 50% 270px;">
  49.     <div class="off-entete" style="background:rgba(2,83,163,0.9) url({{ asset('ui/images/banner.png') }}) no-repeat 50% 50%;">
  50.         <div class="off-entete-i">
  51.             <div class="off-title">
  52.                 Bonjour, merci de vous connecter
  53.                 <div class="off-avatar"></div><!-- .off-avatar -->
  54.             </div><!-- .off-title -->
  55.  
  56.         </div><!-- .off-entete-i -->
  57.             <div class="off-intro off-intro-highlighted texte_login">
  58.                 {{ texte_login }}
  59.             </div>
  60.     </div><!-- .off-entete -->
  61.     <div class="off-form">
  62.         <form action="{{ path('login_check', {}) }}" name="form-connexion" id="form-connexion" method="post">
  63.             <div class="off-form-i">
  64.                 <a href="{{ url_aide }}" download="Notice_Utilisateur.pdf">
  65.                     <span>Notice utilisateur</span>
  66.                 </a>
  67.                 <a href="{{ path('ctsweb_front_retrieve_login') }}">
  68.                     <span>Identifiant perdu</span>
  69.                 </a>
  70.                 <div>
  71.                     <div class="form-error">
  72.                         {{ error }}
  73.                     </div><!-- .error -->
  74.                     <dl>
  75.                         <dt><label for="account">Compte de connexion</label></dt>
  76.                         <dd><input style="height:50px;" type="text" id="account" onchange="this.value = toUpperWithoutAccents(this.value);" name="_username" placeholder="Compte de connexion"></dd>
  77.                     </dl>
  78.                     <dl>
  79.                         <dt><label for="password">Mot de passe</label></dt>
  80.                         <dd><input style="height:50px;" type="password" id="password" name="_password" placeholder="Mot de passe"><i onclick="togglePassword()" class="passwordIcon "><svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
  81.   <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
  82.   <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
  83. </svg></i></dd>
  84.                     </dl>
  85.                      <button type="submit" class="off-btn" name="connexionsubmit" id="connexionsubmit">Connexion</button>
  86.                 </div>
  87.                 <a href="{{ path('ctsweb_front_reinitialize_pwd') }}">
  88.                    <span>Mot de passe perdu</span>
  89.                 </a>
  90.                 <a href="mailto:{{ mail_contact }}">
  91.                    <span>Nous contacter</span>
  92.                 </a>
  93.             </div><!-- .off-form-i -->
  94.         </form>
  95.     </div><!-- .off-form -->
  96. </div><!-- .middle--off -->
  97. <script>sessionStorage.clear();localStorage.clear();
  98. function togglePassword() {
  99.   var pass = document.getElementById("password");
  100.   if (pass.type === "password") {
  101.     pass.type = "text";
  102.   } else {
  103.     pass.type = "password";
  104.   }
  105. };
  106. function toUpperWithoutAccents(s) {
  107.     return s.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toUpperCase();
  108. };
  109. </script>
  110. {% endblock %}