<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* content/signin.html.twig */
class __TwigTemplate_b1bf9f69334b90597910bcc85be428cd extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/signin.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/signin.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "content/signin.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "GFS::Signin
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
yield "
\t<!--Start Wrapper-->
\t<div
\t\tclass=\"wrapper sign-up-page\">
\t\t<!--Start Sign up-->
\t\t<section class=\"sign-up-page-section\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
\t\t\t\t\t<div class=\"overlay\"></div>
\t\t\t\t\t<img src=\"/static/assets/images/Login_Desktop (2).jpg\" class=\"img-fluid w-100\" alt=\"Login Desktop image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
\t\t\t\t\t<div class=\"overlay\"></div>
\t\t\t\t\t<img src=\"/static/assets/images/Login_Mobile (2).jpg\" class=\"img-fluid w-100\" alt=\"Login mobile image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"start-training-info sign-up-page-form login-page-form col-xl-5\">
\t\t\t\t\t<h1 class=\"h2 text-center mb-4\">";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login"), "html", null, true);
yield "</h1>
\t\t\t\t\t";
// line 29
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 29, $this->source); })()), "session", [], "any", false, false, false, 29), "flashbag", [], "any", false, false, false, 29), "get", ["error"], "method", false, false, false, 29));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 30
yield "
\t\t\t\t\t\t<span class=\"msg-signup text-danger\">
\t\t\t\t\t\t\t";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html", null, true);
yield "
\t\t\t\t\t\t</span>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
yield "
\t\t\t\t\t<form method=\"post\" action=\"/login\">
\t\t\t\t\t\t<ul
\t\t\t\t\t\t\tclass=\"nav nav-pills nav-fill mt-3\"><!-- <li class=\"nav-item login-btn\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <a class=\"nav-link btn btn-custom btn-primary\" href=\"#\">LOGIN</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <li class=\"nav-item signup-btn\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <a class=\"nav-link btn btn-custom btn-white\" href=\"#\">Sign up</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </li> -->
\t\t\t\t\t\t</ul>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<input required type=\"text\" name=\"email\" class=\"form-control\" id=\"iEmail\" placeholder=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html", null, true);
yield "\">
\t\t\t\t\t\t\t<span class=\"email-error text-danger\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group mb-2\">
\t\t\t\t\t\t\t<input required type=\"password\" name=\"password\" class=\"form-control\" id=\"iPass\" placeholder=\"";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password"), "html", null, true);
yield "\">
\t\t\t\t\t\t\t<span class=\"error text-danger\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group forget-text\">
\t\t\t\t\t\t\t<a class=\"forget-text\" href=\"/";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "locale", [], "any", false, false, false, 56), "html", null, true);
yield "/forgot-password\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot Password?"), "html", null, true);
yield "</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-custom btn-lg-o-white btn-primary-submit btn-block submit-btn btn-lg-o-yellow-white\">
\t\t\t\t\t\t\t<svg xmlns=\"https://www.w3.org/2000/svg\" width=\"25.02\" height=\"29.098\" viewbox=\"0 0 25.02 29.098\">
\t\t\t\t\t\t\t\t<g id=\"Group_188\" data-name=\"Group 188\" transform=\"translate(1.5 1.5)\">
\t\t\t\t\t\t\t\t\t<path id=\"Path_304\" data-name=\"Path 304\" d=\"M-1488.4-9182h15.749v26.1H-1488.4\" transform=\"translate(1494.671 9182)\" fill=\"none\" stroke=\"#fff\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t<g id=\"Icon_feather-arrow-right\" data-name=\"Icon feather-arrow-right\" transform=\"translate(0 6.679)\">
\t\t\t\t\t\t\t\t\t\t<path id=\"Path_305\" data-name=\"Path 305\" d=\"M7.5,18H20.08\" transform=\"translate(-7.5 -11.71)\" fill=\"none\" stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t\t<path id=\"Path_306\" data-name=\"Path 306\" d=\"M18,7.5l6.29,6.29L18,20.08\" transform=\"translate(-11.71 -7.5)\" fill=\"none\" stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t</g>
\t\t\t\t\t\t\t\t</g>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LOGIN"), "html", null, true);
yield "
\t\t\t\t\t\t</button>
\t\t\t\t\t\t<p>";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Don't have an account?"), "html", null, true);
yield "
\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t<a href=\"/";
// line 73
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 73, $this->source); })()), "request", [], "any", false, false, false, 73), "locale", [], "any", false, false, false, 73), "html", null, true);
yield "/signup\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign Up Now"), "html", null, true);
yield "</a>
\t\t\t\t\t\t</p>
\t\t\t\t\t\t";
// line 135
yield "\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t<!--End Sign up-->
\t</div>
\t<!--End Wrapper-->
\t<style>
\t\t.form-control {
\t\t\tcolor: #495057 !important;
\t\t}
\t</style>
\t<script>
\t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
let password = \$('#iPass').val();
let email = \$('#iEmail').val();
if (password == '') {
event.preventDefault();
\$('.error').text(\"";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter password"), "html", null, true);
yield "\");
} else if (password.length < 8) {
event.preventDefault();
\$('.error').text(\"";
// line 159
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password incorrect"), "html", null, true);
yield "\");
} else if (email == '') {
event.preventDefault();
\$('.email-error').text(\"";
// line 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Email Address"), "html", null, true);
yield "\");
} else {
\$('.error').text('');
\$('.email-error').text('');
}
});
\t</script>
\t";
// line 170
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 170, $this->source); })()), "request", [], "any", false, false, false, 170), "locale", [], "any", false, false, false, 170) == "ar")) {
// line 171
yield "\t\t";
$context["topMenu"] = "/en/signin";
// line 172
yield "\t";
} else {
// line 173
yield "\t\t";
$context["topMenu"] = "/ar/signin";
// line 174
yield "\t";
}
// line 175
yield "\t<script>
\t\tvar _TopMenuLink = \"";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topMenu"]) || array_key_exists("topMenu", $context) ? $context["topMenu"] : (function () { throw new RuntimeError('Variable "topMenu" does not exist.', 176, $this->source); })()), "html", null, true);
yield "\";
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "content/signin.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 272 => 176, 269 => 175, 266 => 174, 263 => 173, 260 => 172, 257 => 171, 255 => 170, 244 => 162, 238 => 159, 232 => 156, 209 => 135, 202 => 73, 197 => 71, 192 => 69, 174 => 56, 166 => 51, 159 => 47, 146 => 36, 136 => 32, 132 => 30, 128 => 29, 122 => 26, 101 => 7, 88 => 6, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{% block title %}GFS::Signin
{% endblock %}
{% block content %}
\t<!--Start Wrapper-->
\t<div
\t\tclass=\"wrapper sign-up-page\">
\t\t<!--Start Sign up-->
\t\t<section class=\"sign-up-page-section\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
\t\t\t\t\t<div class=\"overlay\"></div>
\t\t\t\t\t<img src=\"/static/assets/images/Login_Desktop (2).jpg\" class=\"img-fluid w-100\" alt=\"Login Desktop image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
\t\t\t\t\t<div class=\"overlay\"></div>
\t\t\t\t\t<img src=\"/static/assets/images/Login_Mobile (2).jpg\" class=\"img-fluid w-100\" alt=\"Login mobile image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"start-training-info sign-up-page-form login-page-form col-xl-5\">
\t\t\t\t\t<h1 class=\"h2 text-center mb-4\">{{'Login'|trans}}</h1>
\t\t\t\t\t{% for flashMessage in app.session.flashbag.get('error') %}
\t\t\t\t\t\t<span class=\"msg-signup text-danger\">
\t\t\t\t\t\t\t{{ flashMessage }}
\t\t\t\t\t\t</span>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<form method=\"post\" action=\"/login\">
\t\t\t\t\t\t<ul
\t\t\t\t\t\t\tclass=\"nav nav-pills nav-fill mt-3\"><!-- <li class=\"nav-item login-btn\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <a class=\"nav-link btn btn-custom btn-primary\" href=\"#\">LOGIN</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <li class=\"nav-item signup-btn\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <a class=\"nav-link btn btn-custom btn-white\" href=\"#\">Sign up</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </li> -->
\t\t\t\t\t\t</ul>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<input required type=\"text\" name=\"email\" class=\"form-control\" id=\"iEmail\" placeholder=\"{{'Email'|trans}}\">
\t\t\t\t\t\t\t<span class=\"email-error text-danger\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group mb-2\">
\t\t\t\t\t\t\t<input required type=\"password\" name=\"password\" class=\"form-control\" id=\"iPass\" placeholder=\"{{'Password'|trans}}\">
\t\t\t\t\t\t\t<span class=\"error text-danger\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group forget-text\">
\t\t\t\t\t\t\t<a class=\"forget-text\" href=\"/{{app.request.locale}}/forgot-password\">{{'Forgot Password?'|trans}}</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-custom btn-lg-o-white btn-primary-submit btn-block submit-btn btn-lg-o-yellow-white\">
\t\t\t\t\t\t\t<svg xmlns=\"https://www.w3.org/2000/svg\" width=\"25.02\" height=\"29.098\" viewbox=\"0 0 25.02 29.098\">
\t\t\t\t\t\t\t\t<g id=\"Group_188\" data-name=\"Group 188\" transform=\"translate(1.5 1.5)\">
\t\t\t\t\t\t\t\t\t<path id=\"Path_304\" data-name=\"Path 304\" d=\"M-1488.4-9182h15.749v26.1H-1488.4\" transform=\"translate(1494.671 9182)\" fill=\"none\" stroke=\"#fff\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t<g id=\"Icon_feather-arrow-right\" data-name=\"Icon feather-arrow-right\" transform=\"translate(0 6.679)\">
\t\t\t\t\t\t\t\t\t\t<path id=\"Path_305\" data-name=\"Path 305\" d=\"M7.5,18H20.08\" transform=\"translate(-7.5 -11.71)\" fill=\"none\" stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t\t<path id=\"Path_306\" data-name=\"Path 306\" d=\"M18,7.5l6.29,6.29L18,20.08\" transform=\"translate(-11.71 -7.5)\" fill=\"none\" stroke=\"#fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"3\"/>
\t\t\t\t\t\t\t\t\t</g>
\t\t\t\t\t\t\t\t</g>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t{{'LOGIN'|trans}}
\t\t\t\t\t\t</button>
\t\t\t\t\t\t<p>{{\"Don't have an account?\"|trans}}
\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/signup\">{{'Sign Up Now'|trans}}</a>
\t\t\t\t\t\t</p>
\t\t\t\t\t\t{# <p class=\"or-text\">Or</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"form-row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"form-group col-md-12 mb-3\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"btn-group btn-group-lg w-100\" role=\"group\" aria-label=\"Basic example\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-secondary facebook-login-btn col-2\"><i
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t class=\"fab fa-facebook-f\"></i></button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-secondary facebook-login-btn col-10\">Login with Facebook</button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"form-row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"form-group col-md-12\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"btn-group btn-group-lg w-100\" role=\"group\" aria-label=\"Basic example\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-secondary google-login-btn col-2\"><i class=\"fab fa-google\"></i></button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <button type=\"button\" id=\"my-signin2\" class=\"btn btn-secondary google-login-btn col-10\">Login with Google</button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <script>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t function onSuccess(googleUser) {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //console.log('Logged in as: ' + googleUser.getBasicProfile().getGivenName());
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //console.log('Logged in as: ' + googleUser.getBasicProfile().getEmail());
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t email = googleUser.getBasicProfile().getEmail();
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t firstname = googleUser.getBasicProfile().getGivenName();
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lastname = googleUser.getBasicProfile().getFamilyName();
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t name =
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \$.ajax({
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t url: '/register',
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t type: \"post\",
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t dataType: 'json',
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t data: {email: email, firstname: firstname, lastname: lastname},
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t success: function(data)
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t console.log(data);
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t if(data.success==\"success\"){
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t window.location.href = \"/{{app.request.locale}}/\"
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t });
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t function onFailure(error) {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t console.log(error);
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t function renderButton() {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t gapi.signin2.render('my-signin2', {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'scope': 'profile email',
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'width': 240,
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'height': 50,
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'longtitle': true,
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'theme': 'dark',
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'onsuccess': onSuccess,
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'onfailure': onFailure
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t });
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </script>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <script src=\"https://apis.google.com/js/platform.js?onload=renderButton\" async defer></script>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t </div> #}
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t<!--End Sign up-->
\t</div>
\t<!--End Wrapper-->
\t<style>
\t\t.form-control {
\t\t\tcolor: #495057 !important;
\t\t}
\t</style>
\t<script>
\t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
let password = \$('#iPass').val();
let email = \$('#iEmail').val();
if (password == '') {
event.preventDefault();
\$('.error').text(\"{{ 'Enter password'|trans }}\");
} else if (password.length < 8) {
event.preventDefault();
\$('.error').text(\"{{ 'Password incorrect'|trans }}\");
} else if (email == '') {
event.preventDefault();
\$('.email-error').text(\"{{ 'Enter Email Address'|trans }}\");
} else {
\$('.error').text('');
\$('.email-error').text('');
}
});
\t</script>
\t{% if (app.request.locale =='ar') %}
\t\t{% set topMenu =\"/en/signin\" %}
\t{% else %}
\t\t{% set topMenu =\"/ar/signin\" %}
\t{% endif %}
\t<script>
\t\tvar _TopMenuLink = \"{{ topMenu }}\";
\t</script>
{% endblock %}
", "content/signin.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/content/signin.html.twig");
}
}