var/cache/dev/twig/5d/5d0ea903201922da77708c834debf30c.php line 44
<?phpuse 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;/* login/index.html.twig */class __TwigTemplate_cf09447e611668b665ddfc41e76bec01 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 1return "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", "login/index.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login/index.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "login/index.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 "Lingèvres";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 7/*** @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 8yield " ";if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 8, $this->source); })())) {// line 9yield " <div>";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.', 9, $this->source); })()), "messageKey", [], "any", false, false, false, 9), 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.', 9, $this->source); })()), "messageData", [], "any", false, false, false, 9), "security"), "html", null, true);yield "</div>";}// line 11yield "<form action=\"";// line 12yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");yield "\" method=\"post\"><input type=\"hidden\" name=\"_csrf_token\" value=\"";// line 13yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);yield "\"><div class=\"row\" style=\"margin-top:100px\"><div class=\"col-sm-4\"></div><div class=\"col-sm-2\"><label for=\"username\">Identifiant :</label></div><div class=\"col-sm-2\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"";// line 22yield $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.', 22, $this->source); })()), "html", null, true);yield "\" class=\"form-control\"></div></div><br /><div class=\"row\"><div class=\"col-sm-4\"></div><div class=\"col-sm-2\"><label for=\"password\">Mot de passe:</label></div><div class=\"col-sm-2\"><input type=\"password\" id=\"password\" name=\"_password\" class=\"form-control\"></div></div><br /><div class=\"row\"><div class=\"col-sm-4\"></div><div class=\"col-sm-4 text-center\"><input type=\"submit\" class=\"btn btn-primary\" value=\"Connexion\"></div></div>";// line 48yield "</form>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}/*** @codeCoverageIgnore*/public function getTemplateName(): string{return "login/index.html.twig";}/*** @codeCoverageIgnore*/public function isTraitable(): bool{return false;}/*** @codeCoverageIgnore*/public function getDebugInfo(): array{return array ( 155 => 48, 128 => 22, 116 => 13, 112 => 12, 109 => 11, 103 => 9, 100 => 8, 87 => 7, 64 => 3, 41 => 1,);}public function getSourceContext(): Source{return new Source("{% extends 'base.html.twig' %}{% block title %}Lingèvres{% endblock %}{% block body %}{% if error %}<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>{% endif %}<form action=\"{{ path('app_login') }}\" method=\"post\"><input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\"><div class=\"row\" style=\"margin-top:100px\"><div class=\"col-sm-4\"></div><div class=\"col-sm-2\"><label for=\"username\">Identifiant :</label></div><div class=\"col-sm-2\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" class=\"form-control\"></div></div><br /><div class=\"row\"><div class=\"col-sm-4\"></div><div class=\"col-sm-2\"><label for=\"password\">Mot de passe:</label></div><div class=\"col-sm-2\"><input type=\"password\" id=\"password\" name=\"_password\" class=\"form-control\"></div></div><br /><div class=\"row\"><div class=\"col-sm-4\"></div><div class=\"col-sm-4 text-center\"><input type=\"submit\" class=\"btn btn-primary\" value=\"Connexion\"></div></div>{# If you want to control the URL the user is redirected to on success<input type=\"hidden\" name=\"_target_path\" value=\"/account\"> #}</form>{% endblock %}", "login/index.html.twig", "/var/www/html/lingevres/templates/login/index.html.twig");}}