<?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
yield "
";
// line 7
if ((( !(null === (isset($context["ssoConfig"]) || array_key_exists("ssoConfig", $context) ? $context["ssoConfig"] : (function () { throw new RuntimeError('Variable "ssoConfig" does not exist.', 7, $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.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "attributes", [], "any", false, false, false, 7), "get", ["_route"], "method", false, false, false, 7) != "app_login_admin"))) {
// line 8
yield " ";
$context["ssoConfigTitle"] = null;
// line 9
yield " ";
$context["ssoConfigSubtitle"] = null;
// line 10
yield " ";
$context["btnContent"] = null;
// line 11
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.', 11, $this->source); })()), "ssoType", [], "any", false, false, false, 11)), [], "array", false, false, false, 11);
// line 12
yield "
";
// line 13
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.', 13, $this->source); })()), "title", [], "any", false, false, false, 13))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 14
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.', 14, $this->source); })()), "title", [], "any", false, false, false, 14);
// line 15
yield " ";
}
// 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); })()), "subtitle", [], "any", false, false, false, 17))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 18
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.', 18, $this->source); })()), "subtitle", [], "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); })()), "btnContent", [], "any", false, false, false, 21))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 22
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.', 22, $this->source); })()), "btnContent", [], "any", false, false, false, 22);
// line 23
yield " ";
}
// line 24
yield "
";
// line 25
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "title", [], "any", true, true, false, 25) && !(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.', 25, $this->source); })()), "title", [], "any", false, false, false, 25)))) {
// line 26
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.', 26, $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.', 26, $this->source); })()), "title", [], "any", false, false, false, 26), ["content" => (isset($context["ssoConfigTitle"]) || array_key_exists("ssoConfigTitle", $context) ? $context["ssoConfigTitle"] : (function () { throw new RuntimeError('Variable "ssoConfigTitle" does not exist.', 26, $this->source); })())])]);
// line 27
yield " ";
}
// line 28
yield "
";
// line 29
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "text", [], "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); })()), "text", [], "any", false, false, false, 29))) && array_key_exists("ssoConfigsubtitle", $context))) {
// 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); })()), ["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.', 30, $this->source); })()), "text", [], "any", false, false, false, 30), ["content" => (isset($context["ssoConfigsubtitle"]) || array_key_exists("ssoConfigsubtitle", $context) ? $context["ssoConfigsubtitle"] : (function () { throw new RuntimeError('Variable "ssoConfigsubtitle" does not exist.', 30, $this->source); })())])]);
// line 31
yield " ";
}
// line 32
yield "
";
// line 33
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "link", [], "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); })()), "link", [], "any", false, false, false, 33)))) {
// 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); })()), ["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.', 34, $this->source); })()), "link", [], "any", false, false, false, 34), ["content" => (isset($context["ssoConfigBtnContent"]) || array_key_exists("ssoConfigBtnContent", $context) ? $context["ssoConfigBtnContent"] : (function () { throw new RuntimeError('Variable "ssoConfigBtnContent" does not exist.', 34, $this->source); })())])]);
// line 35
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.', 35, $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.', 35, $this->source); })()), "link", [], "any", false, false, false, 35), ["route" => (isset($context["ssoConfigRoute"]) || array_key_exists("ssoConfigRoute", $context) ? $context["ssoConfigRoute"] : (function () { throw new RuntimeError('Variable "ssoConfigRoute" does not exist.', 35, $this->source); })())])]);
// line 36
yield " ";
}
// line 37
yield "
<div class=\"";
// line 38
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 38)) {
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.', 38, $this->source); })()), "class", [], "any", false, false, false, 38), "html", null, true);
} else {
yield "col";
}
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 38)) {
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.', 38, $this->source); })()), "order", [], "any", false, false, false, 38), "html", null, true);
}
yield "\">
";
// line 40
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 40)) {
// line 41
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.', 41, $this->source); })()), "container", [], "any", false, false, false, 41), "html", null, true);
yield "\">
";
}
// line 43
yield "
";
// line 44
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "title", [], "any", true, true, false, 44) && !(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.', 44, $this->source); })()), "title", [], "any", false, false, false, 44)))) {
// line 45
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 45, 237065695)->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.', 45, $this->source); })()), "title", [], "any", false, false, false, 45), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 45, $this->source); })()) . ".title")]));
// line 50
yield " ";
}
// line 51
yield "
";
// line 52
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "text", [], "any", true, true, false, 52) && !(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.', 52, $this->source); })()), "text", [], "any", false, false, false, 52)))) {
// line 53
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 53, 2057418059)->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.', 53, $this->source); })()), "text", [], "any", false, false, false, 53), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 53, $this->source); })()) . ".text")]));
// line 58
yield " ";
}
// line 59
yield "
";
// line 60
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "link", [], "any", true, true, false, 60) && !(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.', 60, $this->source); })()), "link", [], "any", false, false, false, 60)))) {
// line 61
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 61, 353997766)->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.', 61, $this->source); })()), "link", [], "any", false, false, false, 61), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 61, $this->source); })()) . ".link")]));
// line 68
yield " ";
}
// line 69
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 69)) {
// line 70
yield " </div>
";
}
// line 72
yield " </div>
";
} else {
// line 74
yield " <div class=\"";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 74)) {
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.', 74, $this->source); })()), "class", [], "any", false, false, false, 74), "html", null, true);
} else {
yield "col";
}
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 74)) {
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.', 74, $this->source); })()), "order", [], "any", false, false, false, 74), "html", null, true);
}
yield "\">
";
// line 76
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 76)) {
// line 77
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.', 77, $this->source); })()), "container", [], "any", false, false, false, 77), "html", null, true);
yield "\">
";
}
// line 79
yield " ";
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 79, 1521563645)->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.', 79, $this->source); })()), "title", [], "any", false, false, false, 79), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 79, $this->source); })()) . ".title")]));
// line 84
yield "
";
// line 85
yield from $this->load("@component/molecule/default_security_login_form.html.twig", 85, 1087272291)->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.', 85, $this->source); })()), "text", [], "any", false, false, false, 85), "atom_key" => ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 85, $this->source); })()) . ".text")]));
// line 90
yield "
";
// line 91
$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.', 91, $this->source); })()), "form", [], "any", false, false, false, 91);
// line 92
yield "
";
// line 93
$context["columns"] = ["label" => "col-12", "input" => "col-12"];
// line 94
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "columns", [], "any", true, true, false, 94)) {
// line 95
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.', 95, $this->source); })()), "columns", [], "any", false, false, false, 95);
// line 96
yield " ";
}
// line 97
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.', 97, $this->source); })()), 'form_start', ["attr" => ["action" => "login", "class" => "data-validation"]]);
yield "
";
// line 100
yield " ";
// line 101
yield " ";
// line 102
yield "
";
// line 104
yield " ";
$context["labelColor"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "label_color", [], "any", true, true, false, 104)) ? (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.', 104, $this->source); })()), "label_color", [], "any", false, false, false, 104)) : (""));
// line 105
yield "
";
// line 116
yield " ";
$context["labels"] = ["email" => $this->extensions['App\Twig\TwigExtension']->customTrans("email"), "password" => $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe")];
// line 120
yield "
";
// line 121
$context["placeholders"] = ["email" => "", "password" => ""];
// line 125
yield "
";
// line 126
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", true, true, false, 126)) {
// line 127
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", false, true, false, 127), "email", [], "any", true, true, false, 127)) {
// line 128
yield "
";
// line 129
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.', 129, $this->source); })()), "override", [], "any", false, false, false, 129), "email", [], "any", false, false, false, 129), "label")) {
// line 130
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.', 130, $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.', 130, $this->source); })()), "override", [], "any", false, false, false, 130), "email", [], "any", false, false, false, 130), "label", [], "any", false, false, false, 130))]);
// line 131
yield " ";
}
// 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), "placeholder")) {
// line 134
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.', 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), "placeholder", [], "any", false, false, false, 134))]);
// line 135
yield " ";
}
// line 136
yield "
";
}
// line 138
yield "
";
// line 139
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", false, true, false, 139), "password", [], "any", true, true, false, 139)) {
// line 140
yield "
";
// line 141
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.', 141, $this->source); })()), "override", [], "any", false, false, false, 141), "password", [], "any", false, false, false, 141), "label")) {
// line 142
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.', 142, $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.', 142, $this->source); })()), "override", [], "any", false, false, false, 142), "password", [], "any", false, false, false, 142), "label", [], "any", false, false, false, 142))]);
// line 143
yield " ";
}
// 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), "placeholder")) {
// line 146
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.', 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), "placeholder", [], "any", false, false, false, 146))]);
// line 147
yield " ";
}
// line 148
yield "
";
}
// line 150
yield " ";
}
// line 151
yield "
<div class=\"";
// line 152
if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 152)) {
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.', 152, $this->source); })()), "wrapper", [], "any", false, false, false, 152), "html", null, true);
} else {
yield "row mb-3 ";
}
yield "\">
<div class=\"";
// line 153
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.', 153, $this->source); })()), "label", [], "any", false, false, false, 153), "html", null, true);
yield "\">
";
// line 154
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.', 154, $this->source); })()), "email", [], "any", false, false, false, 154), '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.', 154, $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.', 154, $this->source); })()), "email", [], "any", false, false, false, 154)) ? [] : ["label" => $_label_]));
yield "
</div>
<div class=\"";
// line 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); })()), "input", [], "any", false, false, false, 156), "html", null, true);
yield "\">
";
// line 157
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.', 157, $this->source); })()), "email", [], "any", false, false, false, 157), '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.', 157, $this->source); })()), "email", [], "any", false, false, false, 157))]]);
yield "
</div>
</div>
<div class=\"";
// line 161
if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 161)) {
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.', 161, $this->source); })()), "wrapper", [], "any", false, false, false, 161), "html", null, true);
} else {
yield "row mb-3 ";
}
yield "\">
<div class=\"";
// line 162
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.', 162, $this->source); })()), "label", [], "any", false, false, false, 162), "html", null, true);
yield "\">
";
// line 163
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.', 163, $this->source); })()), "password", [], "any", false, false, false, 163), '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.', 163, $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.', 163, $this->source); })()), "password", [], "any", false, false, false, 163)) ? [] : ["label" => $_label_]));
yield "
</div>
<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); })()), "input", [], "any", false, false, false, 166), "html", null, true);
yield " position-relative\">
";
// 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), '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.', 167, $this->source); })()), "password", [], "any", false, false, false, 167)]]);
yield "
</div>
</div>
<div class=\"d-flex";
// line 171
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", true, true, false, 171) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 171), "class", [], "any", true, true, false, 171))) {
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.', 171, $this->source); })()), "actions", [], "any", false, false, false, 171), "class", [], "any", false, false, false, 171), "html", null, true);
}
yield " \">
<div class=\"wrapper-remember-me ";
// line 172
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.', 172, $this->source); })()), "actions", [], "any", false, false, false, 172), "remember_me", [], "any", false, false, false, 172), "col", [], "any", false, false, false, 172), "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, 172), "remember_me", [], "any", true, true, false, 172)) {
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, 172), "remember_me", [], "any", false, true, false, 172), "class", [], "any", true, true, false, 172)) {
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.', 172, $this->source); })()), "actions", [], "any", false, false, false, 172), "remember_me", [], "any", false, false, false, 172), "class", [], "any", false, false, false, 172), "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, 172), "remember_me", [], "any", false, true, false, 172), "order", [], "any", true, true, false, 172)) {
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.', 172, $this->source); })()), "actions", [], "any", false, false, false, 172), "remember_me", [], "any", false, false, false, 172), "order", [], "any", false, false, false, 172), "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 175
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 177
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.', 177, $this->source); })()), "actions", [], "any", false, false, false, 177), "connect", [], "any", false, false, false, 177), "col", [], "any", false, false, false, 177), "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, 177), "connect", [], "any", false, true, false, 177), "order", [], "any", true, true, false, 177)) {
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.', 177, $this->source); })()), "actions", [], "any", false, false, false, 177), "connect", [], "any", false, false, false, 177), "order", [], "any", false, false, false, 177), "html", null, true);
}
yield "\">
<button type=\"submit\"
class=\"capitalize-first-word btn";
// line 179
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, 179), "connect", [], "any", false, true, false, 179), "class", [], "any", true, true, false, 179)) {
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.', 179, $this->source); })()), "actions", [], "any", false, false, false, 179), "connect", [], "any", false, false, false, 179), "class", [], "any", false, false, false, 179), "html", null, true);
}
yield "\"
name=\"form_button\" value=\"login\">
";
// line 181
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), "content", [], "any", true, true, false, 181)) {
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.', 181, $this->source); })()), "actions", [], "any", false, false, false, 181), "connect", [], "any", false, false, false, 181), "content", [], "any", false, false, false, 181));
} else {
yield $this->extensions['App\Twig\TwigExtension']->customTrans("connexion");
}
// line 182
yield " </button>
</div>
<div class=\"";
// line 184
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.', 184, $this->source); })()), "actions", [], "any", false, false, false, 184), "forgot_password", [], "any", false, false, false, 184), "col", [], "any", false, false, false, 184), "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, 184), "forgot_password", [], "any", false, true, false, 184), "order", [], "any", true, true, false, 184)) {
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.', 184, $this->source); })()), "actions", [], "any", false, false, false, 184), "forgot_password", [], "any", false, false, false, 184), "order", [], "any", false, false, false, 184), "html", null, true);
}
yield "\">
<a href=\"";
// line 185
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\"
";
// line 186
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 186), "forgot_password", [], "any", true, true, false, 186) && 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, 186), "forgot_password", [], "any", false, true, false, 186), "class", [], "any", true, true, false, 186))) {
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.', 186, $this->source); })()), "actions", [], "any", false, false, false, 186), "forgot_password", [], "any", false, false, false, 186), "class", [], "any", false, false, false, 186), "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 188
if ((($tmp = (isset($context["hasFormRegister"]) || array_key_exists("hasFormRegister", $context) ? $context["hasFormRegister"] : (function () { throw new RuntimeError('Variable "hasFormRegister" does not exist.', 188, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 189
yield " <div class=\"";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 189), "first_connect", [], "any", true, true, false, 189)) {
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.', 189, $this->source); })()), "actions", [], "any", false, false, false, 189), "first_connect", [], "any", false, false, false, 189), "col", [], "any", false, false, false, 189), "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, 189), "first_connect", [], "any", false, true, false, 189), "order", [], "any", true, true, false, 189)) {
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.', 189, $this->source); })()), "actions", [], "any", false, false, false, 189), "first_connect", [], "any", false, false, false, 189), "order", [], "any", false, false, false, 189), "html", null, true);
}
}
yield "\">
<a href=\"";
// line 190
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
yield "\"
class=\"capitalize-first-word btn";
// line 191
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 191), "first_connect", [], "any", true, true, false, 191) && 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, 191), "first_connect", [], "any", false, true, false, 191), "class", [], "any", true, true, false, 191))) {
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.', 191, $this->source); })()), "actions", [], "any", false, false, false, 191), "first_connect", [], "any", false, false, false, 191), "class", [], "any", false, false, false, 191), "html", null, true);
}
yield "\">
";
// line 192
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "actions", [], "any", false, true, false, 192), "first_connect", [], "any", true, true, false, 192) && 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, 192), "first_connect", [], "any", false, true, false, 192), "content", [], "any", true, true, false, 192))) {
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.', 192, $this->source); })()), "actions", [], "any", false, false, false, 192), "first_connect", [], "any", false, false, false, 192), "content", [], "any", false, false, false, 192));
} 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 193
yield " </a>
</div>
";
}
// line 196
yield "
<small class=\"";
// line 197
if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "required", [], "any", true, true, false, 197)) {
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.', 197, $this->source); })()), "required", [], "any", false, false, false, 197), "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 200
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
";
// line 201
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.', 201, $this->source); })()), 'form_end');
yield "
";
// line 202
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 202)) {
// line 203
yield " </div>
";
}
// line 205
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 ( 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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___237065695 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 45
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", 45);
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 46
/**
* @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 47
yield " ";
yield from $this->load("@component/atom/title.html.twig", 47)->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.', 47, $this->source); })())]));
// line 48
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 ( 872 => 48, 869 => 47, 856 => 46, 833 => 45, 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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___2057418059 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 53
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", 53);
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 54
/**
* @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 55
yield " ";
yield from $this->load("@component/atom/paragraph.html.twig", 55)->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.', 55, $this->source); })())]));
// line 56
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 ( 1181 => 56, 1178 => 55, 1165 => 54, 1142 => 53, 872 => 48, 869 => 47, 856 => 46, 833 => 45, 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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___353997766 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 61
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", 61);
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 62
/**
* @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 63
yield " <div ";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 63) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", false, true, false, 63), "class", [], "any", true, true, false, 63))) {
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.', 63, $this->source); })()), "wrapper", [], "any", false, false, false, 63), "class", [], "any", false, false, false, 63), "html", null, true);
yield "\"";
}
yield ">
";
// line 64
yield from $this->load("@component/atom/link.html.twig", 64)->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.', 64, $this->source); })())]));
// line 65
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 ( 1498 => 65, 1496 => 64, 1487 => 63, 1474 => 62, 1451 => 61, 1181 => 56, 1178 => 55, 1165 => 54, 1142 => 53, 872 => 48, 869 => 47, 856 => 46, 833 => 45, 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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___1521563645 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 79
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", 79);
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 80
/**
* @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 81
yield " ";
yield from $this->load("@component/atom/title.html.twig", 81)->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.', 81, $this->source); })())]));
// line 82
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 ( 1808 => 82, 1805 => 81, 1792 => 80, 1769 => 79, 1498 => 65, 1496 => 64, 1487 => 63, 1474 => 62, 1451 => 61, 1181 => 56, 1178 => 55, 1165 => 54, 1142 => 53, 872 => 48, 869 => 47, 856 => 46, 833 => 45, 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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___1087272291 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 85
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", 85);
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 86
/**
* @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 87
yield " ";
yield from $this->load("@component/atom/paragraph.html.twig", 87)->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.', 87, $this->source); })())]));
// line 88
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 ( 2117 => 88, 2114 => 87, 2101 => 86, 2078 => 85, 1808 => 82, 1805 => 81, 1792 => 80, 1769 => 79, 1498 => 65, 1496 => 64, 1487 => 63, 1474 => 62, 1451 => 61, 1181 => 56, 1178 => 55, 1165 => 54, 1142 => 53, 872 => 48, 869 => 47, 856 => 46, 833 => 45, 561 => 205, 557 => 203, 555 => 202, 551 => 201, 547 => 200, 537 => 197, 534 => 196, 529 => 193, 523 => 192, 516 => 191, 512 => 190, 499 => 189, 497 => 188, 486 => 186, 482 => 185, 473 => 184, 469 => 182, 463 => 181, 455 => 179, 445 => 177, 440 => 175, 423 => 172, 416 => 171, 409 => 167, 405 => 166, 399 => 163, 395 => 162, 387 => 161, 380 => 157, 376 => 156, 371 => 154, 367 => 153, 359 => 152, 356 => 151, 353 => 150, 349 => 148, 346 => 147, 343 => 146, 341 => 145, 338 => 144, 335 => 143, 332 => 142, 330 => 141, 327 => 140, 325 => 139, 322 => 138, 318 => 136, 315 => 135, 312 => 134, 310 => 133, 307 => 132, 304 => 131, 301 => 130, 299 => 129, 296 => 128, 293 => 127, 291 => 126, 288 => 125, 286 => 121, 283 => 120, 280 => 116, 277 => 105, 274 => 104, 271 => 102, 269 => 101, 267 => 100, 261 => 97, 258 => 96, 255 => 95, 252 => 94, 250 => 93, 247 => 92, 245 => 91, 242 => 90, 240 => 85, 237 => 84, 234 => 79, 228 => 77, 226 => 76, 212 => 74, 208 => 72, 204 => 70, 201 => 69, 198 => 68, 195 => 61, 193 => 60, 190 => 59, 187 => 58, 184 => 53, 182 => 52, 179 => 51, 176 => 50, 173 => 45, 171 => 44, 168 => 43, 162 => 41, 160 => 40, 147 => 38, 144 => 37, 141 => 36, 138 => 35, 135 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 111 => 25, 108 => 24, 105 => 23, 102 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 78 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 9, 63 => 8, 61 => 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')) %}
{% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
{% set ssoConfigTitle = null %}
{% set ssoConfigSubtitle = null %}
{% set btnContent = null %}
{% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
{% 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");
}
}