var/cache/dev/twig/b8/b86ac501a5b10a1770f84e0886d46955.php line 59

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* security/login.html.twig */
  18. class __TwigTemplate_04a9af92c7bf01580a385322045fc20c extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'page_title' => [$this, 'block_page_title'],
  33. 'content' => [$this, 'block_content'],
  34. ];
  35. }
  36. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37. {
  38. // line 1
  39. return $this->parent ??= $this->load("base.html.twig", 1);
  40. }
  41. protected function doDisplay(array $context, array $blocks = []): iterable
  42. {
  43. $macros = $this->macros;
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  48. $this->parent = $this->load("base.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 3
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_page_title(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  64. // line 4
  65. yield " ";
  66. yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::striptags($this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("storefront.title")), "html", null, true);
  67. yield " | Login
  68. ";
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71. return; yield;
  72. }
  73. // line 7
  74. /**
  75. * @return iterable<null|scalar|\Stringable>
  76. */
  77. public function block_content(array $context, array $blocks = []): iterable
  78. {
  79. $macros = $this->macros;
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  84. // line 8
  85. yield " ";
  86. 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)) {
  87. // line 9
  88. yield " <div class=\"container-3xl mt-5\">
  89. <div class=\"row\">
  90. <div class=\"col-12\">
  91. <div class=\"d-flex align-items-center justify-content-between\">
  92. <h1 class=\"ornament\">Bestellvorgang</h1>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class=\"container-3xl\">
  98. <div class=\"row\">
  99. ";
  100. // line 21
  101. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@widgets/checkout_progress_bar.html.twig", ["step" => 2]);
  102. // line 23
  103. yield "
  104. </div>
  105. </div>
  106. ";
  107. } else {
  108. // line 27
  109. yield " <div class=\"container-3xl mt-5\">
  110. <div class=\"row\">
  111. <div class=\"col-12\">
  112. <div class=\"d-flex align-items-center justify-content-between\">
  113. <h1 class=\"ornament\">Kundenkonto</h1>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. ";
  119. }
  120. // line 37
  121. yield "
  122. <div class=\"container-3xl py-5\">
  123. <div class=\"row mt-5\">
  124. <div class=\"col-12 col-md-6\">
  125. <h3 class=\"mt-0 mb-4\">Login</h3>
  126. <p>
  127. Logge dich mit deinem Passwort ein oder klicke auf Registrieren, wenn du noch kein Kundenkonto hast.
  128. </p>
  129. ";
  130. // line 45
  131. 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)) {
  132. // line 46
  133. yield " ";
  134. 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
  135. (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")]);
  136. // line 49
  137. yield "
  138. ";
  139. }
  140. // line 51
  141. yield " <form action=\"";
  142. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("storefront_login");
  143. yield "\" method=\"post\">
  144. <div class=\"d-flex flex-column flex-wrap\">
  145. <label>Benutzername</label>
  146. <input id=\"username\" name=\"_username\" class=\"p-2 flex-grow-1 border-accent my-2\" value=\"";
  147. // line 54
  148. 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);
  149. yield "\" type=\"text\" placeholder=\"Benutzername\">
  150. <label>Passwort</label>
  151. <input id=\"password\" name=\"_password\" class=\"p-2 flex-grow-1 border-accent my-2\" type=\"password\" placeholder=\"Passwort\">
  152. ";
  153. // line 57
  154. 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)) {
  155. // line 58
  156. yield " <input type=\"hidden\" name=\"_target_path\" value=\"delivery_address\">
  157. ";
  158. }
  159. // line 60
  160. yield " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  161. yield (string) $this->escaper->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  162. yield "\">
  163. <button type=\"submit\" class=\"rounded-0 button accent my-2\">
  164. Login
  165. </button>
  166. </div>
  167. <label class=\"d-block text-center my-2\">
  168. <input type=\"checkbox\" name=\"_remember_me\" checked/>
  169. <span>";
  170. // line 67
  171. 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);
  172. yield "</span>
  173. </label>
  174. <p class=\"text-center mb-4\">Ich habe mein <a href=\"";
  175. // line 69
  176. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  177. yield "\">Passwort vergessen</a>.</p>
  178. </form>
  179. ";
  180. // line 71
  181. 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)) {
  182. // line 72
  183. yield " <span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"";
  184. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_and_delivery_address");
  185. yield "\"><span class=\"fw-bold\">Registrieren</span></a></span>
  186. ";
  187. } else {
  188. // line 74
  189. yield " <span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"";
  190. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  191. yield "\"><span class=\"fw-bold\">Registrieren</span></a></span>
  192. ";
  193. }
  194. // line 76
  195. yield " <hr>
  196. </div>
  197. <div class=\"col-12 col-md-5 offset-md-1 d-none d-md-block\">
  198. ";
  199. // line 79
  200. 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)]);
  201. yield "
  202. </div>
  203. </div>
  204. </div>
  205. ";
  206. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208. return; yield;
  209. }
  210. /**
  211. * @codeCoverageIgnore
  212. */
  213. public function getTemplateName(): string
  214. {
  215. return "security/login.html.twig";
  216. }
  217. /**
  218. * @codeCoverageIgnore
  219. */
  220. public function isTraitable(): bool
  221. {
  222. return false;
  223. }
  224. /**
  225. * @codeCoverageIgnore
  226. */
  227. public function getDefaultEscapeStrategy(): string|false
  228. {
  229. return "html";
  230. }
  231. /**
  232. * @codeCoverageIgnore
  233. */
  234. public function getDebugInfo(): array
  235. {
  236. 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,);
  237. }
  238. public function getSourceContext(): Source
  239. {
  240. return new Source("{% extends \x27base.html.twig\x27 %}
  241. {% block page_title %}
  242. {{ \x27storefront.title\x27|resolve|striptags }} | Login
  243. {% endblock %}
  244. {% block content %}
  245. {% if is_during_checkout %}
  246. <div class=\"container-3xl mt-5\">
  247. <div class=\"row\">
  248. <div class=\"col-12\">
  249. <div class=\"d-flex align-items-center justify-content-between\">
  250. <h1 class=\"ornament\">Bestellvorgang</h1>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. <div class=\"container-3xl\">
  256. <div class=\"row\">
  257. {{ include(\x27@widgets/checkout_progress_bar.html.twig\x27, {
  258. step: 2
  259. }) }}
  260. </div>
  261. </div>
  262. {% else %}
  263. <div class=\"container-3xl mt-5\">
  264. <div class=\"row\">
  265. <div class=\"col-12\">
  266. <div class=\"d-flex align-items-center justify-content-between\">
  267. <h1 class=\"ornament\">Kundenkonto</h1>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. {% endif %}
  273. <div class=\"container-3xl py-5\">
  274. <div class=\"row mt-5\">
  275. <div class=\"col-12 col-md-6\">
  276. <h3 class=\"mt-0 mb-4\">Login</h3>
  277. <p>
  278. Logge dich mit deinem Passwort ein oder klicke auf Registrieren, wenn du noch kein Kundenkonto hast.
  279. </p>
  280. {% if error %}
  281. {{ include(\x27@widgets/alert_box.html.twig\x27, {
  282. alert_type: \x27warning\x27,
  283. alert_text: error.messageKey|trans(error.messageData, \x27security\x27),
  284. }) }}
  285. {% endif %}
  286. <form action=\"{{ path(\x27storefront_login\x27) }}\" method=\"post\">
  287. <div class=\"d-flex flex-column flex-wrap\">
  288. <label>Benutzername</label>
  289. <input id=\"username\" name=\"_username\" class=\"p-2 flex-grow-1 border-accent my-2\" value=\"{{ last_username }}\" type=\"text\" placeholder=\"Benutzername\">
  290. <label>Passwort</label>
  291. <input id=\"password\" name=\"_password\" class=\"p-2 flex-grow-1 border-accent my-2\" type=\"password\" placeholder=\"Passwort\">
  292. {% if is_during_checkout %}
  293. <input type=\"hidden\" name=\"_target_path\" value=\"delivery_address\">
  294. {% endif %}
  295. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token(\x27authenticate\x27) }}\">
  296. <button type=\"submit\" class=\"rounded-0 button accent my-2\">
  297. Login
  298. </button>
  299. </div>
  300. <label class=\"d-block text-center my-2\">
  301. <input type=\"checkbox\" name=\"_remember_me\" checked/>
  302. <span>{{ remember_me_label }}</span>
  303. </label>
  304. <p class=\"text-center mb-4\">Ich habe mein <a href=\"{{ path(\x27app_forgot_password_request\x27) }}\">Passwort vergessen</a>.</p>
  305. </form>
  306. {% if is_during_checkout %}
  307. <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>
  308. {% else %}
  309. <span class=\"d-block text-center\">Noch kein Benutzerkonto? <a href=\"{{ path(\x27app_register\x27) }}\"><span class=\"fw-bold\">Registrieren</span></a></span>
  310. {% endif %}
  311. <hr>
  312. </div>
  313. <div class=\"col-12 col-md-5 offset-md-1 d-none d-md-block\">
  314. {{ include(\x27@widgets/login_icon.html.twig\x27, { icon_color: tenant.config.color, icon_color_hover: tenant.config.colorHover }) }}
  315. </div>
  316. </div>
  317. </div>
  318. {% endblock %}
  319. ", "security/login.html.twig", "/srv/storefront/templates/security/login.html.twig");
  320. }
  321. }