<?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_39e54b845b9300cccc789a0729e5d2f2 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 "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("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 "Match Meuble | Connexion";
$__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 "<section class=\"bg-surface-50 dark:bg-gray-900\">
<div class=\"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0\">
<a href=\"";
// line 8
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
yield "\" class=\"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white\">
<span class=\"text-2xl italic\">🛠️ MatchMeuble</span>
</a>
<div class=\"w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700\">
<div class=\"p-6 space-y-4 md:space-y-6 sm:p-8\">
<h1 class=\"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white\">Se connecter</h1>
";
// line 15
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 15, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 16
yield " <div class=\"text-sm p-3 rounded-md bg-red-50 text-red-700 border border-red-200 dark:bg-red-900/30 dark:text-red-200 dark:border-red-800\">";
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.', 16, $this->source); })()), "messageKey", [], "any", false, false, false, 16), 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.', 16, $this->source); })()), "messageData", [], "any", false, false, false, 16), "security"), "html", null, true);
yield "</div>
";
}
// line 18
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "user", [], "any", false, false, false, 18)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 19
yield " <div class=\"text-sm text-gray-700 dark:text-gray-300\">Connecté en tant que ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19), "userIdentifier", [], "any", false, false, false, 19), "html", null, true);
yield ", <a class=\"underline\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\">Déconnexion</a></div>
";
}
// line 21
yield "
<form method=\"post\" class=\"space-y-4 md:space-y-6\">
<div>
<label for=\"inputEmail\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Votre email</label>
<input type=\"email\" 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 "\" name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required autofocus class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
</div>
<div>
<label for=\"inputPassword\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Mot de passe</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" placeholder=\"••••••••\" autocomplete=\"current-password\" required class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<div class=\"flex items-center justify-between\">
<div class=\"flex items-center h-5\">
<input id=\"remember\" name=\"_remember_me\" type=\"checkbox\" class=\"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600\"/>
<label for=\"remember\" class=\"ml-3 text-sm text-gray-500 dark:text-gray-300\">Se souvenir de moi</label>
</div>
<a href=\"";
// line 39
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forgetten_password");
yield "\" class=\"text-sm font-medium text-primary-600 hover:underline dark:text-primary-500\">Mot de passe oublié ?</a>
</div>
<button type=\"submit\" class=\"w-full text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700\">Se connecter</button>
<p class=\"text-sm font-light text-gray-500 dark:text-gray-400\">Pas encore de compte ?
<a href=\"";
// line 44
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
yield "\" class=\"font-medium text-primary-600 hover:underline dark:text-primary-500\">S'inscrire</a>
</p>
</form>
</div>
</div>
</div>
</section>
";
$__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 ( 167 => 44, 159 => 39, 149 => 32, 139 => 25, 133 => 21, 125 => 19, 122 => 18, 116 => 16, 114 => 15, 104 => 8, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Match Meuble | Connexion{% endblock %}
{% block body %}
<section class=\"bg-surface-50 dark:bg-gray-900\">
<div class=\"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0\">
<a href=\"{{ path('app_home') }}\" class=\"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white\">
<span class=\"text-2xl italic\">🛠️ MatchMeuble</span>
</a>
<div class=\"w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700\">
<div class=\"p-6 space-y-4 md:space-y-6 sm:p-8\">
<h1 class=\"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white\">Se connecter</h1>
{% if error %}
<div class=\"text-sm p-3 rounded-md bg-red-50 text-red-700 border border-red-200 dark:bg-red-900/30 dark:text-red-200 dark:border-red-800\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"text-sm text-gray-700 dark:text-gray-300\">Connecté en tant que {{ app.user.userIdentifier }}, <a class=\"underline\" href=\"{{ path('app_logout') }}\">Déconnexion</a></div>
{% endif %}
<form method=\"post\" class=\"space-y-4 md:space-y-6\">
<div>
<label for=\"inputEmail\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Votre email</label>
<input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required autofocus class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
</div>
<div>
<label for=\"inputPassword\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Mot de passe</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" placeholder=\"••••••••\" autocomplete=\"current-password\" required class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<div class=\"flex items-center justify-between\">
<div class=\"flex items-center h-5\">
<input id=\"remember\" name=\"_remember_me\" type=\"checkbox\" class=\"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600\"/>
<label for=\"remember\" class=\"ml-3 text-sm text-gray-500 dark:text-gray-300\">Se souvenir de moi</label>
</div>
<a href=\"{{ path('forgetten_password') }}\" class=\"text-sm font-medium text-primary-600 hover:underline dark:text-primary-500\">Mot de passe oublié ?</a>
</div>
<button type=\"submit\" class=\"w-full text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700\">Se connecter</button>
<p class=\"text-sm font-light text-gray-500 dark:text-gray-400\">Pas encore de compte ?
<a href=\"{{ path('app_register') }}\" class=\"font-medium text-primary-600 hover:underline dark:text-primary-500\">S'inscrire</a>
</p>
</form>
</div>
</div>
</div>
</section>
{% endblock %}", "security/login.html.twig", "/home/u956140113/domains/sassify.fr/public_html/match-meuble/templates/security/login.html.twig");
}
}