var/cache/dev/top-intuis-thermo.dtv-projects.com/twig/18/1890fc1b29025f7e400488277ea8230b.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @component/molecule/default_security_login_form.html.twig */
  16. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  38. // line 1
  39. if ((($tmp = !array_key_exists("componentKey", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  40. // line 2
  41. yield " ";
  42. $context["componentKey"] = "default_security_login_form";
  43. }
  44. // line 4
  45. $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); })()));
  46. // line 5
  47. $context["ssoConfig"] = $this->env->getRuntime('App\Twig\Runtime\SettingRuntime')->getSettingValue(Twig\Extension\CoreExtension::constant("App\\Constants\\Setting::SSO_SETTINGS"));
  48. // line 6
  49. yield "
  50. ";
  51. // line 7
  52. 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"))) {
  53. // line 8
  54. yield " ";
  55. $context["ssoConfigTitle"] = null;
  56. // line 9
  57. yield " ";
  58. $context["ssoConfigSubtitle"] = null;
  59. // line 10
  60. yield " ";
  61. $context["btnContent"] = null;
  62. // line 11
  63. yield " ";
  64. $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);
  65. // line 12
  66. yield "
  67. ";
  68. // line 13
  69. 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)) {
  70. // line 14
  71. yield " ";
  72. $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);
  73. // line 15
  74. yield " ";
  75. }
  76. // line 16
  77. yield "
  78. ";
  79. // line 17
  80. 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)) {
  81. // line 18
  82. yield " ";
  83. $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);
  84. // line 19
  85. yield " ";
  86. }
  87. // line 20
  88. yield "
  89. ";
  90. // line 21
  91. 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)) {
  92. // line 22
  93. yield " ";
  94. $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);
  95. // line 23
  96. yield " ";
  97. }
  98. // line 24
  99. yield "
  100. ";
  101. // line 25
  102. 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)))) {
  103. // line 26
  104. yield " ";
  105. $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); })())])]);
  106. // line 27
  107. yield " ";
  108. }
  109. // line 28
  110. yield "
  111. ";
  112. // line 29
  113. 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))) {
  114. // line 30
  115. yield " ";
  116. $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); })())])]);
  117. // line 31
  118. yield " ";
  119. }
  120. // line 32
  121. yield "
  122. ";
  123. // line 33
  124. 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)))) {
  125. // line 34
  126. yield " ";
  127. $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); })())])]);
  128. // line 35
  129. yield " ";
  130. $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); })())])]);
  131. // line 36
  132. yield " ";
  133. }
  134. // line 37
  135. yield "
  136. <div class=\"";
  137. // line 38
  138. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 38)) {
  139. 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);
  140. } else {
  141. yield "col";
  142. }
  143. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 38)) {
  144. yield " order-";
  145. 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);
  146. }
  147. yield "\">
  148. ";
  149. // line 40
  150. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 40)) {
  151. // line 41
  152. yield " <div class=\"";
  153. 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);
  154. yield "\">
  155. ";
  156. }
  157. // line 43
  158. yield "
  159. ";
  160. // line 44
  161. 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)))) {
  162. // line 45
  163. yield " ";
  164. 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")]));
  165. // line 50
  166. yield " ";
  167. }
  168. // line 51
  169. yield "
  170. ";
  171. // line 52
  172. 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)))) {
  173. // line 53
  174. yield " ";
  175. 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")]));
  176. // line 58
  177. yield " ";
  178. }
  179. // line 59
  180. yield "
  181. ";
  182. // line 60
  183. 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)))) {
  184. // line 61
  185. yield " ";
  186. 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")]));
  187. // line 68
  188. yield " ";
  189. }
  190. // line 69
  191. yield " ";
  192. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 69)) {
  193. // line 70
  194. yield " </div>
  195. ";
  196. }
  197. // line 72
  198. yield " </div>
  199. ";
  200. } else {
  201. // line 74
  202. yield " <div class=\"";
  203. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 74)) {
  204. 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);
  205. } else {
  206. yield "col";
  207. }
  208. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "order", [], "any", true, true, false, 74)) {
  209. yield " order-";
  210. 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);
  211. }
  212. yield "\">
  213. ";
  214. // line 76
  215. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 76)) {
  216. // line 77
  217. yield " <div class=\"";
  218. 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);
  219. yield "\">
  220. ";
  221. }
  222. // line 79
  223. yield " ";
  224. 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")]));
  225. // line 84
  226. yield "
  227. ";
  228. // line 85
  229. 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")]));
  230. // line 90
  231. yield "
  232. ";
  233. // line 91
  234. $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);
  235. // line 92
  236. yield "
  237. ";
  238. // line 93
  239. $context["columns"] = ["label" => "col-12", "input" => "col-12"];
  240. // line 94
  241. yield " ";
  242. if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "columns", [], "any", true, true, false, 94)) {
  243. // line 95
  244. yield " ";
  245. $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);
  246. // line 96
  247. yield " ";
  248. }
  249. // line 97
  250. yield " ";
  251. 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"]]);
  252. yield "
  253. ";
  254. // line 100
  255. yield " ";
  256. // line 101
  257. yield " ";
  258. // line 102
  259. yield "
  260. ";
  261. // line 104
  262. yield " ";
  263. $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)) : (""));
  264. // line 105
  265. yield "
  266. ";
  267. // line 116
  268. yield " ";
  269. $context["labels"] = ["email" => $this->extensions['App\Twig\TwigExtension']->customTrans("email"), "password" => $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe")];
  270. // line 120
  271. yield "
  272. ";
  273. // line 121
  274. $context["placeholders"] = ["email" => "", "password" => ""];
  275. // line 125
  276. yield "
  277. ";
  278. // line 126
  279. if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "override", [], "any", true, true, false, 126)) {
  280. // line 127
  281. yield " ";
  282. 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)) {
  283. // line 128
  284. yield "
  285. ";
  286. // line 129
  287. 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")) {
  288. // line 130
  289. yield " ";
  290. $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))]);
  291. // line 131
  292. yield " ";
  293. }
  294. // line 132
  295. yield "
  296. ";
  297. // line 133
  298. 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")) {
  299. // line 134
  300. yield " ";
  301. $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))]);
  302. // line 135
  303. yield " ";
  304. }
  305. // line 136
  306. yield "
  307. ";
  308. }
  309. // line 138
  310. yield "
  311. ";
  312. // line 139
  313. 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)) {
  314. // line 140
  315. yield "
  316. ";
  317. // line 141
  318. 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")) {
  319. // line 142
  320. yield " ";
  321. $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))]);
  322. // line 143
  323. yield " ";
  324. }
  325. // line 144
  326. yield "
  327. ";
  328. // line 145
  329. 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")) {
  330. // line 146
  331. yield " ";
  332. $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))]);
  333. // line 147
  334. yield " ";
  335. }
  336. // line 148
  337. yield "
  338. ";
  339. }
  340. // line 150
  341. yield " ";
  342. }
  343. // line 151
  344. yield "
  345. <div class=\"";
  346. // line 152
  347. if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 152)) {
  348. 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);
  349. } else {
  350. yield "row mb-3 ";
  351. }
  352. yield "\">
  353. <div class=\"";
  354. // line 153
  355. 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);
  356. yield "\">
  357. ";
  358. // line 154
  359. 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_]));
  360. yield "
  361. </div>
  362. <div class=\"";
  363. // line 156
  364. 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);
  365. yield "\">
  366. ";
  367. // line 157
  368. 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))]]);
  369. yield "
  370. </div>
  371. </div>
  372. <div class=\"";
  373. // line 161
  374. if (CoreExtension::getAttribute($this->env, $this->source, ($context["columns"] ?? null), "wrapper", [], "any", true, true, false, 161)) {
  375. 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);
  376. } else {
  377. yield "row mb-3 ";
  378. }
  379. yield "\">
  380. <div class=\"";
  381. // line 162
  382. 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);
  383. yield "\">
  384. ";
  385. // line 163
  386. 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_]));
  387. yield "
  388. </div>
  389. <div class=\"";
  390. // line 166
  391. 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);
  392. yield " position-relative\">
  393. ";
  394. // line 167
  395. 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)]]);
  396. yield "
  397. </div>
  398. </div>
  399. <div class=\"d-flex";
  400. // line 171
  401. 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))) {
  402. yield " ";
  403. 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);
  404. }
  405. yield " \">
  406. <div class=\"wrapper-remember-me ";
  407. // line 172
  408. 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);
  409. yield " ";
  410. 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)) {
  411. 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)) {
  412. yield " ";
  413. 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);
  414. }
  415. 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)) {
  416. yield " ";
  417. 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);
  418. }
  419. }
  420. yield "\">
  421. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  422. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  423. <label for=\"remember_me\">";
  424. // line 175
  425. 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);
  426. yield "</label>
  427. </div>
  428. <div class=\"";
  429. // line 177
  430. 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);
  431. yield " ";
  432. 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)) {
  433. yield " ";
  434. 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);
  435. }
  436. yield "\">
  437. <button type=\"submit\"
  438. class=\"capitalize-first-word btn";
  439. // line 179
  440. 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)) {
  441. yield " ";
  442. 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);
  443. }
  444. yield "\"
  445. name=\"form_button\" value=\"login\">
  446. ";
  447. // line 181
  448. 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)) {
  449. 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));
  450. } else {
  451. yield $this->extensions['App\Twig\TwigExtension']->customTrans("connexion");
  452. }
  453. // line 182
  454. yield " </button>
  455. </div>
  456. <div class=\"";
  457. // line 184
  458. 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);
  459. yield " ";
  460. 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)) {
  461. yield " ";
  462. 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);
  463. }
  464. yield "\">
  465. <a href=\"";
  466. // line 185
  467. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  468. yield "\"
  469. ";
  470. // line 186
  471. 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))) {
  472. yield "class=\"reset-password ";
  473. 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);
  474. yield "\"";
  475. }
  476. yield ">";
  477. 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);
  478. yield "</a>
  479. </div>
  480. ";
  481. // line 188
  482. 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)) {
  483. // line 189
  484. yield " <div class=\"";
  485. 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)) {
  486. yield " ";
  487. 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);
  488. yield " ";
  489. 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)) {
  490. yield " ";
  491. 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);
  492. }
  493. }
  494. yield "\">
  495. <a href=\"";
  496. // line 190
  497. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  498. yield "\"
  499. class=\"capitalize-first-word btn";
  500. // line 191
  501. 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))) {
  502. yield " ";
  503. 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);
  504. }
  505. yield "\">
  506. ";
  507. // line 192
  508. 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))) {
  509. 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));
  510. } else {
  511. 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);
  512. }
  513. // line 193
  514. yield " </a>
  515. </div>
  516. ";
  517. }
  518. // line 196
  519. yield "
  520. <small class=\"";
  521. // line 197
  522. if (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "required", [], "any", true, true, false, 197)) {
  523. 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);
  524. }
  525. yield "\">* ";
  526. yield $this->extensions['App\Twig\TwigExtension']->customTrans("info.contact.required");
  527. yield "</small>
  528. </div>
  529. <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  530. // line 200
  531. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  532. yield "\">
  533. ";
  534. // line 201
  535. 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');
  536. yield "
  537. ";
  538. // line 202
  539. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 202)) {
  540. // line 203
  541. yield " </div>
  542. ";
  543. }
  544. // line 205
  545. yield " </div>
  546. ";
  547. }
  548. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  549. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  550. yield from [];
  551. }
  552. /**
  553. * @codeCoverageIgnore
  554. */
  555. public function getTemplateName(): string
  556. {
  557. return "@component/molecule/default_security_login_form.html.twig";
  558. }
  559. /**
  560. * @codeCoverageIgnore
  561. */
  562. public function isTraitable(): bool
  563. {
  564. return false;
  565. }
  566. /**
  567. * @codeCoverageIgnore
  568. */
  569. public function getDebugInfo(): array
  570. {
  571. 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,);
  572. }
  573. public function getSourceContext(): Source
  574. {
  575. return new Source("{% if componentKey is not defined %}
  576. {% set componentKey = \"default_security_login_form\" %}
  577. {% endif %}
  578. {% set item_config = generateComponentOptions(value, componentKey)%}
  579. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  580. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  581. {% set ssoConfigTitle = null %}
  582. {% set ssoConfigSubtitle = null %}
  583. {% set btnContent = null %}
  584. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  585. {% if ssoConfig.title is not null %}
  586. {% set ssoConfigTitle = ssoConfig.title %}
  587. {% endif %}
  588. {% if ssoConfig.subtitle is not null %}
  589. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  590. {% endif %}
  591. {% if ssoConfig.btnContent is not null %}
  592. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  593. {% endif %}
  594. {% if value.title is defined and value.title is not null %}
  595. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  596. {% endif %}
  597. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  598. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  599. {% endif %}
  600. {% if value.link is defined and value.link is not null %}
  601. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  602. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  603. {% endif %}
  604. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  605. {% if value.container is defined %}
  606. <div class=\"{{ value.container }}\">
  607. {% endif %}
  608. {% if value.title is defined and value.title is not null %}
  609. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  610. {% block atom %}
  611. {% include'@component/atom/title.html.twig' with {'title': value} %}
  612. {% endblock atom %}
  613. {% endembed %}
  614. {% endif %}
  615. {% if value.text is defined and value.text is not null %}
  616. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  617. {% block atom %}
  618. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  619. {% endblock atom %}
  620. {% endembed %}
  621. {% endif %}
  622. {% if value.link is defined and value.link is not null %}
  623. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  624. {% block atom %}
  625. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  626. {% include '@component/atom/link.html.twig' with {'link': value} %}
  627. </div>
  628. {% endblock atom %}
  629. {% endembed %}
  630. {% endif %}
  631. {% if value.container is defined %}
  632. </div>
  633. {% endif %}
  634. </div>
  635. {% else %}
  636. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  637. {% if value.container is defined %}
  638. <div class=\"{{ value.container }}\">
  639. {% endif %}
  640. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  641. {% block atom %}
  642. {% include '@component/atom/title.html.twig' with {'title': value} %}
  643. {% endblock atom %}
  644. {% endembed %}
  645. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  646. {% block atom %}
  647. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  648. {% endblock atom %}
  649. {% endembed %}
  650. {% set formData = value.form %}
  651. {% set columns = { label: 'col-12', input: 'col-12'} %}
  652. {% if formData.columns is defined %}
  653. {% set columns = formData.columns %}
  654. {% endif %}
  655. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  656. {# {% if error %}#}
  657. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  658. {# {% endif %}#}
  659. {# 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 #}
  660. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  661. {#
  662. Override des labels si besoin
  663. Ajouter une clef override dans le yaml du composant dans form
  664. [...]
  665. form:
  666. override:
  667. email:
  668. label: 'Mon label'
  669. [...]
  670. #}
  671. {% set labels = {
  672. email: 'email'|trans,
  673. password: 'mot de passe'|trans,
  674. } %}
  675. {% set placeholders = {
  676. email: '',
  677. password: '',
  678. } %}
  679. {% if formData.override is defined %}
  680. {% if formData.override.email is defined %}
  681. {% if formData.override.email is key_usable('label') %}
  682. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  683. {% endif %}
  684. {% if formData.override.email is key_usable('placeholder') %}
  685. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  686. {% endif %}
  687. {% endif %}
  688. {% if formData.override.password is defined %}
  689. {% if formData.override.password is key_usable('label') %}
  690. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  691. {% endif %}
  692. {% if formData.override.password is key_usable('placeholder') %}
  693. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  694. {% endif %}
  695. {% endif %}
  696. {% endif %}
  697. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  698. <div class=\"{{ columns.label }}\">
  699. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  700. </div>
  701. <div class=\"{{ columns.input }}\">
  702. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  703. </div>
  704. </div>
  705. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  706. <div class=\"{{ columns.label }}\">
  707. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  708. </div>
  709. <div class=\"{{ columns.input }} position-relative\">
  710. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  711. </div>
  712. </div>
  713. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  714. <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 %}\">
  715. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  716. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  717. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  718. </div>
  719. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  720. <button type=\"submit\"
  721. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  722. name=\"form_button\" value=\"login\">
  723. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  724. </button>
  725. </div>
  726. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  727. <a href=\"{{ path('app_forgot_password_request') }}\"
  728. {% 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>
  729. </div>
  730. {% if hasFormRegister %}
  731. <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 %}\">
  732. <a href=\"{{ path('app_register') }}\"
  733. 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 %}\">
  734. {% 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 %}
  735. </a>
  736. </div>
  737. {% endif %}
  738. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  739. </div>
  740. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  741. {{ form_end(loginForm) }}
  742. {% if value.container is defined %}
  743. </div>
  744. {% endif %}
  745. </div>
  746. {% endif %}
  747. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  748. }
  749. }
  750. /* @component/molecule/default_security_login_form.html.twig */
  751. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___237065695 extends Template
  752. {
  753. private Source $source;
  754. /**
  755. * @var array<string, Template>
  756. */
  757. private array $macros = [];
  758. public function __construct(Environment $env)
  759. {
  760. parent::__construct($env);
  761. $this->source = $this->getSourceContext();
  762. $this->blocks = [
  763. 'atom' => [$this, 'block_atom'],
  764. ];
  765. }
  766. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  767. {
  768. // line 45
  769. return "@component/_template/_atom_wrapper.html.twig";
  770. }
  771. protected function doDisplay(array $context, array $blocks = []): iterable
  772. {
  773. $macros = $this->macros;
  774. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  775. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  776. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  777. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  778. $this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 45);
  779. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  780. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  781. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  782. }
  783. // line 46
  784. /**
  785. * @return iterable<null|scalar|\Stringable>
  786. */
  787. public function block_atom(array $context, array $blocks = []): iterable
  788. {
  789. $macros = $this->macros;
  790. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  791. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  792. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  793. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  794. // line 47
  795. yield " ";
  796. 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); })())]));
  797. // line 48
  798. yield " ";
  799. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  800. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  801. yield from [];
  802. }
  803. /**
  804. * @codeCoverageIgnore
  805. */
  806. public function getTemplateName(): string
  807. {
  808. return "@component/molecule/default_security_login_form.html.twig";
  809. }
  810. /**
  811. * @codeCoverageIgnore
  812. */
  813. public function isTraitable(): bool
  814. {
  815. return false;
  816. }
  817. /**
  818. * @codeCoverageIgnore
  819. */
  820. public function getDebugInfo(): array
  821. {
  822. 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,);
  823. }
  824. public function getSourceContext(): Source
  825. {
  826. return new Source("{% if componentKey is not defined %}
  827. {% set componentKey = \"default_security_login_form\" %}
  828. {% endif %}
  829. {% set item_config = generateComponentOptions(value, componentKey)%}
  830. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  831. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  832. {% set ssoConfigTitle = null %}
  833. {% set ssoConfigSubtitle = null %}
  834. {% set btnContent = null %}
  835. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  836. {% if ssoConfig.title is not null %}
  837. {% set ssoConfigTitle = ssoConfig.title %}
  838. {% endif %}
  839. {% if ssoConfig.subtitle is not null %}
  840. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  841. {% endif %}
  842. {% if ssoConfig.btnContent is not null %}
  843. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  844. {% endif %}
  845. {% if value.title is defined and value.title is not null %}
  846. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  847. {% endif %}
  848. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  849. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  850. {% endif %}
  851. {% if value.link is defined and value.link is not null %}
  852. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  853. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  854. {% endif %}
  855. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  856. {% if value.container is defined %}
  857. <div class=\"{{ value.container }}\">
  858. {% endif %}
  859. {% if value.title is defined and value.title is not null %}
  860. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  861. {% block atom %}
  862. {% include'@component/atom/title.html.twig' with {'title': value} %}
  863. {% endblock atom %}
  864. {% endembed %}
  865. {% endif %}
  866. {% if value.text is defined and value.text is not null %}
  867. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  868. {% block atom %}
  869. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  870. {% endblock atom %}
  871. {% endembed %}
  872. {% endif %}
  873. {% if value.link is defined and value.link is not null %}
  874. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  875. {% block atom %}
  876. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  877. {% include '@component/atom/link.html.twig' with {'link': value} %}
  878. </div>
  879. {% endblock atom %}
  880. {% endembed %}
  881. {% endif %}
  882. {% if value.container is defined %}
  883. </div>
  884. {% endif %}
  885. </div>
  886. {% else %}
  887. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  888. {% if value.container is defined %}
  889. <div class=\"{{ value.container }}\">
  890. {% endif %}
  891. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  892. {% block atom %}
  893. {% include '@component/atom/title.html.twig' with {'title': value} %}
  894. {% endblock atom %}
  895. {% endembed %}
  896. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  897. {% block atom %}
  898. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  899. {% endblock atom %}
  900. {% endembed %}
  901. {% set formData = value.form %}
  902. {% set columns = { label: 'col-12', input: 'col-12'} %}
  903. {% if formData.columns is defined %}
  904. {% set columns = formData.columns %}
  905. {% endif %}
  906. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  907. {# {% if error %}#}
  908. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  909. {# {% endif %}#}
  910. {# 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 #}
  911. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  912. {#
  913. Override des labels si besoin
  914. Ajouter une clef override dans le yaml du composant dans form
  915. [...]
  916. form:
  917. override:
  918. email:
  919. label: 'Mon label'
  920. [...]
  921. #}
  922. {% set labels = {
  923. email: 'email'|trans,
  924. password: 'mot de passe'|trans,
  925. } %}
  926. {% set placeholders = {
  927. email: '',
  928. password: '',
  929. } %}
  930. {% if formData.override is defined %}
  931. {% if formData.override.email is defined %}
  932. {% if formData.override.email is key_usable('label') %}
  933. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  934. {% endif %}
  935. {% if formData.override.email is key_usable('placeholder') %}
  936. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  937. {% endif %}
  938. {% endif %}
  939. {% if formData.override.password is defined %}
  940. {% if formData.override.password is key_usable('label') %}
  941. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  942. {% endif %}
  943. {% if formData.override.password is key_usable('placeholder') %}
  944. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  945. {% endif %}
  946. {% endif %}
  947. {% endif %}
  948. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  949. <div class=\"{{ columns.label }}\">
  950. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  951. </div>
  952. <div class=\"{{ columns.input }}\">
  953. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  954. </div>
  955. </div>
  956. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  957. <div class=\"{{ columns.label }}\">
  958. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  959. </div>
  960. <div class=\"{{ columns.input }} position-relative\">
  961. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  962. </div>
  963. </div>
  964. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  965. <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 %}\">
  966. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  967. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  968. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  969. </div>
  970. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  971. <button type=\"submit\"
  972. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  973. name=\"form_button\" value=\"login\">
  974. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  975. </button>
  976. </div>
  977. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  978. <a href=\"{{ path('app_forgot_password_request') }}\"
  979. {% 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>
  980. </div>
  981. {% if hasFormRegister %}
  982. <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 %}\">
  983. <a href=\"{{ path('app_register') }}\"
  984. 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 %}\">
  985. {% 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 %}
  986. </a>
  987. </div>
  988. {% endif %}
  989. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  990. </div>
  991. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  992. {{ form_end(loginForm) }}
  993. {% if value.container is defined %}
  994. </div>
  995. {% endif %}
  996. </div>
  997. {% endif %}
  998. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  999. }
  1000. }
  1001. /* @component/molecule/default_security_login_form.html.twig */
  1002. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___2057418059 extends Template
  1003. {
  1004. private Source $source;
  1005. /**
  1006. * @var array<string, Template>
  1007. */
  1008. private array $macros = [];
  1009. public function __construct(Environment $env)
  1010. {
  1011. parent::__construct($env);
  1012. $this->source = $this->getSourceContext();
  1013. $this->blocks = [
  1014. 'atom' => [$this, 'block_atom'],
  1015. ];
  1016. }
  1017. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1018. {
  1019. // line 53
  1020. return "@component/_template/_atom_wrapper.html.twig";
  1021. }
  1022. protected function doDisplay(array $context, array $blocks = []): iterable
  1023. {
  1024. $macros = $this->macros;
  1025. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1026. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1027. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1028. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1029. $this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 53);
  1030. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  1031. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1032. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1033. }
  1034. // line 54
  1035. /**
  1036. * @return iterable<null|scalar|\Stringable>
  1037. */
  1038. public function block_atom(array $context, array $blocks = []): iterable
  1039. {
  1040. $macros = $this->macros;
  1041. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1042. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1043. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1044. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1045. // line 55
  1046. yield " ";
  1047. 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); })())]));
  1048. // line 56
  1049. yield " ";
  1050. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1051. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1052. yield from [];
  1053. }
  1054. /**
  1055. * @codeCoverageIgnore
  1056. */
  1057. public function getTemplateName(): string
  1058. {
  1059. return "@component/molecule/default_security_login_form.html.twig";
  1060. }
  1061. /**
  1062. * @codeCoverageIgnore
  1063. */
  1064. public function isTraitable(): bool
  1065. {
  1066. return false;
  1067. }
  1068. /**
  1069. * @codeCoverageIgnore
  1070. */
  1071. public function getDebugInfo(): array
  1072. {
  1073. 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,);
  1074. }
  1075. public function getSourceContext(): Source
  1076. {
  1077. return new Source("{% if componentKey is not defined %}
  1078. {% set componentKey = \"default_security_login_form\" %}
  1079. {% endif %}
  1080. {% set item_config = generateComponentOptions(value, componentKey)%}
  1081. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  1082. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  1083. {% set ssoConfigTitle = null %}
  1084. {% set ssoConfigSubtitle = null %}
  1085. {% set btnContent = null %}
  1086. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  1087. {% if ssoConfig.title is not null %}
  1088. {% set ssoConfigTitle = ssoConfig.title %}
  1089. {% endif %}
  1090. {% if ssoConfig.subtitle is not null %}
  1091. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  1092. {% endif %}
  1093. {% if ssoConfig.btnContent is not null %}
  1094. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  1095. {% endif %}
  1096. {% if value.title is defined and value.title is not null %}
  1097. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  1098. {% endif %}
  1099. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  1100. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  1101. {% endif %}
  1102. {% if value.link is defined and value.link is not null %}
  1103. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  1104. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  1105. {% endif %}
  1106. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1107. {% if value.container is defined %}
  1108. <div class=\"{{ value.container }}\">
  1109. {% endif %}
  1110. {% if value.title is defined and value.title is not null %}
  1111. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1112. {% block atom %}
  1113. {% include'@component/atom/title.html.twig' with {'title': value} %}
  1114. {% endblock atom %}
  1115. {% endembed %}
  1116. {% endif %}
  1117. {% if value.text is defined and value.text is not null %}
  1118. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1119. {% block atom %}
  1120. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  1121. {% endblock atom %}
  1122. {% endembed %}
  1123. {% endif %}
  1124. {% if value.link is defined and value.link is not null %}
  1125. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  1126. {% block atom %}
  1127. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  1128. {% include '@component/atom/link.html.twig' with {'link': value} %}
  1129. </div>
  1130. {% endblock atom %}
  1131. {% endembed %}
  1132. {% endif %}
  1133. {% if value.container is defined %}
  1134. </div>
  1135. {% endif %}
  1136. </div>
  1137. {% else %}
  1138. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1139. {% if value.container is defined %}
  1140. <div class=\"{{ value.container }}\">
  1141. {% endif %}
  1142. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1143. {% block atom %}
  1144. {% include '@component/atom/title.html.twig' with {'title': value} %}
  1145. {% endblock atom %}
  1146. {% endembed %}
  1147. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1148. {% block atom %}
  1149. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  1150. {% endblock atom %}
  1151. {% endembed %}
  1152. {% set formData = value.form %}
  1153. {% set columns = { label: 'col-12', input: 'col-12'} %}
  1154. {% if formData.columns is defined %}
  1155. {% set columns = formData.columns %}
  1156. {% endif %}
  1157. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  1158. {# {% if error %}#}
  1159. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  1160. {# {% endif %}#}
  1161. {# 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 #}
  1162. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  1163. {#
  1164. Override des labels si besoin
  1165. Ajouter une clef override dans le yaml du composant dans form
  1166. [...]
  1167. form:
  1168. override:
  1169. email:
  1170. label: 'Mon label'
  1171. [...]
  1172. #}
  1173. {% set labels = {
  1174. email: 'email'|trans,
  1175. password: 'mot de passe'|trans,
  1176. } %}
  1177. {% set placeholders = {
  1178. email: '',
  1179. password: '',
  1180. } %}
  1181. {% if formData.override is defined %}
  1182. {% if formData.override.email is defined %}
  1183. {% if formData.override.email is key_usable('label') %}
  1184. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  1185. {% endif %}
  1186. {% if formData.override.email is key_usable('placeholder') %}
  1187. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  1188. {% endif %}
  1189. {% endif %}
  1190. {% if formData.override.password is defined %}
  1191. {% if formData.override.password is key_usable('label') %}
  1192. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  1193. {% endif %}
  1194. {% if formData.override.password is key_usable('placeholder') %}
  1195. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  1196. {% endif %}
  1197. {% endif %}
  1198. {% endif %}
  1199. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1200. <div class=\"{{ columns.label }}\">
  1201. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1202. </div>
  1203. <div class=\"{{ columns.input }}\">
  1204. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  1205. </div>
  1206. </div>
  1207. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1208. <div class=\"{{ columns.label }}\">
  1209. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1210. </div>
  1211. <div class=\"{{ columns.input }} position-relative\">
  1212. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  1213. </div>
  1214. </div>
  1215. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  1216. <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 %}\">
  1217. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  1218. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  1219. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  1220. </div>
  1221. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  1222. <button type=\"submit\"
  1223. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  1224. name=\"form_button\" value=\"login\">
  1225. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  1226. </button>
  1227. </div>
  1228. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  1229. <a href=\"{{ path('app_forgot_password_request') }}\"
  1230. {% 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>
  1231. </div>
  1232. {% if hasFormRegister %}
  1233. <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 %}\">
  1234. <a href=\"{{ path('app_register') }}\"
  1235. 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 %}\">
  1236. {% 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 %}
  1237. </a>
  1238. </div>
  1239. {% endif %}
  1240. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  1241. </div>
  1242. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  1243. {{ form_end(loginForm) }}
  1244. {% if value.container is defined %}
  1245. </div>
  1246. {% endif %}
  1247. </div>
  1248. {% endif %}
  1249. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  1250. }
  1251. }
  1252. /* @component/molecule/default_security_login_form.html.twig */
  1253. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___353997766 extends Template
  1254. {
  1255. private Source $source;
  1256. /**
  1257. * @var array<string, Template>
  1258. */
  1259. private array $macros = [];
  1260. public function __construct(Environment $env)
  1261. {
  1262. parent::__construct($env);
  1263. $this->source = $this->getSourceContext();
  1264. $this->blocks = [
  1265. 'atom' => [$this, 'block_atom'],
  1266. ];
  1267. }
  1268. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1269. {
  1270. // line 61
  1271. return "@component/_template/_atom_wrapper.html.twig";
  1272. }
  1273. protected function doDisplay(array $context, array $blocks = []): iterable
  1274. {
  1275. $macros = $this->macros;
  1276. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1277. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1278. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1279. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1280. $this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 61);
  1281. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  1282. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1283. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1284. }
  1285. // line 62
  1286. /**
  1287. * @return iterable<null|scalar|\Stringable>
  1288. */
  1289. public function block_atom(array $context, array $blocks = []): iterable
  1290. {
  1291. $macros = $this->macros;
  1292. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1293. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1294. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1295. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1296. // line 63
  1297. yield " <div ";
  1298. 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))) {
  1299. yield "class=\"";
  1300. 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);
  1301. yield "\"";
  1302. }
  1303. yield ">
  1304. ";
  1305. // line 64
  1306. 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); })())]));
  1307. // line 65
  1308. yield " </div>
  1309. ";
  1310. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1311. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1312. yield from [];
  1313. }
  1314. /**
  1315. * @codeCoverageIgnore
  1316. */
  1317. public function getTemplateName(): string
  1318. {
  1319. return "@component/molecule/default_security_login_form.html.twig";
  1320. }
  1321. /**
  1322. * @codeCoverageIgnore
  1323. */
  1324. public function isTraitable(): bool
  1325. {
  1326. return false;
  1327. }
  1328. /**
  1329. * @codeCoverageIgnore
  1330. */
  1331. public function getDebugInfo(): array
  1332. {
  1333. 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,);
  1334. }
  1335. public function getSourceContext(): Source
  1336. {
  1337. return new Source("{% if componentKey is not defined %}
  1338. {% set componentKey = \"default_security_login_form\" %}
  1339. {% endif %}
  1340. {% set item_config = generateComponentOptions(value, componentKey)%}
  1341. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  1342. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  1343. {% set ssoConfigTitle = null %}
  1344. {% set ssoConfigSubtitle = null %}
  1345. {% set btnContent = null %}
  1346. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  1347. {% if ssoConfig.title is not null %}
  1348. {% set ssoConfigTitle = ssoConfig.title %}
  1349. {% endif %}
  1350. {% if ssoConfig.subtitle is not null %}
  1351. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  1352. {% endif %}
  1353. {% if ssoConfig.btnContent is not null %}
  1354. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  1355. {% endif %}
  1356. {% if value.title is defined and value.title is not null %}
  1357. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  1358. {% endif %}
  1359. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  1360. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  1361. {% endif %}
  1362. {% if value.link is defined and value.link is not null %}
  1363. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  1364. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  1365. {% endif %}
  1366. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1367. {% if value.container is defined %}
  1368. <div class=\"{{ value.container }}\">
  1369. {% endif %}
  1370. {% if value.title is defined and value.title is not null %}
  1371. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1372. {% block atom %}
  1373. {% include'@component/atom/title.html.twig' with {'title': value} %}
  1374. {% endblock atom %}
  1375. {% endembed %}
  1376. {% endif %}
  1377. {% if value.text is defined and value.text is not null %}
  1378. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1379. {% block atom %}
  1380. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  1381. {% endblock atom %}
  1382. {% endembed %}
  1383. {% endif %}
  1384. {% if value.link is defined and value.link is not null %}
  1385. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  1386. {% block atom %}
  1387. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  1388. {% include '@component/atom/link.html.twig' with {'link': value} %}
  1389. </div>
  1390. {% endblock atom %}
  1391. {% endembed %}
  1392. {% endif %}
  1393. {% if value.container is defined %}
  1394. </div>
  1395. {% endif %}
  1396. </div>
  1397. {% else %}
  1398. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1399. {% if value.container is defined %}
  1400. <div class=\"{{ value.container }}\">
  1401. {% endif %}
  1402. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1403. {% block atom %}
  1404. {% include '@component/atom/title.html.twig' with {'title': value} %}
  1405. {% endblock atom %}
  1406. {% endembed %}
  1407. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1408. {% block atom %}
  1409. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  1410. {% endblock atom %}
  1411. {% endembed %}
  1412. {% set formData = value.form %}
  1413. {% set columns = { label: 'col-12', input: 'col-12'} %}
  1414. {% if formData.columns is defined %}
  1415. {% set columns = formData.columns %}
  1416. {% endif %}
  1417. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  1418. {# {% if error %}#}
  1419. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  1420. {# {% endif %}#}
  1421. {# 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 #}
  1422. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  1423. {#
  1424. Override des labels si besoin
  1425. Ajouter une clef override dans le yaml du composant dans form
  1426. [...]
  1427. form:
  1428. override:
  1429. email:
  1430. label: 'Mon label'
  1431. [...]
  1432. #}
  1433. {% set labels = {
  1434. email: 'email'|trans,
  1435. password: 'mot de passe'|trans,
  1436. } %}
  1437. {% set placeholders = {
  1438. email: '',
  1439. password: '',
  1440. } %}
  1441. {% if formData.override is defined %}
  1442. {% if formData.override.email is defined %}
  1443. {% if formData.override.email is key_usable('label') %}
  1444. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  1445. {% endif %}
  1446. {% if formData.override.email is key_usable('placeholder') %}
  1447. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  1448. {% endif %}
  1449. {% endif %}
  1450. {% if formData.override.password is defined %}
  1451. {% if formData.override.password is key_usable('label') %}
  1452. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  1453. {% endif %}
  1454. {% if formData.override.password is key_usable('placeholder') %}
  1455. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  1456. {% endif %}
  1457. {% endif %}
  1458. {% endif %}
  1459. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1460. <div class=\"{{ columns.label }}\">
  1461. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1462. </div>
  1463. <div class=\"{{ columns.input }}\">
  1464. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  1465. </div>
  1466. </div>
  1467. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1468. <div class=\"{{ columns.label }}\">
  1469. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1470. </div>
  1471. <div class=\"{{ columns.input }} position-relative\">
  1472. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  1473. </div>
  1474. </div>
  1475. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  1476. <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 %}\">
  1477. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  1478. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  1479. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  1480. </div>
  1481. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  1482. <button type=\"submit\"
  1483. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  1484. name=\"form_button\" value=\"login\">
  1485. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  1486. </button>
  1487. </div>
  1488. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  1489. <a href=\"{{ path('app_forgot_password_request') }}\"
  1490. {% 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>
  1491. </div>
  1492. {% if hasFormRegister %}
  1493. <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 %}\">
  1494. <a href=\"{{ path('app_register') }}\"
  1495. 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 %}\">
  1496. {% 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 %}
  1497. </a>
  1498. </div>
  1499. {% endif %}
  1500. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  1501. </div>
  1502. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  1503. {{ form_end(loginForm) }}
  1504. {% if value.container is defined %}
  1505. </div>
  1506. {% endif %}
  1507. </div>
  1508. {% endif %}
  1509. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  1510. }
  1511. }
  1512. /* @component/molecule/default_security_login_form.html.twig */
  1513. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___1521563645 extends Template
  1514. {
  1515. private Source $source;
  1516. /**
  1517. * @var array<string, Template>
  1518. */
  1519. private array $macros = [];
  1520. public function __construct(Environment $env)
  1521. {
  1522. parent::__construct($env);
  1523. $this->source = $this->getSourceContext();
  1524. $this->blocks = [
  1525. 'atom' => [$this, 'block_atom'],
  1526. ];
  1527. }
  1528. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1529. {
  1530. // line 79
  1531. return "@component/_template/_atom_wrapper.html.twig";
  1532. }
  1533. protected function doDisplay(array $context, array $blocks = []): iterable
  1534. {
  1535. $macros = $this->macros;
  1536. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1537. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1538. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1539. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1540. $this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 79);
  1541. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  1542. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1543. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1544. }
  1545. // line 80
  1546. /**
  1547. * @return iterable<null|scalar|\Stringable>
  1548. */
  1549. public function block_atom(array $context, array $blocks = []): iterable
  1550. {
  1551. $macros = $this->macros;
  1552. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1553. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1554. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1555. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1556. // line 81
  1557. yield " ";
  1558. 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); })())]));
  1559. // line 82
  1560. yield " ";
  1561. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1562. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1563. yield from [];
  1564. }
  1565. /**
  1566. * @codeCoverageIgnore
  1567. */
  1568. public function getTemplateName(): string
  1569. {
  1570. return "@component/molecule/default_security_login_form.html.twig";
  1571. }
  1572. /**
  1573. * @codeCoverageIgnore
  1574. */
  1575. public function isTraitable(): bool
  1576. {
  1577. return false;
  1578. }
  1579. /**
  1580. * @codeCoverageIgnore
  1581. */
  1582. public function getDebugInfo(): array
  1583. {
  1584. 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,);
  1585. }
  1586. public function getSourceContext(): Source
  1587. {
  1588. return new Source("{% if componentKey is not defined %}
  1589. {% set componentKey = \"default_security_login_form\" %}
  1590. {% endif %}
  1591. {% set item_config = generateComponentOptions(value, componentKey)%}
  1592. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  1593. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  1594. {% set ssoConfigTitle = null %}
  1595. {% set ssoConfigSubtitle = null %}
  1596. {% set btnContent = null %}
  1597. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  1598. {% if ssoConfig.title is not null %}
  1599. {% set ssoConfigTitle = ssoConfig.title %}
  1600. {% endif %}
  1601. {% if ssoConfig.subtitle is not null %}
  1602. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  1603. {% endif %}
  1604. {% if ssoConfig.btnContent is not null %}
  1605. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  1606. {% endif %}
  1607. {% if value.title is defined and value.title is not null %}
  1608. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  1609. {% endif %}
  1610. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  1611. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  1612. {% endif %}
  1613. {% if value.link is defined and value.link is not null %}
  1614. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  1615. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  1616. {% endif %}
  1617. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1618. {% if value.container is defined %}
  1619. <div class=\"{{ value.container }}\">
  1620. {% endif %}
  1621. {% if value.title is defined and value.title is not null %}
  1622. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1623. {% block atom %}
  1624. {% include'@component/atom/title.html.twig' with {'title': value} %}
  1625. {% endblock atom %}
  1626. {% endembed %}
  1627. {% endif %}
  1628. {% if value.text is defined and value.text is not null %}
  1629. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1630. {% block atom %}
  1631. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  1632. {% endblock atom %}
  1633. {% endembed %}
  1634. {% endif %}
  1635. {% if value.link is defined and value.link is not null %}
  1636. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  1637. {% block atom %}
  1638. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  1639. {% include '@component/atom/link.html.twig' with {'link': value} %}
  1640. </div>
  1641. {% endblock atom %}
  1642. {% endembed %}
  1643. {% endif %}
  1644. {% if value.container is defined %}
  1645. </div>
  1646. {% endif %}
  1647. </div>
  1648. {% else %}
  1649. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1650. {% if value.container is defined %}
  1651. <div class=\"{{ value.container }}\">
  1652. {% endif %}
  1653. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1654. {% block atom %}
  1655. {% include '@component/atom/title.html.twig' with {'title': value} %}
  1656. {% endblock atom %}
  1657. {% endembed %}
  1658. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1659. {% block atom %}
  1660. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  1661. {% endblock atom %}
  1662. {% endembed %}
  1663. {% set formData = value.form %}
  1664. {% set columns = { label: 'col-12', input: 'col-12'} %}
  1665. {% if formData.columns is defined %}
  1666. {% set columns = formData.columns %}
  1667. {% endif %}
  1668. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  1669. {# {% if error %}#}
  1670. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  1671. {# {% endif %}#}
  1672. {# 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 #}
  1673. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  1674. {#
  1675. Override des labels si besoin
  1676. Ajouter une clef override dans le yaml du composant dans form
  1677. [...]
  1678. form:
  1679. override:
  1680. email:
  1681. label: 'Mon label'
  1682. [...]
  1683. #}
  1684. {% set labels = {
  1685. email: 'email'|trans,
  1686. password: 'mot de passe'|trans,
  1687. } %}
  1688. {% set placeholders = {
  1689. email: '',
  1690. password: '',
  1691. } %}
  1692. {% if formData.override is defined %}
  1693. {% if formData.override.email is defined %}
  1694. {% if formData.override.email is key_usable('label') %}
  1695. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  1696. {% endif %}
  1697. {% if formData.override.email is key_usable('placeholder') %}
  1698. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  1699. {% endif %}
  1700. {% endif %}
  1701. {% if formData.override.password is defined %}
  1702. {% if formData.override.password is key_usable('label') %}
  1703. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  1704. {% endif %}
  1705. {% if formData.override.password is key_usable('placeholder') %}
  1706. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  1707. {% endif %}
  1708. {% endif %}
  1709. {% endif %}
  1710. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1711. <div class=\"{{ columns.label }}\">
  1712. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1713. </div>
  1714. <div class=\"{{ columns.input }}\">
  1715. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  1716. </div>
  1717. </div>
  1718. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1719. <div class=\"{{ columns.label }}\">
  1720. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1721. </div>
  1722. <div class=\"{{ columns.input }} position-relative\">
  1723. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  1724. </div>
  1725. </div>
  1726. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  1727. <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 %}\">
  1728. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  1729. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  1730. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  1731. </div>
  1732. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  1733. <button type=\"submit\"
  1734. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  1735. name=\"form_button\" value=\"login\">
  1736. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  1737. </button>
  1738. </div>
  1739. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  1740. <a href=\"{{ path('app_forgot_password_request') }}\"
  1741. {% 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>
  1742. </div>
  1743. {% if hasFormRegister %}
  1744. <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 %}\">
  1745. <a href=\"{{ path('app_register') }}\"
  1746. 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 %}\">
  1747. {% 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 %}
  1748. </a>
  1749. </div>
  1750. {% endif %}
  1751. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  1752. </div>
  1753. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  1754. {{ form_end(loginForm) }}
  1755. {% if value.container is defined %}
  1756. </div>
  1757. {% endif %}
  1758. </div>
  1759. {% endif %}
  1760. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  1761. }
  1762. }
  1763. /* @component/molecule/default_security_login_form.html.twig */
  1764. class __TwigTemplate_9be5ec32148f17bd498f548f14d9043e___1087272291 extends Template
  1765. {
  1766. private Source $source;
  1767. /**
  1768. * @var array<string, Template>
  1769. */
  1770. private array $macros = [];
  1771. public function __construct(Environment $env)
  1772. {
  1773. parent::__construct($env);
  1774. $this->source = $this->getSourceContext();
  1775. $this->blocks = [
  1776. 'atom' => [$this, 'block_atom'],
  1777. ];
  1778. }
  1779. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1780. {
  1781. // line 85
  1782. return "@component/_template/_atom_wrapper.html.twig";
  1783. }
  1784. protected function doDisplay(array $context, array $blocks = []): iterable
  1785. {
  1786. $macros = $this->macros;
  1787. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1788. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1789. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1790. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/molecule/default_security_login_form.html.twig"));
  1791. $this->parent = $this->load("@component/_template/_atom_wrapper.html.twig", 85);
  1792. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  1793. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1794. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1795. }
  1796. // line 86
  1797. /**
  1798. * @return iterable<null|scalar|\Stringable>
  1799. */
  1800. public function block_atom(array $context, array $blocks = []): iterable
  1801. {
  1802. $macros = $this->macros;
  1803. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1804. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1805. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1806. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  1807. // line 87
  1808. yield " ";
  1809. 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); })())]));
  1810. // line 88
  1811. yield " ";
  1812. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1813. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1814. yield from [];
  1815. }
  1816. /**
  1817. * @codeCoverageIgnore
  1818. */
  1819. public function getTemplateName(): string
  1820. {
  1821. return "@component/molecule/default_security_login_form.html.twig";
  1822. }
  1823. /**
  1824. * @codeCoverageIgnore
  1825. */
  1826. public function isTraitable(): bool
  1827. {
  1828. return false;
  1829. }
  1830. /**
  1831. * @codeCoverageIgnore
  1832. */
  1833. public function getDebugInfo(): array
  1834. {
  1835. 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,);
  1836. }
  1837. public function getSourceContext(): Source
  1838. {
  1839. return new Source("{% if componentKey is not defined %}
  1840. {% set componentKey = \"default_security_login_form\" %}
  1841. {% endif %}
  1842. {% set item_config = generateComponentOptions(value, componentKey)%}
  1843. {% set ssoConfig = getSettingValue(constant('App\\\\Constants\\\\Setting::SSO_SETTINGS')) %}
  1844. {% if ssoConfig is not null and isModuleActive(constant('App\\\\Constants\\\\Sso::MODULE_NAME')) and app.request.attributes.get('_route') != \"app_login_admin\" %}
  1845. {% set ssoConfigTitle = null %}
  1846. {% set ssoConfigSubtitle = null %}
  1847. {% set btnContent = null %}
  1848. {% set ssoConfigRoute = constant('App\\\\Constants\\\\Sso::ARRAY_SSO_ROUTES')[ssoConfig.ssoType|lower] %}
  1849. {% if ssoConfig.title is not null %}
  1850. {% set ssoConfigTitle = ssoConfig.title %}
  1851. {% endif %}
  1852. {% if ssoConfig.subtitle is not null %}
  1853. {% set ssoConfigsubtitle = ssoConfig.subtitle %}
  1854. {% endif %}
  1855. {% if ssoConfig.btnContent is not null %}
  1856. {% set ssoConfigBtnContent = ssoConfig.btnContent %}
  1857. {% endif %}
  1858. {% if value.title is defined and value.title is not null %}
  1859. {% set value = value|merge({'title': value.title|merge({'content': ssoConfigTitle})}) %}
  1860. {% endif %}
  1861. {% if value.text is defined and value.text is not null and ssoConfigsubtitle is defined %}
  1862. {% set value = value|merge({'text': value.text|merge({'content': ssoConfigsubtitle})}) %}
  1863. {% endif %}
  1864. {% if value.link is defined and value.link is not null %}
  1865. {% set value = value|merge({'link': value.link|merge({'content': ssoConfigBtnContent})}) %}
  1866. {% set value = value|merge({'link': value.link|merge({'route': ssoConfigRoute})}) %}
  1867. {% endif %}
  1868. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1869. {% if value.container is defined %}
  1870. <div class=\"{{ value.container }}\">
  1871. {% endif %}
  1872. {% if value.title is defined and value.title is not null %}
  1873. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1874. {% block atom %}
  1875. {% include'@component/atom/title.html.twig' with {'title': value} %}
  1876. {% endblock atom %}
  1877. {% endembed %}
  1878. {% endif %}
  1879. {% if value.text is defined and value.text is not null %}
  1880. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1881. {% block atom %}
  1882. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  1883. {% endblock atom %}
  1884. {% endembed %}
  1885. {% endif %}
  1886. {% if value.link is defined and value.link is not null %}
  1887. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  1888. {% block atom %}
  1889. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class=\"{{ value.wrapper.class }}\"{% endif %}>
  1890. {% include '@component/atom/link.html.twig' with {'link': value} %}
  1891. </div>
  1892. {% endblock atom %}
  1893. {% endembed %}
  1894. {% endif %}
  1895. {% if value.container is defined %}
  1896. </div>
  1897. {% endif %}
  1898. </div>
  1899. {% else %}
  1900. <div class=\"{% if value.class is defined %}{{ value.class }}{% else %}col{% endif %}{% if value.order is defined %} order-{{ value.order }}{% endif %}\">
  1901. {% if value.container is defined %}
  1902. <div class=\"{{ value.container }}\">
  1903. {% endif %}
  1904. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  1905. {% block atom %}
  1906. {% include '@component/atom/title.html.twig' with {'title': value} %}
  1907. {% endblock atom %}
  1908. {% endembed %}
  1909. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  1910. {% block atom %}
  1911. {% include '@component/atom/paragraph.html.twig' with {'value': value} %}
  1912. {% endblock atom %}
  1913. {% endembed %}
  1914. {% set formData = value.form %}
  1915. {% set columns = { label: 'col-12', input: 'col-12'} %}
  1916. {% if formData.columns is defined %}
  1917. {% set columns = formData.columns %}
  1918. {% endif %}
  1919. {{ form_start(form, {'attr': {'action':'login','class': 'data-validation'}}) }}
  1920. {# {% if error %}#}
  1921. {# <div class=\"alert alert-danger w-100\" style=\"margin-right: 4.5em;\">{{ error.messageKey|trans(error.messageData)|capitalize|raw }}</div>#}
  1922. {# {% endif %}#}
  1923. {# 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 #}
  1924. {% set labelColor = formData.label_color is defined ? formData.label_color : '' %}
  1925. {#
  1926. Override des labels si besoin
  1927. Ajouter une clef override dans le yaml du composant dans form
  1928. [...]
  1929. form:
  1930. override:
  1931. email:
  1932. label: 'Mon label'
  1933. [...]
  1934. #}
  1935. {% set labels = {
  1936. email: 'email'|trans,
  1937. password: 'mot de passe'|trans,
  1938. } %}
  1939. {% set placeholders = {
  1940. email: '',
  1941. password: '',
  1942. } %}
  1943. {% if formData.override is defined %}
  1944. {% if formData.override.email is defined %}
  1945. {% if formData.override.email is key_usable('label') %}
  1946. {% set labels = labels|merge({email: formData.override.email.label|trans}) %}
  1947. {% endif %}
  1948. {% if formData.override.email is key_usable('placeholder') %}
  1949. {% set placeholders = placeholders|merge({email: formData.override.email.placeholder|trans}) %}
  1950. {% endif %}
  1951. {% endif %}
  1952. {% if formData.override.password is defined %}
  1953. {% if formData.override.password is key_usable('label') %}
  1954. {% set labels = labels|merge({password: formData.override.password.label|trans}) %}
  1955. {% endif %}
  1956. {% if formData.override.password is key_usable('placeholder') %}
  1957. {% set placeholders = placeholders|merge({password: formData.override.password.placeholder|trans}) %}
  1958. {% endif %}
  1959. {% endif %}
  1960. {% endif %}
  1961. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1962. <div class=\"{{ columns.label }}\">
  1963. {{ form_label(loginForm.email, labels.email, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1964. </div>
  1965. <div class=\"{{ columns.input }}\">
  1966. {{ form_widget(loginForm.email, {'attr' : {'placeholder': placeholders.email|trans}}) }}
  1967. </div>
  1968. </div>
  1969. <div class=\"{% if columns.wrapper is defined %}{{ columns.wrapper }}{% else %}row mb-3 {% endif %}\">
  1970. <div class=\"{{ columns.label }}\">
  1971. {{ form_label(loginForm.password, labels.password, {'label_attr': {'class': 'form-label ' ~ labelColor }}) }}
  1972. </div>
  1973. <div class=\"{{ columns.input }} position-relative\">
  1974. {{ form_widget(loginForm.password, {'attr' : {'placeholder': placeholders.password}}) }}
  1975. </div>
  1976. </div>
  1977. <div class=\"d-flex{% if formData.actions is defined and formData.actions.class is defined %} {{ formData.actions.class }}{% endif %} \">
  1978. <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 %}\">
  1979. <input type=\"hidden\" name=\"_target_path\" value=\"/\" />
  1980. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />
  1981. <label for=\"remember_me\">{{ 'se souvenir de moi'|trans|capitalize }}</label>
  1982. </div>
  1983. <div class=\"{{ formData.actions.connect.col }} {% if formData.actions.connect.order is defined %} {{ formData.actions.connect.order }}{% endif %}\">
  1984. <button type=\"submit\"
  1985. class=\"capitalize-first-word btn{% if formData.actions.connect.class is defined %} {{ formData.actions.connect.class }}{% endif %}\"
  1986. name=\"form_button\" value=\"login\">
  1987. {% if formData.actions.connect.content is defined %}{{ formData.actions.connect.content|trans|raw }}{% else %}{{ 'connexion'|trans }}{% endif %}
  1988. </button>
  1989. </div>
  1990. <div class=\"{{ formData.actions.forgot_password.col }} {% if formData.actions.forgot_password.order is defined %} {{ formData.actions.forgot_password.order }}{% endif %}\">
  1991. <a href=\"{{ path('app_forgot_password_request') }}\"
  1992. {% 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>
  1993. </div>
  1994. {% if hasFormRegister %}
  1995. <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 %}\">
  1996. <a href=\"{{ path('app_register') }}\"
  1997. 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 %}\">
  1998. {% 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 %}
  1999. </a>
  2000. </div>
  2001. {% endif %}
  2002. <small class=\"{% if formData.required is defined %}{{ formData.required }}{% endif %}\">* {{ 'info.contact.required'|trans }}</small>
  2003. </div>
  2004. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  2005. {{ form_end(loginForm) }}
  2006. {% if value.container is defined %}
  2007. </div>
  2008. {% endif %}
  2009. </div>
  2010. {% endif %}
  2011. ", "@component/molecule/default_security_login_form.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/molecule/default_security_login_form.html.twig");
  2012. }
  2013. }