<?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;
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e 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->parent = false;
$this->blocks = [
];
}
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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
// line 1
if ((($tmp = !array_key_exists("componentKey", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield " ";
$context["componentKey"] = "default_security_login_form";
}
// line 4
$context["item_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 4, $this->source); })()), (isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 4, $this->source); })()));
// line 5
$context["ssoConfig"] = $this->env->getRuntime('App\Twig\Runtime\SettingRuntime')->getSettingValue(Twig\Extension\CoreExtension::constant("App\\Constants\\Setting::SSO_SETTINGS"));
// line 6
$context["ssoConfigRoute"] = null;
// line 7
yield "
";
// line 8
if ((( !(null === (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 8, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, ($context["ssoConfig"] ?? null), "ssoType", [], "any", true, true, false, 8)) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 8, $this->source); })()), "ssoType", [], "any", false, false, false, 8)))) {
// line 9
yield " ";
$context["ssoConfigRoute"] = (((CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::constant("App\\Constants\\Sso::ARRAY_SSO_ROUTES"), Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 9, $this->source); })()), "ssoType", [], "any", false, false, false, 9)), [], "array", true, true, false, 9) && !(null === CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::constant("App\\Constants\\Sso::ARRAY_SSO_ROUTES"), Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 9, $this->source); })()), "ssoType", [], "any", false, false, false, 9)), [], "array", false, false, false, 9)))) ? (CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::constant("App\\Constants\\Sso::ARRAY_SSO_ROUTES"), Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 9, $this->source); })()), "ssoType", [], "any", false, false, false, 9)), [], "array", false, false, false, 9)) : (null));
}
// line 11
yield "
";
// line 12
if (((( !(null === (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 12, $this->source); })())) && $this->env->getRuntime('App\Twig\Runtime\AppRuntime')->isModuleActive(Twig\Extension\CoreExtension::constant("App\\Constants\\Sso::MODULE_NAME"))) && (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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "attributes", [], "any", false, false, false, 12), "get", ["_route"], "method", false, false, false, 12) != "app_login_admin")) && $this->env->getRuntime('App\Twig\Runtime\TwigRuntime')->routeExist((isset($context["ssoConfigRoute"]) || array_key_exists("ssoConfigRoute", $context) ? $context["ssoConfigRoute"] : (function () { throw new RuntimeError('Variable "ssoConfigRoute" does not exist.', 12, $this->source); })())))) {
// line 13
yield " ";
$context["ssoConfigTitle"] = null;
// line 14
yield " ";
$context["ssoConfigSubtitle"] = null;
// line 15
yield " ";
$context["btnContent"] = null;
// line 16
yield "
";
// line 17
if ((($tmp = !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 17, $this->source); })()), "title", [], "any", false, false, false, 17))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 18
yield " ";
$context["ssoConfigTitle"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 18, $this->source); })()), "title", [], "any", false, false, false, 18);
// line 19
yield " ";
}
// line 20
yield "
";
// line 21
if ((($tmp = !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 21, $this->source); })()), "subtitle", [], "any", false, false, false, 21))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 22
yield " ";
$context["ssoConfigsubtitle"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 22, $this->source); })()), "subtitle", [], "any", false, false, false, 22);
// line 23
yield " ";
}
// line 24
yield "
";
// line 25
if ((($tmp = !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 25, $this->source); })()), "btnContent", [], "any", false, false, false, 25))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 26
yield " ";
$context["ssoConfigBtnContent"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 26, $this->source); })()), "btnContent", [], "any", false, false, false, 26);
// line 27
yield " ";
}
// line 28
yield "
";
// line 29
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "title", [], "any", true, true, false, 29) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 29, $this->source); })()), "title", [], "any", false, false, false, 29)))) {
// line 30
yield " ";
$context["value"] = Twig\Extension\CoreExtension::merge((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 30, $this->source); })()), ["title" => Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 30, $this->source); })()), "title", [], "any", false, false, false, 30), ["content" => (isset($context["ssoConfigTitle"]) || array_key_exists("ssoConfigTitle", $context) ? $context["ssoConfigTitle"] : (function () { throw new RuntimeError('Variable "ssoConfigTitle" does not exist.', 30, $this->source); })())])]);
// line 31
yield " ";
}
// line 32
yield "
";
// line 33
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "text", [], "any", true, true, false, 33) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 33, $this->source); })()), "text", [], "any", false, false, false, 33))) && array_key_exists("ssoConfigsubtitle", $context))) {
// line 34
yield " ";
$context["value"] = Twig\Extension\CoreExtension::merge((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 34, $this->source); })()), ["text" => Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 34, $this->source); })()), "text", [], "any", false, false, false, 34), ["content" => (isset($context["ssoConfigsubtitle"]) || array_key_exists("ssoConfigsubtitle", $context) ? $context["ssoConfigsubtitle"] : (function () { throw new RuntimeError('Variable "ssoConfigsubtitle" does not exist.', 34, $this->source); })())])]);
// line 35
yield " ";
}
// line 36
yield "
";
// line 37
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "link", [], "any", true, true, false, 37) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 37, $this->source); })()), "link", [], "any", false, false, false, 37)))) {
// line 38
yield " ";
$context["value"] = Twig\Extension\CoreExtension::merge((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 38, $this->source); })()), ["link" => Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 38, $this->source); })()), "link", [], "any", false, false, false, 38), ["content" => (isset($context["ssoConfigBtnContent"]) || array_key_exists("ssoConfigBtnContent", $context) ? $context["ssoConfigBtnContent"] : (function () { throw new RuntimeError('Variable "ssoConfigBtnContent" does not exist.', 38, $this->source); })())])]);
// line 39
yield " ";
$context["value"] = Twig\Extension\CoreExtension::merge((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 39, $this->source); })()), ["link" => Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 39, $this->source); })()), "link", [], "any", false, false, false, 39), ["route" => (isset($context["ssoConfigRoute"]) || array_key_exists("ssoConfigRoute", $context) ? $context["ssoConfigRoute"] : (function () { throw new RuntimeError('Variable "ssoConfigRoute" does not exist.', 39, $this->source); })())])]);
// line 40
yield " ";
}
// line 41
yield "
<div class=\"";
// line 42
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 42)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 42, $this->source); })()), "class", [], "any", false, false, false, 42), "html", null, true);
} else {
yield "col";
}
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 42)) {
yield " order-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 42, $this->source); })()), "order", [], "any", false, false, false, 42), "html", null, true);
}
yield "\">
";
// line 44
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 44)) {
// line 45
yield " <div class=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 45, $this->source); })()), "container", [], "any", false, false, false, 45), "html", null, true);
yield "\">
";
}
// line 47
yield "
";
// line 48
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "title", [], "any", true, true, false, 48) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 48, $this->source); })()), "title", [], "any", false, false, false, 48)))) {
// line 49
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 49, 300489844)->unwrap()->yield(CoreExtension::merge($context, ["value" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 49, $this->source); })()), "title", [], "any", false, false, false, 49), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 49, $this->source); })()) . ".title")]));
// line 54
yield " ";
}
// line 55
yield "
";
// line 56
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "text", [], "any", true, true, false, 56) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 56, $this->source); })()), "text", [], "any", false, false, false, 56)))) {
// line 57
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 57, 975302132)->unwrap()->yield(CoreExtension::merge($context, ["value" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 57, $this->source); })()), "text", [], "any", false, false, false, 57), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 57, $this->source); })()) . ".text")]));
// line 62
yield " ";
}
// line 63
yield "
";
// line 64
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "link", [], "any", true, true, false, 64) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 64, $this->source); })()), "link", [], "any", false, false, false, 64)))) {
// line 65
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 65, 536574347)->unwrap()->yield(CoreExtension::merge($context, ["value" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 65, $this->source); })()), "link", [], "any", false, false, false, 65), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 65, $this->source); })()) . ".link")]));
// line 72
yield " ";
}
// line 73
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 73)) {
// line 74
yield " </div>
";
}
// line 76
yield " </div>
";
} else {
// line 78
yield " <div class=\"";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 78)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 78, $this->source); })()), "class", [], "any", false, false, false, 78), "html", null, true);
} else {
yield "col";
}
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 78)) {
yield " order-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 78, $this->source); })()), "order", [], "any", false, false, false, 78), "html", null, true);
}
yield "\">
";
// line 80
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 80)) {
// line 81
yield " <div class=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 81, $this->source); })()), "container", [], "any", false, false, false, 81), "html", null, true);
yield "\">
";
}
// line 83
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 83, 1677447570)->unwrap()->yield(CoreExtension::merge($context, ["value" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 83, $this->source); })()), "title", [], "any", false, false, false, 83), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 83, $this->source); })()) . ".title")]));
// line 88
yield "
";
// line 89
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 89, 1095218059)->unwrap()->yield(CoreExtension::merge($context, ["value" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 89, $this->source); })()), "text", [], "any", false, false, false, 89), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 89, $this->source); })()) . ".text")]));
// line 94
yield "
";
// line 95
$context["formData"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 95, $this->source); })()), "form", [], "any", false, false, false, 95);
// line 96
yield "
";
// line 97
$context["columns"] = ["label" => "col-12", "input" => "col-12"];
// line 98
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "columns", [], "any", true, true, false, 98)) {
// line 99
yield " ";
$context["columns"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 99, $this->source); })()), "columns", [], "any", false, false, false, 99);
// line 100
yield " ";
}
// line 101
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 101, $this->source); })()), 'form_start', ["attr" => ["action" => "login", "class" => "data-validation"]]);
yield "
";
// line 104
yield " ";
// line 105
yield " ";
// line 106
yield "
";
// line 108
yield " ";
$context["labelColor"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "label_color", [], "any", true, true, false, 108)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 108, $this->source); })()), "label_color", [], "any", false, false, false, 108)) : (""));
// line 109
yield "
";
// line 120
yield " ";
$context["labels"] = ["email" => $this->extensions['App\Twig\TwigExtension']->customTrans("email"), "password" => $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe")];
// line 124
yield "
";
// line 125
$context["placeholders"] = ["email" => "", "password" => ""];
// line 129
yield "
";
// line 130
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", true, true, false, 130)) {
// line 131
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", false, true, false, 131), "email", [], "any", true, true, false, 131)) {
// line 132
yield "
";
// line 133
if ($this->extensions['App\Twig\TwigExtension']->isKeyUsable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 133, $this->source); })()), "override", [], "any", false, false, false, 133), "email", [], "any", false, false, false, 133), "label")) {
// line 134
yield " ";
$context["labels"] = Twig\Extension\CoreExtension::merge((isset($context["labels"]) || array_key_exists("labels", $context) ? $context["labels"] : (function () { throw new RuntimeError('Variable "labels" does not exist.', 134, $this->source); })()), ["email" => $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 134, $this->source); })()), "override", [], "any", false, false, false, 134), "email", [], "any", false, false, false, 134), "label", [], "any", false, false, false, 134))]);
// line 135
yield " ";
}
// line 136
yield "
";
// line 137
if ($this->extensions['App\Twig\TwigExtension']->isKeyUsable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 137, $this->source); })()), "override", [], "any", false, false, false, 137), "email", [], "any", false, false, false, 137), "placeholder")) {
// line 138
yield " ";
$context["placeholders"] = Twig\Extension\CoreExtension::merge((isset($context["placeholders"]) || array_key_exists("placeholders", $context) ? $context["placeholders"] : (function () { throw new RuntimeError('Variable "placeholders" does not exist.', 138, $this->source); })()), ["email" => $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 138, $this->source); })()), "override", [], "any", false, false, false, 138), "email", [], "any", false, false, false, 138), "placeholder", [], "any", false, false, false, 138))]);
// line 139
yield " ";
}
// line 140
yield "
";
}
// line 142
yield "
";
// line 143
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", false, true, false, 143), "password", [], "any", true, true, false, 143)) {
// line 144
yield "
";
// line 145
if ($this->extensions['App\Twig\TwigExtension']->isKeyUsable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 145, $this->source); })()), "override", [], "any", false, false, false, 145), "password", [], "any", false, false, false, 145), "label")) {
// line 146
yield " ";
$context["labels"] = Twig\Extension\CoreExtension::merge((isset($context["labels"]) || array_key_exists("labels", $context) ? $context["labels"] : (function () { throw new RuntimeError('Variable "labels" does not exist.', 146, $this->source); })()), ["password" => $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 146, $this->source); })()), "override", [], "any", false, false, false, 146), "password", [], "any", false, false, false, 146), "label", [], "any", false, false, false, 146))]);
// line 147
yield " ";
}
// line 148
yield "
";
// line 149
if ($this->extensions['App\Twig\TwigExtension']->isKeyUsable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 149, $this->source); })()), "override", [], "any", false, false, false, 149), "password", [], "any", false, false, false, 149), "placeholder")) {
// line 150
yield " ";
$context["placeholders"] = Twig\Extension\CoreExtension::merge((isset($context["placeholders"]) || array_key_exists("placeholders", $context) ? $context["placeholders"] : (function () { throw new RuntimeError('Variable "placeholders" does not exist.', 150, $this->source); })()), ["password" => $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 150, $this->source); })()), "override", [], "any", false, false, false, 150), "password", [], "any", false, false, false, 150), "placeholder", [], "any", false, false, false, 150))]);
// line 151
yield " ";
}
// line 152
yield "
";
}
// line 154
yield " ";
}
// line 155
yield "
<div class=\"";
// line 156
if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 156)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 156, $this->source); })()), "wrapper", [], "any", false, false, false, 156), "html", null, true);
} else {
yield "row mb-3 ";
}
yield "\">
<div class=\"";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 157, $this->source); })()), "label", [], "any", false, false, false, 157), "html", null, true);
yield "\">
";
// line 158
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 158, $this->source); })()), "email", [], "any", false, false, false, 158), 'label', ["label_attr" => ["class" => ("form-label " . (isset($context["labelColor"]) || array_key_exists("labelColor", $context) ? $context["labelColor"] : (function () { throw new RuntimeError('Variable "labelColor" does not exist.', 158, $this->source); })()))]] + (CoreExtension::testEmpty($_label_ = CoreExtension::getAttribute($this->env, $this->source, (isset($context["labels"]) || array_key_exists("labels", $context) ? $context["labels"] : (function () { throw new RuntimeError('Variable "labels" does not exist.', 158, $this->source); })()), "email", [], "any", false, false, false, 158)) ? [] : ["label" => $_label_]));
yield "
</div>
<div class=\"";
// line 160
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 160, $this->source); })()), "input", [], "any", false, false, false, 160), "html", null, true);
yield "\">
";
// line 161
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 161, $this->source); })()), "email", [], "any", false, false, false, 161), 'widget', ["attr" => ["placeholder" => $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["placeholders"]) || array_key_exists("placeholders", $context) ? $context["placeholders"] : (function () { throw new RuntimeError('Variable "placeholders" does not exist.', 161, $this->source); })()), "email", [], "any", false, false, false, 161))]]);
yield "
</div>
</div>
<div class=\"";
// line 165
if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 165)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 165, $this->source); })()), "wrapper", [], "any", false, false, false, 165), "html", null, true);
} else {
yield "row mb-3 ";
}
yield "\">
<div class=\"";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 166, $this->source); })()), "label", [], "any", false, false, false, 166), "html", null, true);
yield "\">
";
// line 167
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 167, $this->source); })()), "password", [], "any", false, false, false, 167), 'label', ["label_attr" => ["class" => ("form-label " . (isset($context["labelColor"]) || array_key_exists("labelColor", $context) ? $context["labelColor"] : (function () { throw new RuntimeError('Variable "labelColor" does not exist.', 167, $this->source); })()))]] + (CoreExtension::testEmpty($_label_ = CoreExtension::getAttribute($this->env, $this->source, (isset($context["labels"]) || array_key_exists("labels", $context) ? $context["labels"] : (function () { throw new RuntimeError('Variable "labels" does not exist.', 167, $this->source); })()), "password", [], "any", false, false, false, 167)) ? [] : ["label" => $_label_]));
yield "
</div>
<div class=\"";
// line 170
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 170, $this->source); })()), "input", [], "any", false, false, false, 170), "html", null, true);
yield " position-relative\">
";
// line 171
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 171, $this->source); })()), "password", [], "any", false, false, false, 171), 'widget', ["attr" => ["placeholder" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["placeholders"]) || array_key_exists("placeholders", $context) ? $context["placeholders"] : (function () { throw new RuntimeError('Variable "placeholders" does not exist.', 171, $this->source); })()), "password", [], "any", false, false, false, 171)]]);
yield "
</div>
</div>
<div class=\"d-flex";
// line 175
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", true, true, false, 175) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 175), "class", [], "any", true, true, false, 175))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 175, $this->source); })()), "actions", [], "any", false, false, false, 175), "class", [], "any", false, false, false, 175), "html", null, true);
}
yield " \">
<div class=\"wrapper-remember-me ";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 176, $this->source); })()), "actions", [], "any", false, false, false, 176), "remember_me", [], "any", false, false, false, 176), "col", [], "any", false, false, false, 176), "html", null, true);
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 176), "remember_me", [], "any", true, true, false, 176)) {
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 176), "remember_me", [], "any", false, true, false, 176), "class", [], "any", true, true, false, 176)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 176, $this->source); })()), "actions", [], "any", false, false, false, 176), "remember_me", [], "any", false, false, false, 176), "class", [], "any", false, false, false, 176), "html", null, true);
}
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 176), "remember_me", [], "any", false, true, false, 176), "order", [], "any", true, true, false, 176)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 176, $this->source); })()), "actions", [], "any", false, false, false, 176), "remember_me", [], "any", false, false, false, 176), "order", [], "any", false, false, false, 176), "html", null, true);
}
}
yield "\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">";
// line 179
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("se souvenir de moi")), "html", null, true);
yield "</label>
</div>
<div class=\"";
// line 181
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 181, $this->source); })()), "actions", [], "any", false, false, false, 181), "connect", [], "any", false, false, false, 181), "col", [], "any", false, false, false, 181), "html", null, true);
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 181), "connect", [], "any", false, true, false, 181), "order", [], "any", true, true, false, 181)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 181, $this->source); })()), "actions", [], "any", false, false, false, 181), "connect", [], "any", false, false, false, 181), "order", [], "any", false, false, false, 181), "html", null, true);
}
yield "\">
<button type=\"submit\"
class=\"capitalize-first-word btn";
// line 183
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 183), "connect", [], "any", false, true, false, 183), "class", [], "any", true, true, false, 183)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 183, $this->source); })()), "actions", [], "any", false, false, false, 183), "connect", [], "any", false, false, false, 183), "class", [], "any", false, false, false, 183), "html", null, true);
}
yield "\"
name=\"form_button\" value=\"login\">
";
// line 185
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 185), "connect", [], "any", false, true, false, 185), "content", [], "any", true, true, false, 185)) {
yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 185, $this->source); })()), "actions", [], "any", false, false, false, 185), "connect", [], "any", false, false, false, 185), "content", [], "any", false, false, false, 185));
} else {
yield $this->extensions['App\Twig\TwigExtension']->customTrans("connexion");
}
// line 186
yield " </button>
</div>
<div class=\"";
// line 188
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 188, $this->source); })()), "actions", [], "any", false, false, false, 188), "forgot_password", [], "any", false, false, false, 188), "col", [], "any", false, false, false, 188), "html", null, true);
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 188), "forgot_password", [], "any", false, true, false, 188), "order", [], "any", true, true, false, 188)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 188, $this->source); })()), "actions", [], "any", false, false, false, 188), "forgot_password", [], "any", false, false, false, 188), "order", [], "any", false, false, false, 188), "html", null, true);
}
yield "\">
<a href=\"";
// line 189
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\"
";
// line 190
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 190), "forgot_password", [], "any", true, true, false, 190) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 190), "forgot_password", [], "any", false, true, false, 190), "class", [], "any", true, true, false, 190))) {
yield "class=\"reset-password ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 190, $this->source); })()), "actions", [], "any", false, false, false, 190), "forgot_password", [], "any", false, false, false, 190), "class", [], "any", false, false, false, 190), "html", null, true);
yield "\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe oublié ?")), "html", null, true);
yield "</a>
</div>
";
// line 192
if ((($tmp = (isset($context["hasFormRegister"]) || array_key_exists("hasFormRegister", $context) ? $context["hasFormRegister"] : (function () { throw new RuntimeError('Variable "hasFormRegister" does not exist.', 192, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 193
yield " <div class=\"";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 193), "first_connect", [], "any", true, true, false, 193)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 193, $this->source); })()), "actions", [], "any", false, false, false, 193), "first_connect", [], "any", false, false, false, 193), "col", [], "any", false, false, false, 193), "html", null, true);
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 193), "first_connect", [], "any", false, true, false, 193), "order", [], "any", true, true, false, 193)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 193, $this->source); })()), "actions", [], "any", false, false, false, 193), "first_connect", [], "any", false, false, false, 193), "order", [], "any", false, false, false, 193), "html", null, true);
}
}
yield "\">
<a href=\"";
// line 194
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
yield "\"
class=\"capitalize-first-word btn";
// line 195
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 195), "first_connect", [], "any", true, true, false, 195) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 195), "first_connect", [], "any", false, true, false, 195), "class", [], "any", true, true, false, 195))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 195, $this->source); })()), "actions", [], "any", false, false, false, 195), "first_connect", [], "any", false, false, false, 195), "class", [], "any", false, false, false, 195), "html", null, true);
}
yield "\">
";
// line 196
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 196), "first_connect", [], "any", true, true, false, 196) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 196), "first_connect", [], "any", false, true, false, 196), "content", [], "any", true, true, false, 196))) {
yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 196, $this->source); })()), "actions", [], "any", false, false, false, 196), "first_connect", [], "any", false, false, false, 196), "content", [], "any", false, false, false, 196));
} else {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("Première connexion")), "html", null, true);
}
// line 197
yield " </a>
</div>
";
}
// line 200
yield "
<small class=\"";
// line 201
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "required", [], "any", true, true, false, 201)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 201, $this->source); })()), "required", [], "any", false, false, false, 201), "html", null, true);
}
yield "\">* ";
yield $this->extensions['App\Twig\TwigExtension']->customTrans("info.contact.required");
yield "</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 204
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
";
// line 205
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 205, $this->source); })()), 'form_end');
yield "
";
// line 206
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 206)) {
// line 207
yield " </div>
";
}
// line 209
yield " </div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___300489844 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 49
return "@component/_template/_atom_wrapper.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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
$this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 49);
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 50
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(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", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
// line 51
yield " ";
yield from $this->load("@component/atom/title.html.twig", 51)->unwrap()->yield(CoreExtension::merge($context, ["title" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 51, $this->source); })())]));
// line 52
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 884 => 52, 881 => 51, 868 => 50, 845 => 49, 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___975302132 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 57
return "@component/_template/_atom_wrapper.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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
$this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 57);
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 58
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(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", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
// line 59
yield " ";
yield from $this->load("@component/atom/paragraph.html.twig", 59)->unwrap()->yield(CoreExtension::merge($context, ["value" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 59, $this->source); })())]));
// line 60
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1197 => 60, 1194 => 59, 1181 => 58, 1158 => 57, 884 => 52, 881 => 51, 868 => 50, 845 => 49, 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___536574347 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 65
return "@component/_template/_atom_wrapper.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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
$this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 65);
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 66
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(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", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
// line 67
yield " <div ";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 67) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", false, true, false, 67), "class", [], "any", true, true, false, 67))) {
yield "class=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 67, $this->source); })()), "wrapper", [], "any", false, false, false, 67), "class", [], "any", false, false, false, 67), "html", null, true);
yield "\"";
}
yield ">
";
// line 68
yield from $this->load("@component/atom/link.html.twig", 68)->unwrap()->yield(CoreExtension::merge($context, ["link" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 68, $this->source); })())]));
// line 69
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1518 => 69, 1516 => 68, 1507 => 67, 1494 => 66, 1471 => 65, 1197 => 60, 1194 => 59, 1181 => 58, 1158 => 57, 884 => 52, 881 => 51, 868 => 50, 845 => 49, 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___1677447570 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 83
return "@component/_template/_atom_wrapper.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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
$this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 83);
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 84
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(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", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
// line 85
yield " ";
yield from $this->load("@component/atom/title.html.twig", 85)->unwrap()->yield(CoreExtension::merge($context, ["title" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 85, $this->source); })())]));
// line 86
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1832 => 86, 1829 => 85, 1816 => 84, 1793 => 83, 1518 => 69, 1516 => 68, 1507 => 67, 1494 => 66, 1471 => 65, 1197 => 60, 1194 => 59, 1181 => 58, 1158 => 57, 884 => 52, 881 => 51, 868 => 50, 845 => 49, 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}
/* @component/molecule/default_security_login_form.html.twig */
class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___1095218059 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 = [
'atom' => [$this, 'block_atom'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 89
return "@component/_template/_atom_wrapper.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", "@component/molecule/default_security_login_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
$this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 89);
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 90
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_atom(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", "atom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
// line 91
yield " ";
yield from $this->load("@component/atom/paragraph.html.twig", 91)->unwrap()->yield(CoreExtension::merge($context, ["value" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 91, $this->source); })())]));
// line 92
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@component/molecule/default_security_login_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 2145 => 92, 2142 => 91, 2129 => 90, 2106 => 89, 1832 => 86, 1829 => 85, 1816 => 84, 1793 => 83, 1518 => 69, 1516 => 68, 1507 => 67, 1494 => 66, 1471 => 65, 1197 => 60, 1194 => 59, 1181 => 58, 1158 => 57, 884 => 52, 881 => 51, 868 => 50, 845 => 49, 569 => 209, 565 => 207, 563 => 206, 559 => 205, 555 => 204, 545 => 201, 542 => 200, 537 => 197, 531 => 196, 524 => 195, 520 => 194, 507 => 193, 505 => 192, 494 => 190, 490 => 189, 481 => 188, 477 => 186, 471 => 185, 463 => 183, 453 => 181, 448 => 179, 431 => 176, 424 => 175, 417 => 171, 413 => 170, 407 => 167, 403 => 166, 395 => 165, 388 => 161, 384 => 160, 379 => 158, 375 => 157, 367 => 156, 364 => 155, 361 => 154, 357 => 152, 354 => 151, 351 => 150, 349 => 149, 346 => 148, 343 => 147, 340 => 146, 338 => 145, 335 => 144, 333 => 143, 330 => 142, 326 => 140, 323 => 139, 320 => 138, 318 => 137, 315 => 136, 312 => 135, 309 => 134, 307 => 133, 304 => 132, 301 => 131, 299 => 130, 296 => 129, 294 => 125, 291 => 124, 288 => 120, 285 => 109, 282 => 108, 279 => 106, 277 => 105, 275 => 104, 269 => 101, 266 => 100, 263 => 99, 260 => 98, 258 => 97, 255 => 96, 253 => 95, 250 => 94, 248 => 89, 245 => 88, 242 => 83, 236 => 81, 234 => 80, 220 => 78, 216 => 76, 212 => 74, 209 => 73, 206 => 72, 203 => 65, 201 => 64, 198 => 63, 195 => 62, 192 => 57, 190 => 56, 187 => 55, 184 => 54, 181 => 49, 179 => 48, 176 => 47, 170 => 45, 168 => 44, 155 => 42, 152 => 41, 149 => 40, 146 => 39, 143 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 124 => 31, 121 => 30, 119 => 29, 116 => 28, 113 => 27, 110 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 97 => 21, 94 => 20, 91 => 19, 88 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 65 => 9, 63 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"default_security_login_form\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
{% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
{% set ssoConfigRoute = null %}
{% if ssoConfig is not null and ssoConfig.ssoType is defined and ssoConfig.ssoType is not null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] ?? null %}
{% endif %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" and routeExist(ssoConfigRoute) %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% if ssoConfig.title is not null %}
{% set ssoConfigTitle = ssoConfig.title %}
{% endif %}
{% if ssoConfig.subtitle is not null %}
{% set ssoConfigsubtitle = ssoConfig.subtitle %}
{% endif %}
{% if ssoConfig.btnContent is not null %}
{% set ssoConfigBtnContent = ssoConfig.btnContent %}
{% endif %}
{% if value.title is defined and value.title is not null %}
{% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
{% endif %}
{% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
{% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
{% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
{% endif %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.title is defined and value.title is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include'@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.text is defined and value.text is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include'@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.link is defined and value.link is not null %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
{% block atom %}
<div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
{% include '@component/atom/link.html.twig' with {'link': value} %}
</div>
{% endblock atom %}
{% endembed %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
{% block atom %}
{% include '@component/atom/title.html.twig' with {'title': value} %}
{% endblock atom %}
{% endembed %}
{% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
{% block atom %}
{% include '@component/atom/paragraph.html.twig' with {'value': value} %}
{% endblock atom %}
{% endembed %}
{% set formData = value.form %}
{% set columns = { label: 'col-12', input: 'col-12'} %}
{% if formData.columns is defined %}
{% set columns = formData.columns %}
{% endif %}
{{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
{# {% if error %}#}
{# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
{# {% endif %}#}
{# labelColor est une clef dépréciée du yaml qui disparait au profit d'un thème global. Les sites généré via WI n'ont pas cette clef #}
{% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
{#
Override des labels si besoin
Ajouter une clef override dans le yaml du composant dans form
[...]
form:
override:
email:
label: 'Mon label'
[...]
#}
{% set labels = {
email: 'email'|trans,
password: 'mot de passe'|trans,
} %}
{% set placeholders = {
email: '',
password: '',
} %}
{% if formData.override is defined %}
{% if formData.override.email is defined %}
{% if formData.override.email is key_usable('label') %}
{% set labels = labels|merge({email: formData.override.email.label|trans}) %}
{% endif %}
{% if formData.override.email is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
{% endif %}
{% endif %}
{% if formData.override.password is defined %}
{% if formData.override.password is key_usable('label') %}
{% set labels = labels|merge({password: formData.override.password.label|trans}) %}
{% endif %}
{% if formData.override.password is key_usable('placeholder') %}
{% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
{% endif %}
{% endif %}
{% endif %}
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }}\">
{{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
</div>
</div>
<div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
<div class=\"{{ columns.label }}\">
{{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
</div>
<div class=\"{{ columns.input }} position-relative\">
{{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
</div>
</div>
<div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
<div class=\"wrapper-remember-me {{ formData.actions.remember_me.col }} {% if formData.actions.remember_me is defined %}{% if formData.actions.remember_me.class is defined %} {{ formData.actions.remember_me.class }}{% endif %}{% if formData.actions.remember_me.order is defined %} {{ formData.actions.remember_me.order }}{% endif %}{% endif %}\">
<input type=\"hidden\" name=\"_target_path\" value=\"/\" />
<input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
<label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
</div>
<div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
<button type=\"submit\"
class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
name=\"form_button\" value=\"login\">
{% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
</button>
</div>
<div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
<a href=\"{{ path('app_forgot_password_request') }}\"
{% if formData.actions.forgot_password is defined and formData.actions.forgot_password.class is defined %}class=\"reset-password {{ formData.actions.forgot_password.class }}\"{% endif %}>{{ 'mot de passe oublié ?'|trans|capitalize }}</a>
</div>
{% if hasFormRegister %}
<div class=\"{% if formData.actions.first_connect is defined %} {{ formData.actions.first_connect.col }} {% if formData.actions.first_connect.order is defined %} {{ formData.actions.first_connect.order }}{% endif %}{% endif %}\">
<a href=\"{{ path('app_register') }}\"
class=\"capitalize-first-word btn{% if formData.actions.first_connect is defined and formData.actions.first_connect.class is defined %} {{ formData.actions.first_connect.class }}{% endif %}\">
{% if formData.actions.first_connect is defined and formData.actions.first_connect.content is defined %}{{ formData.actions.first_connect.content|trans|raw }}{% else %}{{ 'Première connexion'|trans|capitalize }}{% endif %}
</a>
</div>
{% endif %}
<small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_end(loginForm) }}
{% if value.container is defined %}
</div>
{% endif %}
</div>
{% endif %}
", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
}
}