var/cache/dev/twig/5c/5c3745576ec9caf48c414193252bb34f.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Security/login.html.twig */
  14. class __TwigTemplate_4315d9d22601d18f562c44bad4e0e6f3 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "Layouts/login.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Security/login.html.twig"));
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Security/login.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Security/login.html.twig"));
  42.         $this->parent $this->loadTemplate("Layouts/login.html.twig""Security/login.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         // line 4
  62.         echo "\t";
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.title"), "html"nulltrue);
  64.         echo "
  65. ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         
  71.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  72.     }
  73.     // line 7
  74.     public function block_body($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  78.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 8
  84.         echo "\t<form method=\"POST\" action=\"";
  85.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_login");
  86.         echo "\" class=\"kt-fx-form mx-auto w-100 py-10 fv-plugins-bootstrap5 fv-plugins-framework\" novalidate=\"novalidate\" id=\"kt_login_form\">
  87. \t\t<div class=\"text-center mb-11\">
  88. \t\t\t<a href=\"";
  89.         // line 10
  90.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_dashboard");
  91.         echo "\">
  92. \t\t\t\t<img alt=\"Logo\" src=\"";
  93.         // line 11
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/media/logos/popina-order-icon.png"), "html"nulltrue);
  95.         echo "\" class=\"h-100px\"/>
  96. \t\t\t</a>
  97. \t\t\t<h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">";
  98.         // line 13
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.title"), "html"nulltrue);
  100.         echo "</h1>
  101. \t\t\t<div class=\"text-gray-500 fw-semibold fs-6\">";
  102.         // line 14
  103.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.legend"), "html"nulltrue);
  104.         echo "</div>
  105. \t\t</div>
  106. \t\t<div class=\"row g-3 mb-9\">
  107. \t\t\t<div class=\"col-md-12\">
  108. \t\t\t\t";
  109.         // line 18
  110.         $context["flashes"] = twig_array_merge(twig_array_merge(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "flashes", [=> "verify_email_error"], "method"falsefalsefalse18), twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "flashes", [=> "account_locked"], "method"falsefalsefalse18)), twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "flashes", [=> "danger"], "method"falsefalsefalse18));
  111.         // line 19
  112.         echo "\t\t\t\t";
  113.         $context['_parent'] = $context;
  114.         $context['_seq'] = twig_ensure_traversable((isset($context["flashes"]) || array_key_exists("flashes"$context) ? $context["flashes"] : (function () { throw new RuntimeError('Variable "flashes" does not exist.'19$this->source); })()));
  115.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  116.             // line 20
  117.             echo "\t\t\t\t\t<div class=\"alert alert-danger text-center\">";
  118.             echo twig_escape_filter($this->env$context["flash"], "html"nulltrue);
  119.             echo "</div>
  120. \t\t\t\t";
  121.         }
  122.         $_parent $context['_parent'];
  123.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  124.         $context array_intersect_key($context$_parent) + $_parent;
  125.         // line 22
  126.         echo "\t\t\t</div>
  127. \t\t\t<div class=\"col-md-12\">
  128. \t\t\t\t<a href=\"";
  129.         // line 24
  130.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_connect_google");
  131.         echo "\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
  132. \t\t\t\t\t<img alt=\"Logo\" src=\"";
  133.         // line 25
  134.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("metronic/v8.1.5/media/svg/brand-logos/google-icon.svg"), "html"nulltrue);
  135.         echo "\" class=\"h-15px me-3\"/>
  136. \t\t\t\t\t";
  137.         // line 26
  138.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.google"), "html"nulltrue);
  139.         echo "
  140. \t\t\t\t</a>
  141. \t\t\t</div>
  142. \t\t\t";
  143.         // line 35
  144.         echo "\t\t</div>
  145. \t\t<div class=\"separator separator-content my-14\">
  146. \t\t\t<span class=\"w-125px text-gray-500 fw-semibold fs-7\">";
  147.         // line 37
  148.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.email"), "html"nulltrue);
  149.         echo "</span>
  150. \t\t</div>
  151. \t\t<div class=\"fv-row mb-8\">
  152. \t\t\t<input type=\"text\" placeholder=\"";
  153.         // line 40
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.placeholder.username"), "html"nulltrue);
  155.         echo "\" name=\"_username\" value=\"";
  156.         echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'40$this->source); })()), "html"nulltrue);
  157.         echo "\" autocomplete=\"off\" class=\"form-control bg-transparent\"/>
  158. \t\t</div>
  159. \t\t<div class=\"fv-row mb-3 position-relative\">
  160. \t\t\t<input type=\"password\" id=\"password-field\" placeholder=\"";
  161.         // line 43
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.placeholder.password"), "html"nulltrue);
  163.         echo "\" name=\"_password\" autocomplete=\"off\" class=\"form-control bg-transparent pr-40 password-input\"/>
  164. \t\t\t<span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
  165. \t\t\t\t<i class=\"fas fa-eye text-muted password-icon\"></i>
  166. \t\t\t</span>
  167. \t\t</div>
  168. \t\t";
  169.         // line 48
  170.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'48$this->source); })())) {
  171.             // line 49
  172.             echo "\t\t\t<div class=\"col-md-12\">
  173. \t\t\t\t<div class=\"alert alert-danger text-center\">
  174. \t\t\t\t\t";
  175.             // line 51
  176.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'51$this->source); })()), "messageKey", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'51$this->source); })()), "messageData", [], "any"falsefalsefalse51), "security"), "html"nulltrue);
  177.             echo "
  178. \t\t\t\t</div>
  179. \t\t\t</div>
  180. \t\t";
  181.         }
  182.         // line 55
  183.         echo "\t\t<div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
  184. \t\t\t<div></div>
  185. \t\t\t<a href=\"";
  186.         // line 57
  187.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_reset_password_request");
  188.         echo "\" class=\"link-primary\">";
  189.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.password.forgot_password"), "html"nulltrue);
  190.         echo "</a>
  191. \t\t</div>
  192. \t\t<div class=\"d-grid mb-10\">
  193. \t\t\t";
  194.         // line 60
  195.         $this->loadTemplate("Includes/Form/submit.html.twig""Security/login.html.twig"60)->display(twig_array_merge($context, ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.login"), "icon" => "sign-in"]));
  196.         // line 61
  197.         echo "\t\t</div>
  198. \t\t<div class=\"text-center\">
  199. \t\t\t<div class=\"text-gray-500 fw-semibold fs-6\">
  200. \t\t\t\tServer: <b>";
  201.         // line 64
  202.         echo twig_escape_filter($this->env, (isset($context["foxorders_server"]) || array_key_exists("foxorders_server"$context) ? $context["foxorders_server"] : (function () { throw new RuntimeError('Variable "foxorders_server" does not exist.'64$this->source); })()), "html"nulltrue);
  203.         echo "</b> | Env: <b>";
  204.         echo twig_escape_filter($this->env, (isset($context["foxorders_env"]) || array_key_exists("foxorders_env"$context) ? $context["foxorders_env"] : (function () { throw new RuntimeError('Variable "foxorders_env" does not exist.'64$this->source); })()), "html"nulltrue);
  205.         echo "</b> | Version: <b>";
  206.         echo twig_escape_filter($this->env, (isset($context["foxorders_version"]) || array_key_exists("foxorders_version"$context) ? $context["foxorders_version"] : (function () { throw new RuntimeError('Variable "foxorders_version" does not exist.'64$this->source); })()), "html"nulltrue);
  207.         echo "</b>
  208. \t\t\t</div>
  209. \t\t</div>
  210. \t</form>
  211. ";
  212.         
  213.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  214.         
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  216.         
  217.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  218.     }
  219.     // line 70
  220.     public function block_javascripts($context, array $blocks = [])
  221.     {
  222.         $macros $this->macros;
  223.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  224.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  226.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  229.         // line 71
  230.         echo "\t<script>
  231. \t\tvar translations = {
  232. \t\t\t'empty': '";
  233.         // line 73
  234.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.required"), "html"nulltrue);
  235.         echo "',
  236. \t\t\t'valid': '";
  237.         // line 74
  238.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.user.email.invalid"), "html"nulltrue);
  239.         echo "',
  240. \t\t}
  241. \t</script>
  242. \t<script src=\"";
  243.         // line 77
  244.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/password.js"), "html"nulltrue);
  245.         echo "\"></script>
  246. \t<script src=\"";
  247.         // line 78
  248.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/validation/rules/security/login.js"), "html"nulltrue);
  249.         echo "\"></script>
  250. \t";
  251.         // line 79
  252.         $this->displayParentBlock("javascripts"$context$blocks);
  253.         echo "
  254. ";
  255.         
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  257.         
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  259.         
  260.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  261.     }
  262.     public function getTemplateName()
  263.     {
  264.         return "Security/login.html.twig";
  265.     }
  266.     public function isTraitable()
  267.     {
  268.         return false;
  269.     }
  270.     public function getDebugInfo()
  271.     {
  272.         return array (  283 => 79,  279 => 78,  275 => 77,  269 => 74,  265 => 73,  261 => 71,  248 => 70,  226 => 64,  221 => 61,  219 => 60,  211 => 57,  207 => 55,  200 => 51,  196 => 49,  194 => 48,  186 => 43,  178 => 40,  172 => 37,  168 => 35,  162 => 26,  158 => 25,  154 => 24,  150 => 22,  141 => 20,  136 => 19,  134 => 18,  127 => 14,  123 => 13,  118 => 11,  114 => 10,  108 => 8,  95 => 7,  79 => 4,  66 => 3,  37 => 1,);
  273.     }
  274.     public function getSourceContext()
  275.     {
  276.         return new Source("{% extends 'Layouts/login.html.twig' %}
  277. {% block title %}
  278. \t{{ 'app.global.user.login.title'|trans }}
  279. {% endblock %}
  280. {% block body %}
  281. \t<form method=\"POST\" action=\"{{ path('security_login') }}\" class=\"kt-fx-form mx-auto w-100 py-10 fv-plugins-bootstrap5 fv-plugins-framework\" novalidate=\"novalidate\" id=\"kt_login_form\">
  282. \t\t<div class=\"text-center mb-11\">
  283. \t\t\t<a href=\"{{ path('foxorders_dashboard') }}\">
  284. \t\t\t\t<img alt=\"Logo\" src=\"{{asset('foxorders/media/logos/popina-order-icon.png')}}\" class=\"h-100px\"/>
  285. \t\t\t</a>
  286. \t\t\t<h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">{{ 'app.global.user.login.form.title'|trans }}</h1>
  287. \t\t\t<div class=\"text-gray-500 fw-semibold fs-6\">{{ 'app.global.user.login.form.legend'|trans }}</div>
  288. \t\t</div>
  289. \t\t<div class=\"row g-3 mb-9\">
  290. \t\t\t<div class=\"col-md-12\">
  291. \t\t\t\t{% set flashes = app.flashes('verify_email_error')|merge(app.flashes('account_locked'))|merge(app.flashes('danger')) %}
  292. \t\t\t\t{% for flash in flashes %}
  293. \t\t\t\t\t<div class=\"alert alert-danger text-center\">{{ flash }}</div>
  294. \t\t\t\t{% endfor %}
  295. \t\t\t</div>
  296. \t\t\t<div class=\"col-md-12\">
  297. \t\t\t\t<a href=\"{{ path('foxorders_security_connect_google') }}\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
  298. \t\t\t\t\t<img alt=\"Logo\" src=\"{{ asset('metronic/v8.1.5/media/svg/brand-logos/google-icon.svg') }}\" class=\"h-15px me-3\"/>
  299. \t\t\t\t\t{{ 'app.global.user.login.buttons.google'|trans }}
  300. \t\t\t\t</a>
  301. \t\t\t</div>
  302. \t\t\t{# <div class=\"col-md-12\">
  303. \t\t\t\t<a href=\"{{ path('security_social_login', {'client': 'facebook'}) }}\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
  304. \t\t\t\t\t<img alt=\"Logo\" src=\"{{ asset('metronic/v8.1.5/media/svg/brand-logos/facebook-3.svg') }}\" class=\"theme-light-show h-15px me-3\"/>
  305. \t\t\t\t\t{{ 'app.global.user.login.buttons.facebook'|trans }}
  306. \t\t\t\t</a>
  307. \t\t\t</div> #}
  308. \t\t</div>
  309. \t\t<div class=\"separator separator-content my-14\">
  310. \t\t\t<span class=\"w-125px text-gray-500 fw-semibold fs-7\">{{ 'app.global.user.login.buttons.email'|trans }}</span>
  311. \t\t</div>
  312. \t\t<div class=\"fv-row mb-8\">
  313. \t\t\t<input type=\"text\" placeholder=\"{{ 'app.global.user.login.form.placeholder.username'|trans }}\" name=\"_username\" value=\"{{ last_username }}\" autocomplete=\"off\" class=\"form-control bg-transparent\"/>
  314. \t\t</div>
  315. \t\t<div class=\"fv-row mb-3 position-relative\">
  316. \t\t\t<input type=\"password\" id=\"password-field\" placeholder=\"{{ 'app.global.user.login.form.placeholder.password'|trans }}\" name=\"_password\" autocomplete=\"off\" class=\"form-control bg-transparent pr-40 password-input\"/>
  317. \t\t\t<span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
  318. \t\t\t\t<i class=\"fas fa-eye text-muted password-icon\"></i>
  319. \t\t\t</span>
  320. \t\t</div>
  321. \t\t{% if error %}
  322. \t\t\t<div class=\"col-md-12\">
  323. \t\t\t\t<div class=\"alert alert-danger text-center\">
  324. \t\t\t\t\t{{ error.messageKey|trans(error.messageData, 'security') }}
  325. \t\t\t\t</div>
  326. \t\t\t</div>
  327. \t\t{% endif %}
  328. \t\t<div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
  329. \t\t\t<div></div>
  330. \t\t\t<a href=\"{{ path('foxorders_security_reset_password_request') }}\" class=\"link-primary\">{{ 'app.global.user.password.forgot_password'|trans }}</a>
  331. \t\t</div>
  332. \t\t<div class=\"d-grid mb-10\">
  333. \t\t\t{% include 'Includes/Form/submit.html.twig'  with { 'text' : 'app.global.user.login.buttons.login'|trans, 'icon' : 'sign-in' } %}
  334. \t\t</div>
  335. \t\t<div class=\"text-center\">
  336. \t\t\t<div class=\"text-gray-500 fw-semibold fs-6\">
  337. \t\t\t\tServer: <b>{{ foxorders_server }}</b> | Env: <b>{{ foxorders_env }}</b> | Version: <b>{{ foxorders_version }}</b>
  338. \t\t\t</div>
  339. \t\t</div>
  340. \t</form>
  341. {% endblock %}
  342. {% block javascripts %}
  343. \t<script>
  344. \t\tvar translations = {
  345. \t\t\t'empty': '{{ 'app.global.validation.required' | trans }}',
  346. \t\t\t'valid': '{{ 'app.global.validation.user.email.invalid' | trans }}',
  347. \t\t}
  348. \t</script>
  349. \t<script src=\"{{ asset('foxorders/js/password.js') }}\"></script>
  350. \t<script src=\"{{ asset('foxorders/js/validation/rules/security/login.js') }}\"></script>
  351. \t{{ parent() }}
  352. {% endblock %}
  353. ""Security/login.html.twig""/var/www/html/templates/Security/login.html.twig");
  354.     }
  355. }