var/cache/dev/twig/eb/ebf47cb9d9fbcea3b9c367065df73cbb.php line 58

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. /* Security/login.html.twig */
  16. class __TwigTemplate_0d30622872bbfb59001ea97cdbfa37ff 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.             'body' => [$this, 'block_body'],
  30.             'javascripts' => [$this, 'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "Layouts/login.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros = $this->macros;
  41.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  42.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
  47.         $this->parent = $this->load("Layouts/login.html.twig", 1);
  48.         yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  49.         
  50.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 3
  57.     /**
  58.      * @return iterable<null|scalar|\Stringable>
  59.      */
  60.     public function block_title(array $context, array $blocks = []): iterable
  61.     {
  62.         $macros = $this->macros;
  63.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  64.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  69.         // line 4
  70.         yield "    ";
  71.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.title"), "html", null, true);
  72.         yield "
  73. ";
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.         
  79.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  80.         yield from [];
  81.     }
  82.     // line 7
  83.     /**
  84.      * @return iterable<null|scalar|\Stringable>
  85.      */
  86.     public function block_body(array $context, array $blocks = []): iterable
  87.     {
  88.         $macros = $this->macros;
  89.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  90.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  95.         // line 8
  96.         yield "    ";
  97.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 8, $this->source); })()), 'form_start', ["attr" => ["class" => "kt-fx-form mx-auto w-100 pt-10 pb-8 fv-plugins-bootstrap5 fv-plugins-framework", "id" => "kt_login_form", "novalidate" => "novalidate"]]);
  98.         // line 14
  99.         yield "
  100.         
  101.         <div class=\"text-center mb-11\">
  102.             <a href=\"";
  103.         // line 17
  104.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_dashboard");
  105.         yield "\">
  106.                 <img alt=\"Logo\" src=\"";
  107.         // line 18
  108.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/media/logos/popina-order-icon.png"), "html", null, true);
  109.         yield "\" class=\"h-100px\"/>
  110.             </a>
  111.             <h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">
  112.                 ";
  113.         // line 21
  114.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.title"), "html", null, true);
  115.         yield "
  116.             </h1>
  117.             <div class=\"text-gray-500 fw-semibold fs-6\">
  118.                 ";
  119.         // line 24
  120.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.legend"), "html", null, true);
  121.         yield "
  122.             </div>
  123.         </div>
  124.         <div class=\"row g-3 mb-9\">
  125.             <div class=\"col-md-12\">
  126.                 ";
  127.         // line 30
  128.         $context["flashes"] = Twig\Extension\CoreExtension::merge(Twig\Extension\CoreExtension::merge(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.', 30, $this->source); })()), "flashes", ["verify_email_error"], "method", false, false, false, 30), 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.', 30, $this->source); })()), "flashes", ["account_locked"], "method", false, false, false, 30)), 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.', 30, $this->source); })()), "flashes", ["danger"], "method", false, false, false, 30));
  129.         // line 31
  130.         yield "                ";
  131.         $context['_parent'] = $context;
  132.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["flashes"]) || array_key_exists("flashes", $context) ? $context["flashes"] : (function () { throw new RuntimeError('Variable "flashes" does not exist.', 31, $this->source); })()));
  133.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  134.             // line 32
  135.             yield "                    <div class=\"alert alert-danger text-center\">";
  136.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html", null, true);
  137.             yield "</div>
  138.                 ";
  139.         }
  140.         $_parent = $context['_parent'];
  141.         unset($context['_seq'], $context['_key'], $context['flash'], $context['_parent']);
  142.         $context = array_intersect_key($context, $_parent) + $_parent;
  143.         // line 34
  144.         yield "            </div>
  145.             <div class=\"col-md-12\">
  146.                 <a href=\"";
  147.         // line 37
  148.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_connect_google");
  149.         yield "\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
  150.                     <img alt=\"Logo\" src=\"";
  151.         // line 38
  152.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("metronic/v8.1.5/media/svg/brand-logos/google-icon.svg"), "html", null, true);
  153.         yield "\" class=\"h-15px me-3\"/>
  154.                     ";
  155.         // line 39
  156.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.google"), "html", null, true);
  157.         yield "
  158.                 </a>
  159.             </div>
  160.         </div>
  161.         <div class=\"separator separator-content my-14\">
  162.             <span class=\"w-125px text-gray-500 fw-semibold fs-7\">";
  163.         // line 45
  164.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.email"), "html", null, true);
  165.         yield "</span>
  166.         </div>
  167.         <div class=\"fv-row mb-8\">
  168.             ";
  169.         // line 49
  170.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 49, $this->source); })()), "username", [], "any", false, false, false, 49), 'row');
  171.         yield "
  172.         </div>
  173.         <div class=\"fv-row mb-3 position-relative\">
  174.             ";
  175.         // line 53
  176.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 53, $this->source); })()), "password", [], "any", false, false, false, 53), 'widget');
  177.         yield "
  178.             <span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
  179.                 <i class=\"fas fa-eye text-muted password-icon\"></i>
  180.             </span>
  181.             ";
  182.         // line 59
  183.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 59, $this->source); })()), "password", [], "any", false, false, false, 59), 'errors');
  184.         yield "
  185.         </div>
  186.         ";
  187.         // line 62
  188.         if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 62, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  189.             // line 63
  190.             yield "            <div class=\"alert alert-danger text-center\">
  191.                 ";
  192.             // line 64
  193.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 64, $this->source); })()), "messageKey", [], "any", false, false, false, 64), CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 64, $this->source); })()), "messageData", [], "any", false, false, false, 64), "security"), "html", null, true);
  194.             yield "
  195.             </div>
  196.         ";
  197.         }
  198.         // line 67
  199.         yield "
  200.         <div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
  201.             <div></div>
  202.             <a href=\"";
  203.         // line 70
  204.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_reset_password_request");
  205.         yield "\" class=\"link-primary\">
  206.                 ";
  207.         // line 71
  208.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.password.forgot_password"), "html", null, true);
  209.         yield "
  210.             </a>
  211.         </div>
  212.         <div class=\"d-grid mb-10\">
  213.             ";
  214.         // line 76
  215.         yield from $this->load("Includes/Form/submit.html.twig", 76)->unwrap()->yield(CoreExtension::merge($context, ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.login"), "icon" => "sign-in"]));
  216.         // line 80
  217.         yield "        </div>
  218.         <div class=\"text-center\">
  219.             <div class=\"text-gray-500 fw-semibold fs-6\">
  220.                 Server: <b>";
  221.         // line 84
  222.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["foxorders_server"]) || array_key_exists("foxorders_server", $context) ? $context["foxorders_server"] : (function () { throw new RuntimeError('Variable "foxorders_server" does not exist.', 84, $this->source); })()), "html", null, true);
  223.         yield "</b> | Env: <b>";
  224.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["foxorders_env"]) || array_key_exists("foxorders_env", $context) ? $context["foxorders_env"] : (function () { throw new RuntimeError('Variable "foxorders_env" does not exist.', 84, $this->source); })()), "html", null, true);
  225.         yield "</b> | Version: <b>";
  226.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["foxorders_version"]) || array_key_exists("foxorders_version", $context) ? $context["foxorders_version"] : (function () { throw new RuntimeError('Variable "foxorders_version" does not exist.', 84, $this->source); })()), "html", null, true);
  227.         yield "</b>
  228.             </div>
  229.         </div>
  230.     ";
  231.         // line 88
  232.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 88, $this->source); })()), 'form_end');
  233.         yield "
  234. ";
  235.         
  236.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  237.         
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  239.         
  240.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  241.         yield from [];
  242.     }
  243.     // line 91
  244.     /**
  245.      * @return iterable<null|scalar|\Stringable>
  246.      */
  247.     public function block_javascripts(array $context, array $blocks = []): iterable
  248.     {
  249.         $macros = $this->macros;
  250.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  251.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  253.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  254.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  255.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  256.         // line 92
  257.         yield "    <script>
  258.         var translations = {
  259.             \x27empty\x27: \x27";
  260.         // line 94
  261.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.required"), "html", null, true);
  262.         yield "\x27,
  263.             \x27valid\x27: \x27";
  264.         // line 95
  265.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.user.email.invalid"), "html", null, true);
  266.         yield "\x27,
  267.         }
  268.     </script>
  269.     <script src=\"";
  270.         // line 98
  271.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/password.js"), "html", null, true);
  272.         yield "\"></script>
  273.     <script src=\"";
  274.         // line 99
  275.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/validation/rules/security/login.js"), "html", null, true);
  276.         yield "\"></script>
  277.     ";
  278.         // line 100
  279.         yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  280.         yield "
  281. ";
  282.         
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.         
  287.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  288.         yield from [];
  289.     }
  290.     /**
  291.      * @codeCoverageIgnore
  292.      */
  293.     public function getTemplateName(): string
  294.     {
  295.         return "Security/login.html.twig";
  296.     }
  297.     /**
  298.      * @codeCoverageIgnore
  299.      */
  300.     public function isTraitable(): bool
  301.     {
  302.         return false;
  303.     }
  304.     /**
  305.      * @codeCoverageIgnore
  306.      */
  307.     public function getDebugInfo(): array
  308.     {
  309.         return array (  321 => 100,  317 => 99,  313 => 98,  307 => 95,  303 => 94,  299 => 92,  283 => 91,  267 => 88,  256 => 84,  250 => 80,  248 => 76,  240 => 71,  236 => 70,  231 => 67,  225 => 64,  222 => 63,  220 => 62,  214 => 59,  205 => 53,  198 => 49,  191 => 45,  182 => 39,  178 => 38,  174 => 37,  169 => 34,  160 => 32,  155 => 31,  153 => 30,  144 => 24,  138 => 21,  132 => 18,  128 => 17,  123 => 14,  120 => 8,  104 => 7,  87 => 4,  71 => 3,  42 => 1,);
  310.     }
  311.     public function getSourceContext(): Source
  312.     {
  313.         return new Source("{% extends \x27Layouts/login.html.twig\x27 %}
  314. {% block title %}
  315.     {{ \x27app.global.user.login.title\x27|trans }}
  316. {% endblock %}
  317. {% block body %}
  318.     {{ form_start(form, {
  319.         \x27attr\x27: {
  320.             \x27class\x27: \x27kt-fx-form mx-auto w-100 pt-10 pb-8 fv-plugins-bootstrap5 fv-plugins-framework\x27,
  321.             \x27id\x27: \x27kt_login_form\x27,
  322.             \x27novalidate\x27: \x27novalidate\x27
  323.         }
  324.     }) }}
  325.         
  326.         <div class=\"text-center mb-11\">
  327.             <a href=\"{{ path(\x27foxorders_dashboard\x27) }}\">
  328.                 <img alt=\"Logo\" src=\"{{ asset(\x27foxorders/media/logos/popina-order-icon.png\x27) }}\" class=\"h-100px\"/>
  329.             </a>
  330.             <h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">
  331.                 {{ \x27app.global.user.login.form.title\x27|trans }}
  332.             </h1>
  333.             <div class=\"text-gray-500 fw-semibold fs-6\">
  334.                 {{ \x27app.global.user.login.form.legend\x27|trans }}
  335.             </div>
  336.         </div>
  337.         <div class=\"row g-3 mb-9\">
  338.             <div class=\"col-md-12\">
  339.                 {% set flashes = app.flashes(\x27verify_email_error\x27)|merge(app.flashes(\x27account_locked\x27))|merge(app.flashes(\x27danger\x27)) %}
  340.                 {% for flash in flashes %}
  341.                     <div class=\"alert alert-danger text-center\">{{ flash }}</div>
  342.                 {% endfor %}
  343.             </div>
  344.             <div class=\"col-md-12\">
  345.                 <a href=\"{{ path(\x27foxorders_security_connect_google\x27) }}\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
  346.                     <img alt=\"Logo\" src=\"{{ asset(\x27metronic/v8.1.5/media/svg/brand-logos/google-icon.svg\x27) }}\" class=\"h-15px me-3\"/>
  347.                     {{ \x27app.global.user.login.buttons.google\x27|trans }}
  348.                 </a>
  349.             </div>
  350.         </div>
  351.         <div class=\"separator separator-content my-14\">
  352.             <span class=\"w-125px text-gray-500 fw-semibold fs-7\">{{ \x27app.global.user.login.buttons.email\x27|trans }}</span>
  353.         </div>
  354.         <div class=\"fv-row mb-8\">
  355.             {{ form_row(form.username) }}
  356.         </div>
  357.         <div class=\"fv-row mb-3 position-relative\">
  358.             {{ form_widget(form.password) }}
  359.             <span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
  360.                 <i class=\"fas fa-eye text-muted password-icon\"></i>
  361.             </span>
  362.             {{ form_errors(form.password) }}
  363.         </div>
  364.         {% if error %}
  365.             <div class=\"alert alert-danger text-center\">
  366.                 {{ error.messageKey|trans(error.messageData, \x27security\x27) }}
  367.             </div>
  368.         {% endif %}
  369.         <div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
  370.             <div></div>
  371.             <a href=\"{{ path(\x27foxorders_security_reset_password_request\x27) }}\" class=\"link-primary\">
  372.                 {{ \x27app.global.user.password.forgot_password\x27|trans }}
  373.             </a>
  374.         </div>
  375.         <div class=\"d-grid mb-10\">
  376.             {% include \x27Includes/Form/submit.html.twig\x27 with { 
  377.                 \x27text\x27 : \x27app.global.user.login.buttons.login\x27|trans, 
  378.                 \x27icon\x27 : \x27sign-in\x27 
  379.             } %}
  380.         </div>
  381.         <div class=\"text-center\">
  382.             <div class=\"text-gray-500 fw-semibold fs-6\">
  383.                 Server: <b>{{ foxorders_server }}</b> | Env: <b>{{ foxorders_env }}</b> | Version: <b>{{ foxorders_version }}</b>
  384.             </div>
  385.         </div>
  386.     {{ form_end(form) }}
  387. {% endblock %}
  388. {% block javascripts %}
  389.     <script>
  390.         var translations = {
  391.             \x27empty\x27: \x27{{ \x27app.global.validation.required\x27 | trans }}\x27,
  392.             \x27valid\x27: \x27{{ \x27app.global.validation.user.email.invalid\x27 | trans }}\x27,
  393.         }
  394.     </script>
  395.     <script src=\"{{ asset(\x27foxorders/js/password.js\x27) }}\"></script>
  396.     <script src=\"{{ asset(\x27foxorders/js/validation/rules/security/login.js\x27) }}\"></script>
  397.     {{ parent() }}
  398. {% endblock %}
  399. ", "Security/login.html.twig", "/var/www/html/foxorders/templates/Security/login.html.twig");
  400.     }
  401. }