templates/commun/connexion.html.twig line 1

Open in your IDE?
  1. {% extends 'commun/back_office.html.twig' %}
  2. {% block body %}
  3.     {% if error %}
  4.         <div class="alert alert-danger mt-2">
  5.             {{ error.messageKey | trans }}
  6.         </div>
  7.     {% endif %}
  8.     {% include ['commun/_connexion_' ~ clientEFC ~ '.html.twig', 'commun/_connexion_.html.twig'] %}
  9.     <br>
  10.     <h3 id='warn' class="alert alert-danger" style='display:none' role="alert">
  11.         Pour des raisons de sécurité, l'accès à ce site nécessite une version de navigateur internet supérieure à IE 10.<br><br>
  12.         <a href="https://support.microsoft.com/fr-fr/help/17621/internet-explorer-downloads" target="blank">Cliquer ici pour mettre à jour le navigateur</a>
  13.     </h3>
  14. {% endblock %}
  15. {% block javascripts %}
  16.     {{ parent() }}
  17.     {# Javascripts propres aux datatables responsive (colonnes qui se stackent en lignes) #}
  18.     <script src="/lib/datatables.responsive/2.2.3/js/dataTables.responsive.min.js"></script>
  19.     <script src="/lib/datatables.responsive/2.2.3/js/responsive.bootstrap.min.js "></script>
  20.     <script src="/js/admin/gestionUtilisateurs.js"></script>
  21.     <script>
  22.         $(document).ready(function () {
  23.             var msie = window.navigator.userAgent.indexOf('MSIE ');
  24.             if (msie > 0) {
  25.                 var btn = document.getElementById('cnx');
  26.                 btn.style.display = 'none';
  27.                 var warn = document.getElementById('warn');
  28.                 warn.style.display = 'block';
  29.             }
  30.             $("i.password-toggle").on('click', function() {
  31.                 // this = event.target
  32.                 // Passer en mode "masquer le mot de passe"
  33.                 if (this.classList.contains('fa-eye')) {
  34.                     $('input:text').attr('type', 'password');
  35.                     this.classList.remove("fa-eye");
  36.                     this.classList.add("fa-eye-slash");
  37.                 }
  38.                 // Passer en mode "voir le mot de passe"
  39.                 else {
  40.                     $('input:password').attr('type', 'text');
  41.                     this.classList.add("fa-eye");
  42.                     this.classList.remove("fa-eye-slash");
  43.                 }
  44.             });
  45.         });
  46.     </script>
  47. {% endblock %}