<?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;
/* @BoldrUsers/login.html.twig */
class __TwigTemplate_a2e9ff02afc358b4d20030de8ba4ef63 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->blocks = [
'body' => [$this, 'block_body'],
'form_fields' => [$this, 'block_form_fields'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
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", "@BoldrUsers/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", "@BoldrUsers/login.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "@BoldrUsers/login.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_body(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", "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 4
yield " <div class=\"boldr-shop-account-page\">
<span class=\"boldr-shop-account-page-heading\">";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html", null, true);
yield "</span>
<div class=\"boldr-shop-account-page-content\">
<div class=\"boldr-shop-account-section\">
<span class=\"boldr-shop-account-section-heading\">";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html", null, true);
yield "</span>
<form method=\"post\">
";
// line 11
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 11, $this->source); })())) {
// line 12
yield " <div class=\"form-errors\">";
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.', 12, $this->source); })()), "messageKey", [], "any", false, false, false, 12), 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.', 12, $this->source); })()), "messageData", [], "any", false, false, false, 12), "security"), "html", null, true);
yield "</div>
";
}
// line 14
yield "
";
// line 15
yield from $this->unwrap()->yieldBlock("form_fields", $context, $blocks);
yield "
<p class=\"submit\">
<button class=\"boldr-button boldr-button-filled\" type=\"submit\">
";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html", null, true);
yield "
</button>
</p>
</form>
<a href=\"";
// line 23
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_api_forgot_password");
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forgot_password", [], "BoldrUsersBundle"), "html", null, true);
yield "</a>
<a class=\"header-login-form-register\" href=\"";
// line 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_register");
yield "\" class=\"header-login-form-register\">
";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_account_click_here", [], "HelensBakery"), "html", null, true);
yield "
</a>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 33
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_form_fields(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", "form_fields"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_fields"));
// line 34
yield " <div class=\"form-row\">
<div class=\"form-label-control\">
<input type=\"text\" value=\"";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 36, $this->source); })()), "_username", [], "any", false, false, false, 36), "vars", [], "any", false, false, false, 36), "data", [], "any", false, false, false, 36), "html", null, true);
yield "\" name=\"_username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
<label for=\"inputUsername\">";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("email_address", [], "BoldrUsersBundle"), "html", null, true);
yield "</label>
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label-control\">
<input type=\"password\" name=\"_password\" id=\"inputPassword\" class=\"form-control\" required>
<label for=\"inputPassword\">";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password", [], "BoldrUsersBundle"), "html", null, true);
yield "</label>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\" />
<div class=\"form-label-control\">
<input type=\"checkbox\" id=\"rememberme\" name=\"_remember_me\" />
<label for=\"rememberme\">";
// line 52
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("remember_me", [], "BoldrUsersBundle"), "html", null, true);
yield "</label>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@BoldrUsers/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 189 => 52, 182 => 48, 175 => 44, 165 => 37, 161 => 36, 157 => 34, 144 => 33, 127 => 25, 123 => 24, 117 => 23, 110 => 19, 103 => 15, 100 => 14, 94 => 12, 92 => 11, 86 => 8, 80 => 5, 77 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<div class=\"boldr-shop-account-page\">
<span class=\"boldr-shop-account-page-heading\">{{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}</span>
<div class=\"boldr-shop-account-page-content\">
<div class=\"boldr-shop-account-section\">
<span class=\"boldr-shop-account-section-heading\">{{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}</span>
<form method=\"post\">
{% if error %}
<div class=\"form-errors\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{{ block('form_fields') }}
<p class=\"submit\">
<button class=\"boldr-button boldr-button-filled\" type=\"submit\">
{{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}
</button>
</p>
</form>
<a href=\"{{ url('boldr_users_api_forgot_password')}}\">{{ 'forgot_password'|trans([], 'BoldrUsersBundle') }}</a>
<a class=\"header-login-form-register\" href=\"{{ url('app_register') }}\" class=\"header-login-form-register\">
{{ 'no_account_click_here'|trans({}, 'HelensBakery') }}
</a>
</div>
</div>
</div>
{% endblock %}
{% block form_fields %}
<div class=\"form-row\">
<div class=\"form-label-control\">
<input type=\"text\" value=\"{{ form._username.vars.data }}\" name=\"_username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
<label for=\"inputUsername\">{{ 'email_address'|trans({}, 'BoldrUsersBundle') }}</label>
</div>
</div>
<div class=\"form-row\">
<div class=\"form-label-control\">
<input type=\"password\" name=\"_password\" id=\"inputPassword\" class=\"form-control\" required>
<label for=\"inputPassword\">{{ 'password'|trans({}, 'BoldrUsersBundle') }}</label>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\" />
<div class=\"form-label-control\">
<input type=\"checkbox\" id=\"rememberme\" name=\"_remember_me\" />
<label for=\"rememberme\">{{ 'remember_me'|trans({}, 'BoldrUsersBundle') }}</label>
</div>
{% endblock %}
", "@BoldrUsers/login.html.twig", "/home/boldrdev/sites/hb/app/templates/bundles/BoldrUsersBundle/login.html.twig");
}
}