<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Security/login.html.twig */
class __TwigTemplate_3191951e7c9901781ab19a1d693c09e9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layouts/login.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
$this->parent = $this->loadTemplate("Layouts/login.html.twig", "Security/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__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"));
// line 4
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.title"), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 7
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 8
echo " ";
echo $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 py-10 fv-plugins-bootstrap5 fv-plugins-framework", "id" => "kt_login_form", "novalidate" => "novalidate"]]);
// line 14
echo "
<div class=\"text-center mb-11\">
<a href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_dashboard");
echo "\">
<img alt=\"Logo\" src=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/media/logos/popina-order-icon.png"), "html", null, true);
echo "\" class=\"h-100px\"/>
</a>
<h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">
";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.title"), "html", null, true);
echo "
</h1>
<div class=\"text-gray-500 fw-semibold fs-6\">
";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.form.legend"), "html", null, true);
echo "
</div>
</div>
<div class=\"row g-3 mb-9\">
<div class=\"col-md-12\">
";
// line 30
$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.', 30, $this->source); })()), "flashes", [0 => "verify_email_error"], "method", false, false, false, 30), 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.', 30, $this->source); })()), "flashes", [0 => "account_locked"], "method", false, false, false, 30)), 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.', 30, $this->source); })()), "flashes", [0 => "danger"], "method", false, false, false, 30));
// line 31
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["flashes"]) || array_key_exists("flashes", $context) ? $context["flashes"] : (function () { throw new RuntimeError('Variable "flashes" does not exist.', 31, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
// line 32
echo " <div class=\"alert alert-danger text-center\">";
echo twig_escape_filter($this->env, $context["flash"], "html", null, true);
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </div>
<div class=\"col-md-12\">
<a href=\"";
// line 37
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_connect_google");
echo "\" class=\"btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100\">
<img alt=\"Logo\" src=\"";
// line 38
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", null, true);
echo "\" class=\"h-15px me-3\"/>
";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.google"), "html", null, true);
echo "
</a>
</div>
</div>
<div class=\"separator separator-content my-14\">
<span class=\"w-125px text-gray-500 fw-semibold fs-7\">";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.email"), "html", null, true);
echo "</span>
</div>
<div class=\"fv-row mb-8\">
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($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');
echo "
</div>
<div class=\"fv-row mb-3 position-relative\">
";
// line 53
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($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');
echo "
<span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
<i class=\"fas fa-eye text-muted password-icon\"></i>
</span>
";
// line 59
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($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');
echo "
</div>
";
// line 62
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 62, $this->source); })())) {
// line 63
echo " <div class=\"alert alert-danger text-center\">
";
// line 64
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.', 64, $this->source); })()), "messageKey", [], "any", false, false, false, 64), 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.', 64, $this->source); })()), "messageData", [], "any", false, false, false, 64), "security"), "html", null, true);
echo "
</div>
";
}
// line 67
echo "
<div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
<div></div>
<a href=\"";
// line 70
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("foxorders_security_reset_password_request");
echo "\" class=\"link-primary\">
";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.password.forgot_password"), "html", null, true);
echo "
</a>
</div>
<div class=\"d-grid mb-10\">
";
// line 76
$this->loadTemplate("Includes/Form/submit.html.twig", "Security/login.html.twig", 76)->display(twig_array_merge($context, ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.user.login.buttons.login"), "icon" => "sign-in"]));
// line 80
echo " </div>
<div class=\"text-center\">
<div class=\"text-gray-500 fw-semibold fs-6\">
Server: <b>";
// line 84
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.', 84, $this->source); })()), "html", null, true);
echo "</b> | Env: <b>";
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.', 84, $this->source); })()), "html", null, true);
echo "</b> | Version: <b>";
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.', 84, $this->source); })()), "html", null, true);
echo "</b>
</div>
</div>
";
// line 88
echo $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');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 91
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 92
echo " <script>
var translations = {
'empty': '";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.required"), "html", null, true);
echo "',
'valid': '";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.global.validation.user.email.invalid"), "html", null, true);
echo "',
}
</script>
<script src=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/password.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("foxorders/js/validation/rules/security/login.js"), "html", null, true);
echo "\"></script>
";
// line 100
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
public function getTemplateName()
{
return "Security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 305 => 100, 301 => 99, 297 => 98, 291 => 95, 287 => 94, 283 => 92, 270 => 91, 255 => 88, 244 => 84, 238 => 80, 236 => 76, 228 => 71, 224 => 70, 219 => 67, 213 => 64, 210 => 63, 208 => 62, 202 => 59, 193 => 53, 186 => 49, 179 => 45, 170 => 39, 166 => 38, 162 => 37, 157 => 34, 148 => 32, 143 => 31, 141 => 30, 132 => 24, 126 => 21, 120 => 18, 116 => 17, 111 => 14, 108 => 8, 95 => 7, 79 => 4, 66 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layouts/login.html.twig' %}
{% block title %}
{{ 'app.global.user.login.title'|trans }}
{% endblock %}
{% block body %}
{{ form_start(form, {
'attr': {
'class': 'kt-fx-form mx-auto w-100 py-10 fv-plugins-bootstrap5 fv-plugins-framework',
'id': 'kt_login_form',
'novalidate': 'novalidate'
}
}) }}
<div class=\"text-center mb-11\">
<a href=\"{{ path('foxorders_dashboard') }}\">
<img alt=\"Logo\" src=\"{{ asset('foxorders/media/logos/popina-order-icon.png') }}\" class=\"h-100px\"/>
</a>
<h1 class=\"text-dark fw-bolder mb-3\" style=\"padding-top: 30px !important;\">
{{ 'app.global.user.login.form.title'|trans }}
</h1>
<div class=\"text-gray-500 fw-semibold fs-6\">
{{ 'app.global.user.login.form.legend'|trans }}
</div>
</div>
<div class=\"row g-3 mb-9\">
<div class=\"col-md-12\">
{% set flashes = app.flashes('verify_email_error')|merge(app.flashes('account_locked'))|merge(app.flashes('danger')) %}
{% for flash in flashes %}
<div class=\"alert alert-danger text-center\">{{ flash }}</div>
{% endfor %}
</div>
<div class=\"col-md-12\">
<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\">
<img alt=\"Logo\" src=\"{{ asset('metronic/v8.1.5/media/svg/brand-logos/google-icon.svg') }}\" class=\"h-15px me-3\"/>
{{ 'app.global.user.login.buttons.google'|trans }}
</a>
</div>
</div>
<div class=\"separator separator-content my-14\">
<span class=\"w-125px text-gray-500 fw-semibold fs-7\">{{ 'app.global.user.login.buttons.email'|trans }}</span>
</div>
<div class=\"fv-row mb-8\">
{{ form_row(form.username) }}
</div>
<div class=\"fv-row mb-3 position-relative\">
{{ form_widget(form.password) }}
<span class=\"position-absolute top-50 end-0 translate-middle-y me-10 cursor-pointer toggle-password-visibility\">
<i class=\"fas fa-eye text-muted password-icon\"></i>
</span>
{{ form_errors(form.password) }}
</div>
{% if error %}
<div class=\"alert alert-danger text-center\">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<div class=\"d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8\">
<div></div>
<a href=\"{{ path('foxorders_security_reset_password_request') }}\" class=\"link-primary\">
{{ 'app.global.user.password.forgot_password'|trans }}
</a>
</div>
<div class=\"d-grid mb-10\">
{% include 'Includes/Form/submit.html.twig' with {
'text' : 'app.global.user.login.buttons.login'|trans,
'icon' : 'sign-in'
} %}
</div>
<div class=\"text-center\">
<div class=\"text-gray-500 fw-semibold fs-6\">
Server: <b>{{ foxorders_server }}</b> | Env: <b>{{ foxorders_env }}</b> | Version: <b>{{ foxorders_version }}</b>
</div>
</div>
{{ form_end(form) }}
{% endblock %}
{% block javascripts %}
<script>
var translations = {
'empty': '{{ 'app.global.validation.required' | trans }}',
'valid': '{{ 'app.global.validation.user.email.invalid' | trans }}',
}
</script>
<script src=\"{{ asset('foxorders/js/password.js') }}\"></script>
<script src=\"{{ asset('foxorders/js/validation/rules/security/login.js') }}\"></script>
{{ parent() }}
{% endblock %}
", "Security/login.html.twig", "/var/www/html/templates/Security/login.html.twig");
}
}