{% extends 'layout-general.html.twig' %}
{% block body %}
<div class="error"></div>
{% include 'Includes/Comps/im.html.twig' with {t:"text", id:"popin-login-username", n:"Pseudonyme ou Email", req:1} %}
{% include 'Includes/Comps/im.html.twig' with {t:"password", id:"popin-login-password", n:"Mot de passe", req:1} %}
<div class="popin-btn" id="popin-login-validate">Se connecter</div>
{% endblock %}
{% block footer %}
<script>
$("#popin-login-validate").click(function() {
maskErrors();
$.post('{{ path('admin_ajax_login') }}', { login:$('#popin-login-username').val(), password:$('#popin-login-password').val(), ok:1, d:new Date().getTime() }, function(data) {
setTimeout(function(){
if(data.s==1) window.location.href=window.location;
else showErrorsPage(data);
}, 500);
});
});
</script>
{% endblock %}