{% extends "layout.html.twig" %}
{% block body %}
<style>
.off-form {
display: grid;
background: white;
justify-content: center;
}
.off-form-i {
margin: 0;
padding: 10px;
display: grid;
gap: 20px;
grid-template-columns: repeat(5, 1fr);
max-width: 1400px;
}
.off-form-i a {
background-color: #0454A4;
display: grid;
color: white;
font-size: 36px;
text-align: center;
padding: 4px;
}
.off-form-i a span {
color: white;
font-size: 36px;
text-align: center;
align-self: center;
}
#password{
position: relative;
}
.passwordIcon{
position: absolute;
right: 11px;
top: 13px;
}
.passwordIcon svg{
}
.texte_login {
font-size: 22px;
color: #f4f22b;
margin-top: 15px !important;
padding: 10px 65px !important;
}
</style>
<div class="middle--off" style="background-position: 50% 270px;">
<div class="off-entete" style="background:rgba(2,83,163,0.9) url({{ asset('ui/images/banner.png') }}) no-repeat 50% 50%;">
<div class="off-entete-i">
<div class="off-title">
Bonjour, merci de vous connecter
<div class="off-avatar"></div><!-- .off-avatar -->
</div><!-- .off-title -->
</div><!-- .off-entete-i -->
<div class="off-intro off-intro-highlighted texte_login">
{{ texte_login }}
</div>
</div><!-- .off-entete -->
<div class="off-form">
<form action="{{ path('login_check', {}) }}" name="form-connexion" id="form-connexion" method="post">
<div class="off-form-i">
<a href="{{ url_aide }}" download="Notice_Utilisateur.pdf">
<span>Notice utilisateur</span>
</a>
<a href="{{ path('ctsweb_front_retrieve_login') }}">
<span>Identifiant perdu</span>
</a>
<div>
<div class="form-error">
{{ error }}
</div><!-- .error -->
<dl>
<dt><label for="account">Compte de connexion</label></dt>
<dd><input style="height:50px;" type="text" id="account" onchange="this.value = toUpperWithoutAccents(this.value);" name="_username" placeholder="Compte de connexion"></dd>
</dl>
<dl>
<dt><label for="password">Mot de passe</label></dt>
<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">
<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"/>
<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"/>
</svg></i></dd>
</dl>
<button type="submit" class="off-btn" name="connexionsubmit" id="connexionsubmit">Connexion</button>
</div>
<a href="{{ path('ctsweb_front_reinitialize_pwd') }}">
<span>Mot de passe perdu</span>
</a>
<a href="mailto:{{ mail_contact }}">
<span>Nous contacter</span>
</a>
</div><!-- .off-form-i -->
</form>
</div><!-- .off-form -->
</div><!-- .middle--off -->
<script>sessionStorage.clear();localStorage.clear();
function togglePassword() {
var pass = document.getElementById("password");
if (pass.type === "password") {
pass.type = "text";
} else {
pass.type = "password";
}
};
function toUpperWithoutAccents(s) {
return s.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toUpperCase();
};
</script>
{% endblock %}