var/cache/dev/twig/62/62dcceb7b6973a3351c2d5897caf67fc.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* content/signin.html.twig */
  16. class __TwigTemplate_b1bf9f69334b90597910bcc85be428cd extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/signin.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/signin.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""content/signin.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "GFS::Signin
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         yield from [];
  69.     }
  70.     // line 6
  71.     /**
  72.      * @return iterable<null|scalar|\Stringable>
  73.      */
  74.     public function block_content(array $context, array $blocks = []): iterable
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 7
  82.         yield "
  83. \t<!--Start Wrapper-->
  84. \t<div
  85. \t\tclass=\"wrapper sign-up-page\">
  86. \t\t<!--Start Sign up-->
  87. \t\t<section class=\"sign-up-page-section\">
  88. \t\t\t<div class=\"row\">
  89. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
  90. \t\t\t\t\t<div class=\"overlay\"></div>
  91. \t\t\t\t\t<img src=\"/static/assets/images/Login_Desktop (2).jpg\" class=\"img-fluid w-100\" alt=\"Login Desktop image\">
  92. \t\t\t\t</div>
  93. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
  94. \t\t\t\t\t<div class=\"overlay\"></div>
  95. \t\t\t\t\t<img src=\"/static/assets/images/Login_Mobile (2).jpg\" class=\"img-fluid w-100\" alt=\"Login mobile image\">
  96. \t\t\t\t</div>
  97. \t\t\t\t<div class=\"start-training-info sign-up-page-form login-page-form col-xl-5\">
  98. \t\t\t\t\t<h1 class=\"h2 text-center mb-4\">";
  99.         // line 26
  100.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login"), "html"nulltrue);
  101.         yield "</h1>
  102. \t\t\t\t\t";
  103.         // line 29
  104.         $context['_parent'] = $context;
  105.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse29), "flashbag", [], "any"falsefalsefalse29), "get", ["error"], "method"falsefalsefalse29));
  106.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  107.             // line 30
  108.             yield "
  109. \t\t\t\t\t\t<span class=\"msg-signup text-danger\">
  110. \t\t\t\t\t\t\t";
  111.             // line 32
  112.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html"nulltrue);
  113.             yield "
  114. \t\t\t\t\t\t</span>
  115. \t\t\t\t\t";
  116.         }
  117.         $_parent $context['_parent'];
  118.         unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  119.         $context array_intersect_key($context$_parent) + $_parent;
  120.         // line 36
  121.         yield "
  122. \t\t\t\t\t<form method=\"post\" action=\"/login\">
  123. \t\t\t\t\t\t<ul
  124. \t\t\t\t\t\t\tclass=\"nav nav-pills nav-fill mt-3\"><!-- <li class=\"nav-item login-btn\">
  125. \t\t\t\t\t\t\t\t\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>
  126. \t\t\t\t\t\t\t\t\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>
  127. \t\t\t\t\t\t\t\t\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\">
  128. \t\t\t\t\t\t\t\t\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>
  129. \t\t\t\t\t\t\t\t\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> -->
  130. \t\t\t\t\t\t</ul>
  131. \t\t\t\t\t\t<div class=\"form-group\">
  132. \t\t\t\t\t\t\t<input required type=\"text\" name=\"email\" class=\"form-control\" id=\"iEmail\" placeholder=\"";
  133.         // line 47
  134.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html"nulltrue);
  135.         yield "\">
  136. \t\t\t\t\t\t\t<span class=\"email-error text-danger\"></span>
  137. \t\t\t\t\t\t</div>
  138. \t\t\t\t\t\t<div class=\"form-group mb-2\">
  139. \t\t\t\t\t\t\t<input required type=\"password\" name=\"password\" class=\"form-control\" id=\"iPass\" placeholder=\"";
  140.         // line 51
  141.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password"), "html"nulltrue);
  142.         yield "\">
  143. \t\t\t\t\t\t\t<span class=\"error text-danger\"></span>
  144. \t\t\t\t\t\t</div>
  145. \t\t\t\t\t\t<div class=\"form-group forget-text\">
  146. \t\t\t\t\t\t\t<a class=\"forget-text\" href=\"/";
  147.         // line 56
  148.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse56), "locale", [], "any"falsefalsefalse56), "html"nulltrue);
  149.         yield "/forgot-password\">";
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot Password?"), "html"nulltrue);
  151.         yield "</a>
  152. \t\t\t\t\t\t</div>
  153. \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\">
  154. \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\">
  155. \t\t\t\t\t\t\t\t<g id=\"Group_188\" data-name=\"Group 188\" transform=\"translate(1.5 1.5)\">
  156. \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\"/>
  157. \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)\">
  158. \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\"/>
  159. \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\"/>
  160. \t\t\t\t\t\t\t\t\t</g>
  161. \t\t\t\t\t\t\t\t</g>
  162. \t\t\t\t\t\t\t</svg>
  163. \t\t\t\t\t\t\t";
  164.         // line 69
  165.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LOGIN"), "html"nulltrue);
  166.         yield "
  167. \t\t\t\t\t\t</button>
  168. \t\t\t\t\t\t<p>";
  169.         // line 71
  170.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Don't have an account?"), "html"nulltrue);
  171.         yield "
  172. \t\t\t\t\t\t\t<br>
  173. \t\t\t\t\t\t\t<a href=\"/";
  174.         // line 73
  175.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse73), "locale", [], "any"falsefalsefalse73), "html"nulltrue);
  176.         yield "/signup\">";
  177.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign Up Now"), "html"nulltrue);
  178.         yield "</a>
  179. \t\t\t\t\t\t</p>
  180. \t\t\t\t\t\t";
  181.         // line 135
  182.         yield "\t\t\t\t\t</form>
  183. \t\t\t\t</div>
  184. \t\t\t</div>
  185. \t\t</section>
  186. \t\t<!--End Sign up-->
  187. \t</div>
  188. \t<!--End Wrapper-->
  189. \t<style>
  190. \t\t.form-control {
  191. \t\t\tcolor: #495057 !important;
  192. \t\t}
  193. \t</style>
  194. \t<script>
  195. \t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
  196. let password = \$('#iPass').val();
  197. let email = \$('#iEmail').val();
  198. if (password == '') {
  199. event.preventDefault();
  200. \$('.error').text(\"";
  201.         // line 156
  202.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter password"), "html"nulltrue);
  203.         yield "\");
  204. } else if (password.length < 8) {
  205. event.preventDefault();
  206. \$('.error').text(\"";
  207.         // line 159
  208.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password incorrect"), "html"nulltrue);
  209.         yield "\");
  210. } else if (email == '') {
  211. event.preventDefault();
  212. \$('.email-error').text(\"";
  213.         // line 162
  214.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Email Address"), "html"nulltrue);
  215.         yield "\");
  216. } else {
  217. \$('.error').text('');
  218. \$('.email-error').text('');
  219. }
  220. });
  221. \t</script>
  222. \t";
  223.         // line 170
  224.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse170), "locale", [], "any"falsefalsefalse170) == "ar")) {
  225.             // line 171
  226.             yield "\t\t";
  227.             $context["topMenu"] = "/en/signin";
  228.             // line 172
  229.             yield "\t";
  230.         } else {
  231.             // line 173
  232.             yield "\t\t";
  233.             $context["topMenu"] = "/ar/signin";
  234.             // line 174
  235.             yield "\t";
  236.         }
  237.         // line 175
  238.         yield "\t<script>
  239. \t\tvar _TopMenuLink = \"";
  240.         // line 176
  241.         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"nulltrue);
  242.         yield "\";
  243. \t</script>
  244. ";
  245.         
  246.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  247.         
  248.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  249.         yield from [];
  250.     }
  251.     /**
  252.      * @codeCoverageIgnore
  253.      */
  254.     public function getTemplateName(): string
  255.     {
  256.         return "content/signin.html.twig";
  257.     }
  258.     /**
  259.      * @codeCoverageIgnore
  260.      */
  261.     public function isTraitable(): bool
  262.     {
  263.         return false;
  264.     }
  265.     /**
  266.      * @codeCoverageIgnore
  267.      */
  268.     public function getDebugInfo(): array
  269.     {
  270.         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,);
  271.     }
  272.     public function getSourceContext(): Source
  273.     {
  274.         return new Source("{% extends \"layout/layout.html.twig\" %}
  275. {% block title %}GFS::Signin
  276. {% endblock %}
  277. {% block content %}
  278. \t<!--Start Wrapper-->
  279. \t<div
  280. \t\tclass=\"wrapper sign-up-page\">
  281. \t\t<!--Start Sign up-->
  282. \t\t<section class=\"sign-up-page-section\">
  283. \t\t\t<div class=\"row\">
  284. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
  285. \t\t\t\t\t<div class=\"overlay\"></div>
  286. \t\t\t\t\t<img src=\"/static/assets/images/Login_Desktop (2).jpg\" class=\"img-fluid w-100\" alt=\"Login Desktop image\">
  287. \t\t\t\t</div>
  288. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
  289. \t\t\t\t\t<div class=\"overlay\"></div>
  290. \t\t\t\t\t<img src=\"/static/assets/images/Login_Mobile (2).jpg\" class=\"img-fluid w-100\" alt=\"Login mobile image\">
  291. \t\t\t\t</div>
  292. \t\t\t\t<div class=\"start-training-info sign-up-page-form login-page-form col-xl-5\">
  293. \t\t\t\t\t<h1 class=\"h2 text-center mb-4\">{{'Login'|trans}}</h1>
  294. \t\t\t\t\t{% for flashMessage in app.session.flashbag.get('error') %}
  295. \t\t\t\t\t\t<span class=\"msg-signup text-danger\">
  296. \t\t\t\t\t\t\t{{ flashMessage }}
  297. \t\t\t\t\t\t</span>
  298. \t\t\t\t\t{% endfor %}
  299. \t\t\t\t\t<form method=\"post\" action=\"/login\">
  300. \t\t\t\t\t\t<ul
  301. \t\t\t\t\t\t\tclass=\"nav nav-pills nav-fill mt-3\"><!-- <li class=\"nav-item login-btn\">
  302. \t\t\t\t\t\t\t\t\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>
  303. \t\t\t\t\t\t\t\t\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>
  304. \t\t\t\t\t\t\t\t\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\">
  305. \t\t\t\t\t\t\t\t\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>
  306. \t\t\t\t\t\t\t\t\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> -->
  307. \t\t\t\t\t\t</ul>
  308. \t\t\t\t\t\t<div class=\"form-group\">
  309. \t\t\t\t\t\t\t<input required type=\"text\" name=\"email\" class=\"form-control\" id=\"iEmail\" placeholder=\"{{'Email'|trans}}\">
  310. \t\t\t\t\t\t\t<span class=\"email-error text-danger\"></span>
  311. \t\t\t\t\t\t</div>
  312. \t\t\t\t\t\t<div class=\"form-group mb-2\">
  313. \t\t\t\t\t\t\t<input required type=\"password\" name=\"password\" class=\"form-control\" id=\"iPass\" placeholder=\"{{'Password'|trans}}\">
  314. \t\t\t\t\t\t\t<span class=\"error text-danger\"></span>
  315. \t\t\t\t\t\t</div>
  316. \t\t\t\t\t\t<div class=\"form-group forget-text\">
  317. \t\t\t\t\t\t\t<a class=\"forget-text\" href=\"/{{app.request.locale}}/forgot-password\">{{'Forgot Password?'|trans}}</a>
  318. \t\t\t\t\t\t</div>
  319. \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\">
  320. \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\">
  321. \t\t\t\t\t\t\t\t<g id=\"Group_188\" data-name=\"Group 188\" transform=\"translate(1.5 1.5)\">
  322. \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\"/>
  323. \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)\">
  324. \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\"/>
  325. \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\"/>
  326. \t\t\t\t\t\t\t\t\t</g>
  327. \t\t\t\t\t\t\t\t</g>
  328. \t\t\t\t\t\t\t</svg>
  329. \t\t\t\t\t\t\t{{'LOGIN'|trans}}
  330. \t\t\t\t\t\t</button>
  331. \t\t\t\t\t\t<p>{{\"Don't have an account?\"|trans}}
  332. \t\t\t\t\t\t\t<br>
  333. \t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/signup\">{{'Sign Up Now'|trans}}</a>
  334. \t\t\t\t\t\t</p>
  335. \t\t\t\t\t\t{# <p class=\"or-text\">Or</p>
  336. \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\">
  337. \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\">
  338. \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\">
  339. \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
  340. \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>
  341. \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>
  342. \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>
  343. \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>
  344. \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>
  345. \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\">
  346. \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\">
  347. \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\">
  348. \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>
  349. \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>
  350. \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>
  351. \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) {
  352. \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());
  353. \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());
  354. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  355. \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();
  356. \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();
  357. \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();
  358. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  359. \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 = 
  360. \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({
  361. \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',
  362. \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\",
  363. \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',
  364. \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},
  365. \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) 
  366. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                    {
  367. \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);
  368. \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\"){
  369. \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}}/\"
  370. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                        }
  371. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                            
  372. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                    }
  373. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                });
  374. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                            }
  375. \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) {
  376. \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);
  377. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                            }
  378. \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() {
  379. \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', {
  380. \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',
  381. \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,
  382. \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,
  383. \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,
  384. \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',
  385. \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,
  386. \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
  387. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                                });
  388. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                            }
  389. \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>
  390. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  391. \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>
  392. \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>
  393. \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>
  394. \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> #}
  395. \t\t\t\t\t</form>
  396. \t\t\t\t</div>
  397. \t\t\t</div>
  398. \t\t</section>
  399. \t\t<!--End Sign up-->
  400. \t</div>
  401. \t<!--End Wrapper-->
  402. \t<style>
  403. \t\t.form-control {
  404. \t\t\tcolor: #495057 !important;
  405. \t\t}
  406. \t</style>
  407. \t<script>
  408. \t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
  409. let password = \$('#iPass').val();
  410. let email = \$('#iEmail').val();
  411. if (password == '') {
  412. event.preventDefault();
  413. \$('.error').text(\"{{ 'Enter password'|trans }}\");
  414. } else if (password.length < 8) {
  415. event.preventDefault();
  416. \$('.error').text(\"{{ 'Password incorrect'|trans }}\");
  417. } else if (email == '') {
  418. event.preventDefault();
  419. \$('.email-error').text(\"{{ 'Enter Email Address'|trans }}\");
  420. } else {
  421. \$('.error').text('');
  422. \$('.email-error').text('');
  423. }
  424. });
  425. \t</script>
  426. \t{% if (app.request.locale =='ar') %}
  427. \t\t{% set topMenu =\"/en/signin\" %}
  428. \t{% else %}
  429. \t\t{% set topMenu =\"/ar/signin\" %}
  430. \t{% endif %}
  431. \t<script>
  432. \t\tvar _TopMenuLink = \"{{ topMenu }}\";
  433. \t</script>
  434. {% endblock %}
  435. ""content/signin.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/content/signin.html.twig");
  436.     }
  437. }