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

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