<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @FOSUser/Security/login_content.html.twig */
class __TwigTemplate_e8844246cf778e3f7d3e8b9756eae10d extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Security/login_content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Security/login_content.html.twig"));
// line 2
yield "
";
// line 3
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 3, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 4
yield " <div class=\"alert alert-danger\">";
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.', 4, $this->source); })()), "messageKey", [], "any", false, false, false, 4), 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.', 4, $this->source); })()), "messageData", [], "any", false, false, false, 4), "security"), "html", null, true);
yield "</div>
";
}
// line 6
yield "
<form action=\"";
// line 7
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_check");
yield "\" method=\"post\">
";
// line 8
if ((($tmp = (isset($context["csrf_token"]) || array_key_exists("csrf_token", $context) ? $context["csrf_token"] : (function () { throw new RuntimeError('Variable "csrf_token" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 9
yield " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["csrf_token"]) || array_key_exists("csrf_token", $context) ? $context["csrf_token"] : (function () { throw new RuntimeError('Variable "csrf_token" does not exist.', 9, $this->source); })()), "html", null, true);
yield "\" />
";
}
// line 11
yield "
";
// line 12
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", ["_target_path"], "method", false, false, false, 12)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 13
yield " <input type=\"hidden\" name=\"_target_path\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "get", ["_target_path"], "method", false, false, false, 13), "html", null, true);
yield "\" />
";
}
// line 15
yield "
<div class=\"tw-mb-6\">
<label class=\"jlls-form-label\" for=\"username\">";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "FOSUserBundle"), "html", null, true);
yield "</label>
<input class=\"jlls-form-input\" type=\"text\" id=\"username\" name=\"_username\" value=\"";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 18, $this->source); })()), "html", null, true);
yield "\" required=\"required\" />
</div>
<div class=\"tw-mb-8\">
<div class=\"tw-flex tw-items-center tw-justify-between tw-mb-1\">
<label class=\"jlls-form-label tw-mb-0\" for=\"password\">";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "FOSUserBundle"), "html", null, true);
yield "</label>
<label class=\"jlls-form-checkbox-wrapper tw-mb-0\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" checked class=\"jlls-form-checkbox\" />
<span class=\"jlls-form-checkbox-label\">";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.remember_me", [], "FOSUserBundle"), "html", null, true);
yield "</span>
</label>
</div>
<div class=\"tw-relative\">
<input class=\"jlls-form-input !tw-pr-12\" type=\"password\" id=\"password\" name=\"_password\" required=\"required\" />
<button type=\"button\" class=\"tw-absolute tw-right-0 tw-top-0 tw-h-full tw-px-3 tw-flex tw-items-center tw-text-joboo-gray-400 hover:tw-text-joboo-gray-600 tw-transition-colors tw-bg-transparent tw-border-0 tw-cursor-pointer\">
<i class=\"fa fa-eye-slash\" id=\"showpassword\"></i>
</button>
</div>
</div>
<div class=\"tw-flex tw-items-center tw-gap-3 tw-flex-wrap tw-mt-8\">
<button type=\"submit\" class=\"jlls-button-tertiary\" id=\"_submit\" name=\"_submit\">";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "FOSUserBundle"), "html", null, true);
yield "</button>
<span> oder </span>
<a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-gap-2\"
href=\"";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["google_identity_service"]) || array_key_exists("google_identity_service", $context) ? $context["google_identity_service"] : (function () { throw new RuntimeError('Variable "google_identity_service" does not exist.', 43, $this->source); })()), "getLoginOAuth2TargetUrl", [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.', 43, $this->source); })()), "user", [], "any", false, false, false, 43)], "method", false, false, false, 43), "html", null, true);
yield "\"
>
<img width=\"20px\"
alt=\"Google sign-in\"
src=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->cdnifyUri($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/Google_G_Logo.svg.png")), "html", null, true);
yield "\"
/>
<span>";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.login_via_google", [], "FOSUserBundle"), "html", null, true);
yield "</span>
</a>
</div>
<div class=\"jlls-alert jlls-alert-info tw-mt-8\">
<div class=\"jlls-alert-body jlls-alert-body-info\">
<p class=\"tw-mb-0\"><a href=\"";
// line 55
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_resetting_request");
yield "\" class=\"jlls-link-default\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.forgot_password", [], "FOSUserBundle");
yield "</a></p>
</div>
</div>
</form>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@FOSUser/Security/login_content.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 151 => 55, 142 => 49, 137 => 47, 130 => 43, 122 => 38, 107 => 26, 101 => 23, 93 => 18, 89 => 17, 85 => 15, 79 => 13, 77 => 12, 74 => 11, 68 => 9, 66 => 8, 62 => 7, 59 => 6, 53 => 4, 51 => 3, 48 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{% trans_default_domain 'FOSUserBundle' %}
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action=\"{{ path(\"fos_user_security_check\") }}\" method=\"post\">
{% if csrf_token %}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token }}\" />
{% endif %}
{% if app.request.get('_target_path') %}
<input type=\"hidden\" name=\"_target_path\" value=\"{{ app.request.get('_target_path') }}\" />
{% endif %}
<div class=\"tw-mb-6\">
<label class=\"jlls-form-label\" for=\"username\">{{ 'security.login.username'|trans }}</label>
<input class=\"jlls-form-input\" type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" required=\"required\" />
</div>
<div class=\"tw-mb-8\">
<div class=\"tw-flex tw-items-center tw-justify-between tw-mb-1\">
<label class=\"jlls-form-label tw-mb-0\" for=\"password\">{{ 'security.login.password'|trans }}</label>
<label class=\"jlls-form-checkbox-wrapper tw-mb-0\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" checked class=\"jlls-form-checkbox\" />
<span class=\"jlls-form-checkbox-label\">{{ 'security.login.remember_me'|trans }}</span>
</label>
</div>
<div class=\"tw-relative\">
<input class=\"jlls-form-input !tw-pr-12\" type=\"password\" id=\"password\" name=\"_password\" required=\"required\" />
<button type=\"button\" class=\"tw-absolute tw-right-0 tw-top-0 tw-h-full tw-px-3 tw-flex tw-items-center tw-text-joboo-gray-400 hover:tw-text-joboo-gray-600 tw-transition-colors tw-bg-transparent tw-border-0 tw-cursor-pointer\">
<i class=\"fa fa-eye-slash\" id=\"showpassword\"></i>
</button>
</div>
</div>
<div class=\"tw-flex tw-items-center tw-gap-3 tw-flex-wrap tw-mt-8\">
<button type=\"submit\" class=\"jlls-button-tertiary\" id=\"_submit\" name=\"_submit\">{{ 'security.login.submit'|trans }}</button>
<span> oder </span>
<a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-gap-2\"
href=\"{{ google_identity_service.getLoginOAuth2TargetUrl(app.user) }}\"
>
<img width=\"20px\"
alt=\"Google sign-in\"
src=\"{{ asset('assets/images/Google_G_Logo.svg.png')|cdnifyUri }}\"
/>
<span>{{ 'security.login.login_via_google'|trans }}</span>
</a>
</div>
<div class=\"jlls-alert jlls-alert-info tw-mt-8\">
<div class=\"jlls-alert-body jlls-alert-body-info\">
<p class=\"tw-mb-0\"><a href=\"{{ path('fos_user_resetting_request') }}\" class=\"jlls-link-default\">{{ 'security.login.forgot_password'|trans|raw }}</a></p>
</div>
</div>
</form>
", "@FOSUser/Security/login_content.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Security/login_content.html.twig");
}
}