{% extends 'commun/back_office.html.twig' %}
{% block body %}
{% if error %}
<div class="alert alert-danger mt-2">
{{ error.messageKey | trans }}
</div>
{% endif %}
{% include ['commun/_connexion_' ~ clientEFC ~ '.html.twig', 'commun/_connexion_.html.twig'] %}
<br>
<h3 id='warn' class="alert alert-danger" style='display:none' role="alert">
Pour des raisons de sécurité, l'accès à ce site nécessite une version de navigateur internet supérieure à IE 10.<br><br>
<a href="https://support.microsoft.com/fr-fr/help/17621/internet-explorer-downloads" target="blank">Cliquer ici pour mettre à jour le navigateur</a>
</h3>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{# Javascripts propres aux datatables responsive (colonnes qui se stackent en lignes) #}
<script src="/lib/datatables.responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="/lib/datatables.responsive/2.2.3/js/responsive.bootstrap.min.js "></script>
<script src="/js/admin/gestionUtilisateurs.js"></script>
<script>
$(document).ready(function () {
var msie = window.navigator.userAgent.indexOf('MSIE ');
if (msie > 0) {
var btn = document.getElementById('cnx');
btn.style.display = 'none';
var warn = document.getElementById('warn');
warn.style.display = 'block';
}
$("i.password-toggle").on('click', function() {
// this = event.target
// Passer en mode "masquer le mot de passe"
if (this.classList.contains('fa-eye')) {
$('input:text').attr('type', 'password');
this.classList.remove("fa-eye");
this.classList.add("fa-eye-slash");
}
// Passer en mode "voir le mot de passe"
else {
$('input:password').attr('type', 'text');
this.classList.add("fa-eye");
this.classList.remove("fa-eye-slash");
}
});
});
</script>
{% endblock %}