<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Theme/Users/User/Security/login.html.twig */
class __TwigTemplate_c91413f3857d1eb2a875d6240f7f3fd6f5c0b28f353971efd28660c2bea810be extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'userblog_body' => [$this, 'block_userblog_body'],
'javascripttemplate' => [$this, 'block_javascripttemplate'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Theme/Users/User/layoutuserlogin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Users/User/Security/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Users/User/Security/login.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/User/layoutuserlogin.html.twig", "Theme/Users/User/Security/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 3
echo "\t";
$this->displayParentBlock("meta", $context, $blocks);
echo "
\t<meta name=\"keywords\" content=\"";
// line 4
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 4, $this->source); })()), "html", null, true);
echo ", Business, Innovation,Administration\"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"";
// line 6
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 6, $this->source); })()), "html", null, true);
echo " | Inscription | Cameroun | ";
echo twig_escape_filter($this->env, (isset($context["metier"]) || array_key_exists("metier", $context) ? $context["metier"] : (function () { throw new RuntimeError('Variable "metier" does not exist.', 6, $this->source); })()), "html", null, true);
echo "\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 10
echo "\t";
$this->displayParentBlock("title", $context, $blocks);
echo " | Connexion
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 14
echo "
<meta name=\"google-signin-client_id\" content=\"808214570153-stbihc7lmtfm86ia20b31pbak1afvam2.apps.googleusercontent.com\">
<script src=\"https://apis.google.com/js/platform.js?onload=renderButton\" async defer></script>
<script>
\t//Connexion Using Google.
\tfunction onSuccess(googleUser){
\t var profile = googleUser.getBasicProfile();
\t var id = profile.getId();
\t var email = profile.getEmail();
\t var nom = profile.getFamilyName();
\t var prenom = profile.getGivenName();
\t openModalLoginRS(id,email,nom,prenom,'USG','success','login');
\t}
\tfunction onFailure(error){
\t openModalLoginRS('','','','','USG','echec','login');
\t}
\t
\tfunction renderButton(){
\t gapi.signin2.render('my-signin2', {
\t\t'scope': 'profile email',
\t\t'width': 264,
\t\t'height': 42,
\t\t'longtitle': true,
\t\t'theme': 'dark'
\t });
\t}
\t
\tfunction loginGlOne(){
\t\tgapi.signin2.render('my-signin2',{
\t\t'scope': 'profile email',
\t\t'width': 260,
\t\t'height': 42,
\t\t'longtitle': true,
\t\t'theme': 'dark',
\t\t'onsuccess': onSuccess,
\t\t'onfailure': onFailure
\t });
\t}
\t
\tfunction openModalLoginRS(id,email,nom,prenom,type,statut,position)
\t {
\t\t//content-modal-annimation-blog
\t\t\$('#modal-animation-afex-premium').modal('show');
\t\t\$('.wait-account-verification-affiliate').show();
\t\t\$('.content-modal-annimation-afex-premium').hide();
\t\t
\t\t\$.post('";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_validation_social_login", ["agent" => ((array_key_exists("agent", $context)) ? (_twig_default_filter((isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 61, $this->source); })()), "ordi")) : ("ordi"))]), "html", null, true);
echo "',{'id': id,'email': email,'nom': nom,'prenom': prenom,'type': type,'statut': statut,'position': position}, function(data){
\t\t\t\$('.wait-account-verification-affiliate').hide();
\t\t\t\$('.content-modal-annimation-afex-premium').show();
\t\t\t
\t\t\tif(data == 1){
\t\t\t\t\$('.content-modal-annimation-afex-premium').html('<div style=\"display: block; text-align: center;\">Connexion effectuée avec succès.</br>Redirection en cours ...</br><img src=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/wait-user.gif"), "html", null, true);
echo "\" alt=\"image\"><div>');
\t\t\t\tdocument.location.href= '";
// line 67
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_acces_plateforme");
echo "';
\t\t\t}else{
\t\t\t\t\$('.content-modal-annimation-afex-premium').html(data);
\t\t\t}
\t\t});
\t }
\t
\t //Connexion Using FaceBook.
\t function statusChangeCallback(response){
\t\tconsole.log('statusChangeCallback');
\t\tconsole.log(response);
\t\tif (response.status === 'connected') {
\t\t testAPI();
\t\t} else {
\t\t //document.getElementById('status').innerHTML = 'Please log ' +'into this app.';
\t\t}
\t }
\t function checkLoginState() {
\t\tFB.getLoginStatus(function(response) {
\t\t statusChangeCallback(response);
\t\t});
\t }
\t window.fbAsyncInit = function() {
\t\tFB.init({
\t\t appId : '1913794535583232',
\t\t xfbml : true,
\t\t version : 'v3.1'
\t\t});
\t\t//FB.getLoginStatus(function(response) {
\t\t // statusChangeCallback(response);
\t\t//});
\t };
\t // Load the SDK asynchronously
\t (function(d, s, id) {
\t\t var js, fjs = d.getElementsByTagName(s)[0];
\t\t if (d.getElementById(id)) return;
\t\t js = d.createElement(s); js.id = id;
\t\t js.src = 'https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v3.1&appId=1913794535583232&autoLogAppEvents=1';
\t\t fjs.parentNode.insertBefore(js, fjs);
\t\t}(document, 'script', 'facebook-jssdk'));
\t // Here we run a very simple test of the Graph API after login is
\t // successful. See statusChangeCallback() for when this call is made.
\t function testAPI() {
\t\tconsole.log('Welcome! Fetching your information.... ');
\t\tFB.api('/me?fields=id,name,email', function(response) {
\t\t // console.log('Successful login for: ' + response.name);
\t\t //document.getElementById('status').innerHTML =
\t\t // 'Thanks for logging in, ' + response.name + ' - ' + JSON.stringify(response)+ '!';
\t\t
\t\t if (!response || response.error){
\t\t\topenModalLoginRS('','','','','USF','echec','login');
\t\t } else {
\t\t\topenModalLoginRS(response.id,response.email,response.name,'','USF','success','login');
\t\t }
\t\t\t
\t\t});
\t }
</script>
";
// line 131
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 134
public function block_userblog_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
echo "\t
\t
<section class=\"section\" style=\"min-height: calc(100vh - 250px);\">
\t<h1 style=\"width: 100%; text-align: center;\">
\tConnectez-vous à votre compte ";
// line 138
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 138, $this->source); })()), "html", null, true);
echo "
\t</h1>
\t<!-- <div style=\"text-align: center!important;\"> -->
\t <!-- <fb:login-button scope=\"public_profile,email,user_friends\" onlogin=\"checkLoginState();\" class=\"fb-login-button\" data-max-rows=\"1\" data-size=\"large\" data-button-type=\"continue_with\" data-show-faces=\"false\" data-auto-logout-link=\"false\" data-use-continue-as=\"false\"> -->
\t <!-- </fb:login-button> -->
\t <!-- </div> -->
\t
\t <!-- <div style=\"text-align: center!important;\"> -->
\t\t<!-- <button id=\"my-signin2\" onclick=\"loginGlOne()\" style=\"border: none; margin: 15px 0px 0px 0px; padding: 0px;\"></button> -->
\t <!-- </div> -->
\t\t
\t<div class=\"form-progress\">
\t\t<div style=\"color: red;\">";
// line 151
echo twig_escape_filter($this->env, (isset($context["error_login"]) || array_key_exists("error_login", $context) ? $context["error_login"] : (function () { throw new RuntimeError('Variable "error_login" does not exist.', 151, $this->source); })()), "html", null, true);
echo "</div>
\t</div>
\t
\t<div class=\"animation-container\">
\t\t<!-- Step one -->
\t\t<div class=\"form-step js-form-step\" data-step=\"1\">
\t\t\t<!-- <p class=\"form-instructions\"><strong>Pour vous connectez rapidement à votre compte AZ Corporation, cliquez sur l'un des boutons ci-dessus pour continuer</strong></p> -->
\t\t\t<!-- <p class=\"form-instructions\"> -->
\t\t\t <!-- <div style=\"text-align: center; margin: 25px 0px;\"> -->
\t\t\t\t<!-- <div class=\"or-spacer\"> -->
\t\t\t\t <!-- <div class=\"mask\"></div> -->
\t\t\t\t <!-- <span><i>ou</i></span> -->
\t\t\t\t<!-- </div> -->
\t\t\t\t<!-- </div></p> -->
\t\t\t<form method=\"post\" action=\"";
// line 167
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_connexion_user");
echo "\" name=\"form-step-1\">
\t\t\t\t<div class=\"fieldgroup\">
\t\t\t\t\t<input id=\"username\" name=\"username\" type=\"text\" required=\"\" autocomplete=\"email\"/>
\t\t\t\t\t<label for=\"username\">Téléphone ou Email</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"fieldgroup\">
\t\t\t\t\t<input type=\"password\" id=\"password\" name=\"password\" type=\"password\" required=\"\"/>
\t\t\t\t\t<label for=\"password\">Mot de passe</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"fieldgroup\" style=\"margin-top: 15px;\">
\t\t\t\t\t<label style=\"display: block; text-align: left; width: 100%;\">
\t\t\t\t\t <a href=\"#!\" class=\"modal_reset_password\" style=\"float: right; display: inline; color: #CCC;\">Mot de pas oublié ?</a>
\t\t\t\t\t <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked style=\"float: left!important; height: 15px; width: 15px; margin-right: 7px;\"/> Se souvenir de moi
\t\t\t\t\t</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"clearfix\"></div>
\t\t\t\t<div style=\"text-align: center;\">
\t\t\t\t\t<button type=\"submit\" class=\"btn\">Continuer</button>
\t\t\t\t</div>
\t\t\t</form>
\t\t\t<div class=\"signup-content\" style=\"text-align: center;\">
\t\t\t\t<h3>Vous êtes nouveau sur ";
// line 191
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 191, $this->source); })()), "html", null, true);
echo " ?</h3>
\t\t\t\t<p>Un compte ";
// line 192
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 192, $this->source); })()), "html", null, true);
echo " vous permettra de passer et de suivre vos commandes via un tableau de bord.</p>
\t\t\t\t<div>
\t\t\t\t\t<a href=\"";
// line 194
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_inscription_user");
echo "\">Créer un compte <span class=\"fa fa-angle-right\"></span></a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<div class=\"modal fade\" data-backdrop=\"false\" id=\"open-modalSelect-reinitialize\" style=\"padding-top: 50px;\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
\t\t<div class=\"modal-header color-bottom\" style=\"border-bottom: 4px solid #37c0fb; display: block!important;\">
\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" style=\"float: right!important;\">×</button>
\t\t\t<h3 class=\"modal-title\" style=\"margin: 0px; font-size: 22px;\"> Initialisation du mot de passe</h3>
\t\t</div>
\t\t<div class=\"modal-body\">
\t\t\t<div class=\"wait-account-verification-affiliate\" style=\"text-align: center; height: 100px; padding-top: 30px; color: #333;\">
\t\t\t\tPatientez un moment pendant la vérification de votre session.</br>
\t\t\t\t<img src=\"";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html", null, true);
echo "\" alt=\"image\" style=\"height: 40px; width: 40px;\">
\t\t\t</div>
\t\t\t<div class=\"form-coustom-reset-password\" style=\"text-align: left; display: none; margin-bottom: 30px;\">
\t\t\t\t<div class=\"col-md-10 col-sm-12 offset-md-1\" style=\"color: #333;\">
\t\t\t\t <div style=\"border-bottom: 1px solid #ddd; margin-bottom: 15px; font-size: 20px;\">Identification du compte</div>
\t\t\t\t <form method=\"post\" action=\"#\" class=\"form-check-identifiant\">
\t\t\t\t\t<div class=\"form-group form-group-resset\">
\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Rentrez l'email du compte\" required=\"\">
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"alert alert-resset alert-block alert-danger\" style=\"display:none\">
\t\t\t\t\t<h4>Erreur !</h4>
\t\t\t\t\tNous n'avons pu identifier un compte avec cette adresse.
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button class=\"btn btn-primary\" style=\"background: #e34520;\">Envoyer</button>
\t\t\t\t\t</div>
\t\t\t\t </form>
\t\t\t\t</div>
\t\t\t\t<div class=\"clearfix\"></div>
\t\t\t</div>\t\t
\t\t</div>
\t\t<div class=\"modal-footer\" style=\"color: #333;\">
\t\t\t";
// line 238
$this->loadTemplate("Theme/General/Template/Menu/social.html.twig", "Theme/Users/User/Security/login.html.twig", 238)->display($context);
// line 239
echo " </div>
</div>
</div>
</div>
\t
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 246
public function block_javascripttemplate($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
// line 247
echo "
\$('.modal_reset_password').click(function(){
\t\$('#open-modalSelect-reinitialize').modal('show');
\tsetTimeout(function(){
\t\t\t\$('.wait-account-verification-affiliate').hide();
\t\t\t\$('.form-coustom-reset-password').show();
\t}, 2000);
});
\$('form.form-check-identifiant').on('submit', function(){
\tvar hauteur = \$(\".form-coustom-reset-password\").height() + 20;
\tvar largeur = \$(\".form-coustom-reset-password\").width() + 5;
\tvar padding = Math.round(hauteur/2 - 50);
\tvar username = \$(this).find('input').val();
\t\$(\".form-coustom-reset-password\").before('<div class=\"attente-resultat\" style=\"padding-top: '+padding+'px; z-index: 102; height: '+hauteur+'px; text-align: center; vertical-align: center; width: '+largeur+'px; position: absolute; background: #fff; margin-top: -7px;\"><span><img src=\"";
// line 261
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/images/loader1.gif"), "html", null, true);
echo "\" alt=\"...\" style=\"width: 80px; height: 80px;\" /></span></div>');
\t\$.post('";
// line 262
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_reset_user_password", ["etape" => 1]);
echo "',{ username: username }, function(data){
\t\t\$('.attente-resultat').hide();
\t\tif(data != 0)
\t\t{
\t\t\t\$('.form-coustom-reset-password').replaceWith(data);
\t\t}else{
\t\t\t\$(\"div.form-group-resset\").addClass(\"has-error\");
\t\t\t\$(\"div.alert-resset\").show(\"slow\").delay(4000).hide(\"slow\");
\t\t}
\t});
\treturn false;
});
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Theme/Users/User/Security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 452 => 262, 448 => 261, 432 => 247, 422 => 246, 407 => 239, 405 => 238, 377 => 213, 355 => 194, 350 => 192, 346 => 191, 319 => 167, 300 => 151, 284 => 138, 269 => 134, 257 => 131, 190 => 67, 186 => 66, 178 => 61, 129 => 14, 119 => 13, 106 => 10, 96 => 9, 82 => 6, 77 => 4, 72 => 3, 62 => 2, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Theme/Users/User/layoutuserlogin.html.twig\" %}
{% block meta %}
\t{{ parent() }}
\t<meta name=\"keywords\" content=\"{{ site }}, Business, Innovation,Administration\"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"{{ site }} | Inscription | Cameroun | {{ metier }}\" />
{% endblock %}
{% block title %}
\t{{ parent() }} | Connexion
{% endblock %}
{% block stylesheets %}
<meta name=\"google-signin-client_id\" content=\"808214570153-stbihc7lmtfm86ia20b31pbak1afvam2.apps.googleusercontent.com\">
<script src=\"https://apis.google.com/js/platform.js?onload=renderButton\" async defer></script>
<script>
\t//Connexion Using Google.
\tfunction onSuccess(googleUser){
\t var profile = googleUser.getBasicProfile();
\t var id = profile.getId();
\t var email = profile.getEmail();
\t var nom = profile.getFamilyName();
\t var prenom = profile.getGivenName();
\t openModalLoginRS(id,email,nom,prenom,'USG','success','login');
\t}
\tfunction onFailure(error){
\t openModalLoginRS('','','','','USG','echec','login');
\t}
\t
\tfunction renderButton(){
\t gapi.signin2.render('my-signin2', {
\t\t'scope': 'profile email',
\t\t'width': 264,
\t\t'height': 42,
\t\t'longtitle': true,
\t\t'theme': 'dark'
\t });
\t}
\t
\tfunction loginGlOne(){
\t\tgapi.signin2.render('my-signin2',{
\t\t'scope': 'profile email',
\t\t'width': 260,
\t\t'height': 42,
\t\t'longtitle': true,
\t\t'theme': 'dark',
\t\t'onsuccess': onSuccess,
\t\t'onfailure': onFailure
\t });
\t}
\t
\tfunction openModalLoginRS(id,email,nom,prenom,type,statut,position)
\t {
\t\t//content-modal-annimation-blog
\t\t\$('#modal-animation-afex-premium').modal('show');
\t\t\$('.wait-account-verification-affiliate').show();
\t\t\$('.content-modal-annimation-afex-premium').hide();
\t\t
\t\t\$.post('{{ path('users_user_validation_social_login', {'agent': agent|default('ordi') }) }}',{'id': id,'email': email,'nom': nom,'prenom': prenom,'type': type,'statut': statut,'position': position}, function(data){
\t\t\t\$('.wait-account-verification-affiliate').hide();
\t\t\t\$('.content-modal-annimation-afex-premium').show();
\t\t\t
\t\t\tif(data == 1){
\t\t\t\t\$('.content-modal-annimation-afex-premium').html('<div style=\"display: block; text-align: center;\">Connexion effectuée avec succès.</br>Redirection en cours ...</br><img src=\"{{ asset('template/images/wait-user.gif') }}\" alt=\"image\"><div>');
\t\t\t\tdocument.location.href= '{{ path('users_user_acces_plateforme') }}';
\t\t\t}else{
\t\t\t\t\$('.content-modal-annimation-afex-premium').html(data);
\t\t\t}
\t\t});
\t }
\t
\t //Connexion Using FaceBook.
\t function statusChangeCallback(response){
\t\tconsole.log('statusChangeCallback');
\t\tconsole.log(response);
\t\tif (response.status === 'connected') {
\t\t testAPI();
\t\t} else {
\t\t //document.getElementById('status').innerHTML = 'Please log ' +'into this app.';
\t\t}
\t }
\t function checkLoginState() {
\t\tFB.getLoginStatus(function(response) {
\t\t statusChangeCallback(response);
\t\t});
\t }
\t window.fbAsyncInit = function() {
\t\tFB.init({
\t\t appId : '1913794535583232',
\t\t xfbml : true,
\t\t version : 'v3.1'
\t\t});
\t\t//FB.getLoginStatus(function(response) {
\t\t // statusChangeCallback(response);
\t\t//});
\t };
\t // Load the SDK asynchronously
\t (function(d, s, id) {
\t\t var js, fjs = d.getElementsByTagName(s)[0];
\t\t if (d.getElementById(id)) return;
\t\t js = d.createElement(s); js.id = id;
\t\t js.src = 'https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v3.1&appId=1913794535583232&autoLogAppEvents=1';
\t\t fjs.parentNode.insertBefore(js, fjs);
\t\t}(document, 'script', 'facebook-jssdk'));
\t // Here we run a very simple test of the Graph API after login is
\t // successful. See statusChangeCallback() for when this call is made.
\t function testAPI() {
\t\tconsole.log('Welcome! Fetching your information.... ');
\t\tFB.api('/me?fields=id,name,email', function(response) {
\t\t // console.log('Successful login for: ' + response.name);
\t\t //document.getElementById('status').innerHTML =
\t\t // 'Thanks for logging in, ' + response.name + ' - ' + JSON.stringify(response)+ '!';
\t\t
\t\t if (!response || response.error){
\t\t\topenModalLoginRS('','','','','USF','echec','login');
\t\t } else {
\t\t\topenModalLoginRS(response.id,response.email,response.name,'','USF','success','login');
\t\t }
\t\t\t
\t\t});
\t }
</script>
{{ parent() }}
{% endblock %}
{% block userblog_body %}\t
\t
<section class=\"section\" style=\"min-height: calc(100vh - 250px);\">
\t<h1 style=\"width: 100%; text-align: center;\">
\tConnectez-vous à votre compte {{ site }}
\t</h1>
\t<!-- <div style=\"text-align: center!important;\"> -->
\t <!-- <fb:login-button scope=\"public_profile,email,user_friends\" onlogin=\"checkLoginState();\" class=\"fb-login-button\" data-max-rows=\"1\" data-size=\"large\" data-button-type=\"continue_with\" data-show-faces=\"false\" data-auto-logout-link=\"false\" data-use-continue-as=\"false\"> -->
\t <!-- </fb:login-button> -->
\t <!-- </div> -->
\t
\t <!-- <div style=\"text-align: center!important;\"> -->
\t\t<!-- <button id=\"my-signin2\" onclick=\"loginGlOne()\" style=\"border: none; margin: 15px 0px 0px 0px; padding: 0px;\"></button> -->
\t <!-- </div> -->
\t\t
\t<div class=\"form-progress\">
\t\t<div style=\"color: red;\">{{ error_login }}</div>
\t</div>
\t
\t<div class=\"animation-container\">
\t\t<!-- Step one -->
\t\t<div class=\"form-step js-form-step\" data-step=\"1\">
\t\t\t<!-- <p class=\"form-instructions\"><strong>Pour vous connectez rapidement à votre compte AZ Corporation, cliquez sur l'un des boutons ci-dessus pour continuer</strong></p> -->
\t\t\t<!-- <p class=\"form-instructions\"> -->
\t\t\t <!-- <div style=\"text-align: center; margin: 25px 0px;\"> -->
\t\t\t\t<!-- <div class=\"or-spacer\"> -->
\t\t\t\t <!-- <div class=\"mask\"></div> -->
\t\t\t\t <!-- <span><i>ou</i></span> -->
\t\t\t\t<!-- </div> -->
\t\t\t\t<!-- </div></p> -->
\t\t\t<form method=\"post\" action=\"{{ path('users_user_connexion_user') }}\" name=\"form-step-1\">
\t\t\t\t<div class=\"fieldgroup\">
\t\t\t\t\t<input id=\"username\" name=\"username\" type=\"text\" required=\"\" autocomplete=\"email\"/>
\t\t\t\t\t<label for=\"username\">Téléphone ou Email</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"fieldgroup\">
\t\t\t\t\t<input type=\"password\" id=\"password\" name=\"password\" type=\"password\" required=\"\"/>
\t\t\t\t\t<label for=\"password\">Mot de passe</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"fieldgroup\" style=\"margin-top: 15px;\">
\t\t\t\t\t<label style=\"display: block; text-align: left; width: 100%;\">
\t\t\t\t\t <a href=\"#!\" class=\"modal_reset_password\" style=\"float: right; display: inline; color: #CCC;\">Mot de pas oublié ?</a>
\t\t\t\t\t <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked style=\"float: left!important; height: 15px; width: 15px; margin-right: 7px;\"/> Se souvenir de moi
\t\t\t\t\t</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"clearfix\"></div>
\t\t\t\t<div style=\"text-align: center;\">
\t\t\t\t\t<button type=\"submit\" class=\"btn\">Continuer</button>
\t\t\t\t</div>
\t\t\t</form>
\t\t\t<div class=\"signup-content\" style=\"text-align: center;\">
\t\t\t\t<h3>Vous êtes nouveau sur {{ site }} ?</h3>
\t\t\t\t<p>Un compte {{ site }} vous permettra de passer et de suivre vos commandes via un tableau de bord.</p>
\t\t\t\t<div>
\t\t\t\t\t<a href=\"{{ path('users_user_inscription_user') }}\">Créer un compte <span class=\"fa fa-angle-right\"></span></a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<div class=\"modal fade\" data-backdrop=\"false\" id=\"open-modalSelect-reinitialize\" style=\"padding-top: 50px;\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
\t\t<div class=\"modal-header color-bottom\" style=\"border-bottom: 4px solid #37c0fb; display: block!important;\">
\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" style=\"float: right!important;\">×</button>
\t\t\t<h3 class=\"modal-title\" style=\"margin: 0px; font-size: 22px;\"> Initialisation du mot de passe</h3>
\t\t</div>
\t\t<div class=\"modal-body\">
\t\t\t<div class=\"wait-account-verification-affiliate\" style=\"text-align: center; height: 100px; padding-top: 30px; color: #333;\">
\t\t\t\tPatientez un moment pendant la vérification de votre session.</br>
\t\t\t\t<img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"image\" style=\"height: 40px; width: 40px;\">
\t\t\t</div>
\t\t\t<div class=\"form-coustom-reset-password\" style=\"text-align: left; display: none; margin-bottom: 30px;\">
\t\t\t\t<div class=\"col-md-10 col-sm-12 offset-md-1\" style=\"color: #333;\">
\t\t\t\t <div style=\"border-bottom: 1px solid #ddd; margin-bottom: 15px; font-size: 20px;\">Identification du compte</div>
\t\t\t\t <form method=\"post\" action=\"#\" class=\"form-check-identifiant\">
\t\t\t\t\t<div class=\"form-group form-group-resset\">
\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Rentrez l'email du compte\" required=\"\">
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"alert alert-resset alert-block alert-danger\" style=\"display:none\">
\t\t\t\t\t<h4>Erreur !</h4>
\t\t\t\t\tNous n'avons pu identifier un compte avec cette adresse.
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button class=\"btn btn-primary\" style=\"background: #e34520;\">Envoyer</button>
\t\t\t\t\t</div>
\t\t\t\t </form>
\t\t\t\t</div>
\t\t\t\t<div class=\"clearfix\"></div>
\t\t\t</div>\t\t
\t\t</div>
\t\t<div class=\"modal-footer\" style=\"color: #333;\">
\t\t\t{% include 'Theme/General/Template/Menu/social.html.twig' %}
</div>
</div>
</div>
</div>
\t
{% endblock %}
{% block javascripttemplate %}
\$('.modal_reset_password').click(function(){
\t\$('#open-modalSelect-reinitialize').modal('show');
\tsetTimeout(function(){
\t\t\t\$('.wait-account-verification-affiliate').hide();
\t\t\t\$('.form-coustom-reset-password').show();
\t}, 2000);
});
\$('form.form-check-identifiant').on('submit', function(){
\tvar hauteur = \$(\".form-coustom-reset-password\").height() + 20;
\tvar largeur = \$(\".form-coustom-reset-password\").width() + 5;
\tvar padding = Math.round(hauteur/2 - 50);
\tvar username = \$(this).find('input').val();
\t\$(\".form-coustom-reset-password\").before('<div class=\"attente-resultat\" style=\"padding-top: '+padding+'px; z-index: 102; height: '+hauteur+'px; text-align: center; vertical-align: center; width: '+largeur+'px; position: absolute; background: #fff; margin-top: -7px;\"><span><img src=\"{{ asset('template/images/loader1.gif') }}\" alt=\"...\" style=\"width: 80px; height: 80px;\" /></span></div>');
\t\$.post('{{ path('users_user_reset_user_password', {'etape': 1}) }}',{ username: username }, function(data){
\t\t\$('.attente-resultat').hide();
\t\tif(data != 0)
\t\t{
\t\t\t\$('.form-coustom-reset-password').replaceWith(data);
\t\t}else{
\t\t\t\$(\"div.form-group-resset\").addClass(\"has-error\");
\t\t\t\$(\"div.alert-resset\").show(\"slow\").delay(4000).hide(\"slow\");
\t\t}
\t});
\treturn false;
});
{% endblock %}", "Theme/Users/User/Security/login.html.twig", "/home/azcorp-institut/public_html/iaz/templates/Theme/Users/User/Security/login.html.twig");
}
}