<?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_05ed71d0aa05a2ecf7a62b5c08a6a933 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'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 3
return "layout.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.html.twig", 3);
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 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 "<tbody>
<tr>
<td style=\"padding: 5px;\">
";
// line 11
yield " ";
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 11, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 12
yield " <div class=\"alert alert-error\">Vos identifiants sont incorrects</div>
";
}
// line 14
yield "
";
// line 16
yield " <form action=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_check");
yield "\" method=\"post\">
<strong>Afin d'accéder aux fonctionnalités de l'extranet Malys, vous devez vous identifier : </strong>
<table width=\"350\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
<tbody><tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width=\"120\"><label for=\"username\">Utilisateur :</label></td>
<td width=\"286\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"";
// line 25
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.', 25, $this->source); })()), "html", null, true);
yield "\" /></td>
</tr>
<tr>
<td><label for=\"password\">Mot de passe :</label></td>
<td><input type=\"password\" id=\"password\" name=\"_password\" /></td>
</tr>
<tr>
<td> </td>
<td> <input type=\"submit\" value=\"Valider\" />
</td>
</tr>
</tbody></table>
</form>
</td>
</tr>
</tbody>
";
$__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 ( 105 => 25, 92 => 16, 89 => 14, 85 => 12, 82 => 11, 76 => 6, 63 => 5, 40 => 3,);
}
public function getSourceContext(): Source
{
return new Source("{# src/Malys/UserBundle/Resources/views/Security/login.html.twig #}
{% extends \"layout.html.twig\" %}
{% block body %}
<tbody>
<tr>
<td style=\"padding: 5px;\">
{# S'il y a une erreur, on l'affiche dans un joli cadre #}
{% if error %}
<div class=\"alert alert-error\">Vos identifiants sont incorrects</div>
{% endif %}
{# Le formulaire, avec URL de soumission vers la route « login_check » comme on l'a vu #}
<form action=\"{{ path('login_check') }}\" method=\"post\">
<strong>Afin d'accéder aux fonctionnalités de l'extranet Malys, vous devez vous identifier : </strong>
<table width=\"350\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
<tbody><tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width=\"120\"><label for=\"username\">Utilisateur :</label></td>
<td width=\"286\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" /></td>
</tr>
<tr>
<td><label for=\"password\">Mot de passe :</label></td>
<td><input type=\"password\" id=\"password\" name=\"_password\" /></td>
</tr>
<tr>
<td> </td>
<td> <input type=\"submit\" value=\"Valider\" />
</td>
</tr>
</tbody></table>
</form>
</td>
</tr>
</tbody>
{% endblock %}
", "security/login.html.twig", "/var/www/malys_alpha/templates/security/login.html.twig");
}
}