<?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;
/* security/login.html.twig */
class __TwigTemplate_ee83995698615cae249ebd13e90a997e 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 = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/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", "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("layout/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_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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Log in!";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @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 6
yield " <div class=\"section-title\">
<h2>Sign In</h2>
</div>
<div class=\"row justify-content-center mt-3 mb-3\">
<div class=\"col-md-6 col-sm-12\">
<form method=\"post\">
";
// line 12
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 12, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 13
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.', 13, $this->source); })()), "messageKey", [], "any", false, false, false, 13), 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.', 13, $this->source); })()), "messageData", [], "any", false, false, false, 13), "security"), "html", null, true);
yield "</div>
";
}
// line 15
yield "
<div class=\"card\">
<div class=\"card-body\">
<div class=\"mb-3\">
<label for=\"username\" class=\"form-label\">Username</label>
<input type=\"text\" value=\"";
// line 20
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.', 20, $this->source); })()), "html", null, true);
yield "\" name=\"username\" id=\"username\" class=\"form-control\" placeholder=\"Username\" required autofocus>
</div>
<div class=\"mb-3\">
<label for=\"inputPassword\" class=\"form-label\">Password</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
</div>
<input type=\"hidden\" name=\"_csrf_token\" class=\"\"
value=\"";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\"
>
<input type=\"hidden\" name=\"_target_path\" value=\"";
// line 30
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
yield "\" />
<div class=\"d-flex justify-content-between flex-wrap\">
<div class=\"checkbox mb-3\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked/>
<label for=\"remember_me\">Remember Me</label>
</div>
<a href=\"";
// line 37
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\" class=\"btn btn-link btn-sm\">
<i class=\"fa fa-key\"></i> Forgot Username or Password?
</a>
</div>
<button class=\"btn btn-primary w-100\" type=\"submit\">
SIGN IN
</button>
<div class=\"text-center m-2\">
<a href=\"";
// line 46
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registration");
yield "\" class=\"btn btn-link\">First time here? Create account</a>
</div>
</div>
</div>
</form>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 161 => 46, 149 => 37, 139 => 30, 133 => 27, 123 => 20, 116 => 15, 110 => 13, 108 => 12, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<div class=\"section-title\">
<h2>Sign In</h2>
</div>
<div class=\"row justify-content-center mt-3 mb-3\">
<div class=\"col-md-6 col-sm-12\">
<form method=\"post\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<div class=\"card\">
<div class=\"card-body\">
<div class=\"mb-3\">
<label for=\"username\" class=\"form-label\">Username</label>
<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"username\" class=\"form-control\" placeholder=\"Username\" required autofocus>
</div>
<div class=\"mb-3\">
<label for=\"inputPassword\" class=\"form-label\">Password</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
</div>
<input type=\"hidden\" name=\"_csrf_token\" class=\"\"
value=\"{{ csrf_token('authenticate') }}\"
>
<input type=\"hidden\" name=\"_target_path\" value=\"{{ path('sonata_admin_dashboard') }}\" />
<div class=\"d-flex justify-content-between flex-wrap\">
<div class=\"checkbox mb-3\">
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked/>
<label for=\"remember_me\">Remember Me</label>
</div>
<a href=\"{{ path('app_forgot_password_request') }}\" class=\"btn btn-link btn-sm\">
<i class=\"fa fa-key\"></i> Forgot Username or Password?
</a>
</div>
<button class=\"btn btn-primary w-100\" type=\"submit\">
SIGN IN
</button>
<div class=\"text-center m-2\">
<a href=\"{{ path('registration') }}\" class=\"btn btn-link\">First time here? Create account</a>
</div>
</div>
</div>
</form>
</div>
</div>
{% endblock %}
", "security/login.html.twig", "/home/jewelryrewards/staging/templates/security/login.html.twig");
}
}