<?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_66a59517d803d4e43a01b3b4817d9896203ee823eb22ec595f7f3991e42f010f 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 = [
'contentBody' => [$this, 'block_contentBody'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "security/login.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_contentBody(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBody"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBody"));
// line 4
yield " ";
$context["pm"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "query", [], "any", false, false, false, 4), "get", ["pm"], "method", false, false, false, 4);
// line 5
yield " <!-- Main content -->
<div class=\"content container mt-5\">
<div class=\"row justify-content-center d-flex\">
<!-- Login Form -->
<div class=\"col-md-4 d-flex align-items-stretch\">
<div class=\"form-container p-4 bg-white shadow-sm\">
<h2 class=\"header-text text-center\">Connecter-vous</h2>
<form action=\"\" method=\"POST\">
";
// line 13
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 13, $this->source); })())) {
// line 14
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.', 14, $this->source); })()), "messageKey", [], "any", false, false, false, 14), 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.', 14, $this->source); })()), "messageData", [], "any", false, false, false, 14), "security"), "html", null, true);
yield "</div>
";
}
// line 16
yield " ";
if (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.', 16, $this->source); })()), "user", [], "any", false, false, false, 16)) {
// line 17
yield " <div class=\"mb-3\">
You are logged in as ";
// line 18
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.', 18, $this->source); })()), "user", [], "any", false, false, false, 18), "userIdentifier", [], "any", false, false, false, 18), "html", null, true);
yield ", <a href=\"/logout\">Logout</a>
</div>
";
}
// line 21
yield " <div class=\"form-group\">
<input type=\"email\" value=\"";
// line 22
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.', 22, $this->source); })()), "html", null, true);
yield "\" class=\"form-control login\" name=\"_username\" placeholder=\"E-mail*\" required>
</div>
<div class=\"form-group\">
<input type=\"password\" class=\"form-control login\" name=\"_password\" placeholder=\"Mot de passe*\" required>
</div>
<a href=\"";
// line 27
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password");
yield "\" class=\"forgot-password-link font-italic text-underline\">>j'ai oublié mon mot de passe</a>
<div class=\"text-center\">
<button type=\"submit\" class=\"btn btn-login btn-custom mt-4\">Me connecter</button>
<small class=\"form-text text-muted\"><em>*Champs obligatoires</em></small>
</div>
</form>
</div>
</div>
<!-- Signup Section -->
<div class=\"col-md-4 d-flex align-items-stretch\">
<div class=\"form-container p-4 bg-white shadow-sm\">
<h2 class=\"header-text text-center\">Inscrivez-vous</h2>
<div class=\"font-16 mt-2 text-center desc-login\">
Consultez vos réservations disponibles<br>
Gérez votre planning dans votre compte<br>
Téléchargez vos factures
</div>
<div class=\"text-center no-padding-top\">
<a href=\"";
// line 46
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("client_register");
yield ((((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 46, $this->source); })()) != "")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(("?pm=" . (isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 46, $this->source); })())), "html", null, true)) : (""));
yield "\" class=\"btn btn-login btn-custom mt-4\">Créer mon compte</a>
</div>
</div>
</div>
</div>
</div>
<style type=\"text/css\">
.no-padding-top {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Background image styling */
body {
background-image: url(";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("../assets/images/bg_contact.jpg"), "html", null, true);
yield ");
background-repeat: no-repeat;
background-size: cover; /* Fait en sorte que l'image remplisse tout l'écran */
background-position: center; /* Centre l'image pour éviter les décalages */
background-attachment: fixed; /* Fixe l'image en place lors du défilement */
}
.big-wrapper {
background: linear-gradient(to bottom, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0)); /* Dégradé du haut (opaque) vers le bas (transparent) */
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_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 ( 160 => 60, 142 => 46, 120 => 27, 112 => 22, 109 => 21, 103 => 18, 100 => 17, 97 => 16, 91 => 14, 89 => 13, 79 => 5, 76 => 4, 63 => 3, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout.html.twig\" %}
{% block contentBody %}
{% set pm = app.request.query.get('pm') %}
<!-- Main content -->
<div class=\"content container mt-5\">
<div class=\"row justify-content-center d-flex\">
<!-- Login Form -->
<div class=\"col-md-4 d-flex align-items-stretch\">
<div class=\"form-container p-4 bg-white shadow-sm\">
<h2 class=\"header-text text-center\">Connecter-vous</h2>
<form action=\"\" method=\"POST\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
You are logged in as {{ app.user.userIdentifier }}, <a href=\"/logout\">Logout</a>
</div>
{% endif %}
<div class=\"form-group\">
<input type=\"email\" value=\"{{ last_username }}\" class=\"form-control login\" name=\"_username\" placeholder=\"E-mail*\" required>
</div>
<div class=\"form-group\">
<input type=\"password\" class=\"form-control login\" name=\"_password\" placeholder=\"Mot de passe*\" required>
</div>
<a href=\"{{ path('app_forgot_password') }}\" class=\"forgot-password-link font-italic text-underline\">>j'ai oublié mon mot de passe</a>
<div class=\"text-center\">
<button type=\"submit\" class=\"btn btn-login btn-custom mt-4\">Me connecter</button>
<small class=\"form-text text-muted\"><em>*Champs obligatoires</em></small>
</div>
</form>
</div>
</div>
<!-- Signup Section -->
<div class=\"col-md-4 d-flex align-items-stretch\">
<div class=\"form-container p-4 bg-white shadow-sm\">
<h2 class=\"header-text text-center\">Inscrivez-vous</h2>
<div class=\"font-16 mt-2 text-center desc-login\">
Consultez vos réservations disponibles<br>
Gérez votre planning dans votre compte<br>
Téléchargez vos factures
</div>
<div class=\"text-center no-padding-top\">
<a href=\"{{ path('client_register') }}{{pm != \"\" ? '?pm=' ~ pm : ''}}\" class=\"btn btn-login btn-custom mt-4\">Créer mon compte</a>
</div>
</div>
</div>
</div>
</div>
<style type=\"text/css\">
.no-padding-top {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Background image styling */
body {
background-image: url({{ asset('../assets/images/bg_contact.jpg') }});
background-repeat: no-repeat;
background-size: cover; /* Fait en sorte que l'image remplisse tout l'écran */
background-position: center; /* Centre l'image pour éviter les décalages */
background-attachment: fixed; /* Fixe l'image en place lors du défilement */
}
.big-wrapper {
background: linear-gradient(to bottom, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0)); /* Dégradé du haut (opaque) vers le bas (transparent) */
}
</style>
{% endblock %}
", "security/login.html.twig", "/home/coworking/www_preprod/templates/security/login.html.twig");
}
}