<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* security/login.html.twig */
class __TwigTemplate_04a9af92c7bf01580a385322045fc20c extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'page_title' => [$this, 'block_page_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("base.html.twig", 1);
}
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", "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->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_page_title(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(), "block", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
// line 4
yield " ";
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::striptags($this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("storefront.title")), "html", null, true);
yield " | Login
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
yield " ";
if ((($tmp = (isset($context["is_during_checkout"]) || array_key_exists("is_during_checkout", $context) ? $context["is_during_checkout"] : (function () { throw new RuntimeError('Variable "is_during_checkout" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 9
yield " <div class=\"container-3xl mt-5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center justify-content-between\">
<h1 class=\"ornament\">Bestellvorgang</h1>
</div>
</div>
</div>
</div>
<div class=\"container-3xl\">
<div class=\"row\">
";
// line 21
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@widgets/checkout_progress_bar.html.twig", ["step" => 2]);
// line 23
yield "
</div>
</div>
";
} else {
// line 27
yield " <div class=\"container-3xl mt-5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center justify-content-between\">
<h1 class=\"ornament\">Kundenkonto</h1>
</div>
</div>
</div>
</div>
";
}
// line 37
yield "
<div class=\"container-3xl py-5\">
<div class=\"row mt-5\">
<div class=\"col-12 col-md-6\">
<h3 class=\"mt-0 mb-4\">Login</h3>
<p>
Logge dich mit deinem Passwort ein oder klicke auf Registrieren, wenn du noch kein Kundenkonto hast.
</p>
";
// line 45
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 45, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 46
yield " ";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@widgets/alert_box.html.twig", ["alert_type" => "warning", "alert_text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, // line 48
(isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 48, $this->source); })()), "messageKey", [], "any", false, false, false, 48), 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.', 48, $this->source); })()), "messageData", [], "any", false, false, false, 48), "security")]);
// line 49
yield "
";
}
// line 51
yield " <form action=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("storefront_login");
yield "\" method=\"post\">
<div class=\"d-flex flex-column flex-wrap\">
<label>Benutzername</label>
<input id=\"username\" name=\"_username\" class=\"p-2 flex-grow-1 border-accent my-2\" value=\"";
// line 54
yield (string) $this->escaper->escape((isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 54, $this->source); })()), "html", null, true);
yield "\" type=\"text\" placeholder=\"Benutzername\">
<label>Passwort</label>
<input id=\"password\" name=\"_password\" class=\"p-2 flex-grow-1 border-accent my-2\" type=\"password\" placeholder=\"Passwort\">
";
// line 57
if ((($tmp = (isset($context["is_during_checkout"]) || array_key_exists("is_during_checkout", $context) ? $context["is_during_checkout"] : (function () { throw new RuntimeError('Variable "is_during_checkout" does not exist.', 57, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 58
yield " <input type=\"hidden\" name=\"_target_path\" value=\"delivery_address\">
";
}
// line 60
yield " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
yield (string) $this->escaper->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<button type=\"submit\" class=\"rounded-0 button accent my-2\">
Login
</button>
</div>
<label class=\"d-block text-center my-2\">
<input type=\"checkbox\" name=\"_remember_me\" checked/>
<span>";
// line 67
yield (string) $this->escaper->escape((isset($context["remember_me_label"]) || array_key_exists("remember_me_label", $context) ? $context["remember_me_label"] : (function () { throw new RuntimeError('Variable "remember_me_label" does not exist.', 67, $this->source); })()), "html", null, true);
yield "</span>
</label>
<p class=\"text-center mb-4\">Ich habe mein <a href=\"";
// line 69
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\">Passwort vergessen</a>.</p>
</form>
";
// line 71
if ((($tmp = (isset($context["is_during_checkout"]) || array_key_exists("is_during_checkout", $context) ? $context["is_during_checkout"] : (function () { throw new RuntimeError('Variable "is_during_checkout" does not exist.', 71, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 72
yield " <span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_and_delivery_address");
yield "\"><span class=\"fw-bold\">Registrieren</span></a></span>
";
} else {
// line 74
yield " <span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
yield "\"><span class=\"fw-bold\">Registrieren</span></a></span>
";
}
// line 76
yield " <hr>
</div>
<div class=\"col-12 col-md-5 offset-md-1 d-none d-md-block\">
";
// line 79
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@widgets/login_icon.html.twig", ["icon_color" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 79, $this->source); })()), "config", [], "any", false, false, false, 79), "color", [], "any", false, false, false, 79), "icon_color_hover" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 79, $this->source); })()), "config", [], "any", false, false, false, 79), "colorHover", [], "any", false, false, false, 79)]);
yield "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 225 => 79, 220 => 76, 214 => 74, 208 => 72, 206 => 71, 201 => 69, 196 => 67, 185 => 60, 181 => 58, 179 => 57, 173 => 54, 166 => 51, 162 => 49, 160 => 48, 158 => 46, 156 => 45, 146 => 37, 134 => 27, 128 => 23, 126 => 21, 112 => 9, 109 => 8, 96 => 7, 82 => 4, 69 => 3, 46 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block page_title %}
{{ \x27storefront.title\x27|resolve|striptags }} | Login
{% endblock %}
{% block content %}
{% if is_during_checkout %}
<div class=\"container-3xl mt-5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center justify-content-between\">
<h1 class=\"ornament\">Bestellvorgang</h1>
</div>
</div>
</div>
</div>
<div class=\"container-3xl\">
<div class=\"row\">
{{ include(\x27@widgets/checkout_progress_bar.html.twig\x27, {
step: 2
}) }}
</div>
</div>
{% else %}
<div class=\"container-3xl mt-5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"d-flex align-items-center justify-content-between\">
<h1 class=\"ornament\">Kundenkonto</h1>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"container-3xl py-5\">
<div class=\"row mt-5\">
<div class=\"col-12 col-md-6\">
<h3 class=\"mt-0 mb-4\">Login</h3>
<p>
Logge dich mit deinem Passwort ein oder klicke auf Registrieren, wenn du noch kein Kundenkonto hast.
</p>
{% if error %}
{{ include(\x27@widgets/alert_box.html.twig\x27, {
alert_type: \x27warning\x27,
alert_text: error.messageKey|trans(error.messageData, \x27security\x27),
}) }}
{% endif %}
<form action=\"{{ path(\x27storefront_login\x27) }}\" method=\"post\">
<div class=\"d-flex flex-column flex-wrap\">
<label>Benutzername</label>
<input id=\"username\" name=\"_username\" class=\"p-2 flex-grow-1 border-accent my-2\" value=\"{{ last_username }}\" type=\"text\" placeholder=\"Benutzername\">
<label>Passwort</label>
<input id=\"password\" name=\"_password\" class=\"p-2 flex-grow-1 border-accent my-2\" type=\"password\" placeholder=\"Passwort\">
{% if is_during_checkout %}
<input type=\"hidden\" name=\"_target_path\" value=\"delivery_address\">
{% endif %}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token(\x27authenticate\x27) }}\">
<button type=\"submit\" class=\"rounded-0 button accent my-2\">
Login
</button>
</div>
<label class=\"d-block text-center my-2\">
<input type=\"checkbox\" name=\"_remember_me\" checked/>
<span>{{ remember_me_label }}</span>
</label>
<p class=\"text-center mb-4\">Ich habe mein <a href=\"{{ path(\x27app_forgot_password_request\x27) }}\">Passwort vergessen</a>.</p>
</form>
{% if is_during_checkout %}
<span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"{{ path(\x27register_and_delivery_address\x27) }}\"><span class=\"fw-bold\">Registrieren</span></a></span>
{% else %}
<span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"{{ path(\x27app_register\x27) }}\"><span class=\"fw-bold\">Registrieren</span></a></span>
{% endif %}
<hr>
</div>
<div class=\"col-12 col-md-5 offset-md-1 d-none d-md-block\">
{{ include(\x27@widgets/login_icon.html.twig\x27, { icon_color: tenant.config.color, icon_color_hover: tenant.config.colorHover }) }}
</div>
</div>
</div>
{% endblock %}
", "security/login.html.twig", "/srv/storefront/templates/security/login.html.twig");
}
}