var/cache/dev/api-edenwork.dtv-projects.com/twig/c8/c81f081026fa892903ea6a83148f3d25.php line 54

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. /* security/login.html.twig */
  15. class __TwigTemplate_a55e9f4c36eea26f3ead18dd9a8328db extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'content_container' => [$this, 'block_content_container'],
  25. 'content' => [$this, 'block_content'],
  26. 'scripts' => [$this, 'block_scripts'],
  27. ];
  28. }
  29. protected function doGetParent(array $context)
  30. {
  31. // line 1
  32. return "security/layout.html.twig";
  33. }
  34. protected function doDisplay(array $context, array $blocks = [])
  35. {
  36. $macros = $this->macros;
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  41. // line 4
  42. $context["loginData"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getFrontDataFromSettingOrYaml("front.security.login", $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login"));
  43. // line 1
  44. $this->parent = $this->loadTemplate("security/layout.html.twig", "security/login.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 6
  50. public function block_content_container($context, array $blocks = [])
  51. {
  52. $macros = $this->macros;
  53. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  55. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  57. // line 7
  58. yield " ";
  59. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "content_container", [], "any", true, true, false, 7)) {
  60. // line 8
  61. yield " ";
  62. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 8, $this->source); })()), "content_container", [], "any", false, false, false, 8), "html", null, true);
  63. yield "
  64. ";
  65. } else {
  66. // line 9
  67. yield "container";
  68. }
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71. return; yield '';
  72. }
  73. // line 12
  74. public function block_content($context, array $blocks = [])
  75. {
  76. $macros = $this->macros;
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  81. // line 13
  82. yield " <div class=\"row ";
  83. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "row_justify", [], "any", true, true, false, 13)) {
  84. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 13, $this->source); })()), "row_justify", [], "any", false, false, false, 13), "html", null, true);
  85. } else {
  86. yield "justify-content-between";
  87. }
  88. yield "\">
  89. <div class=\"col-md-6\">
  90. ";
  91. // line 15
  92. $context['_parent'] = $context;
  93. $context['_seq'] = CoreExtension::ensureTraversable(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.', 15, $this->source); })()), "flashes", [], "method", false, false, false, 15));
  94. foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  95. // line 16
  96. yield " ";
  97. $context['_parent'] = $context;
  98. $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  99. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  100. // line 17
  101. yield " <div class=\"alert alert-";
  102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  103. yield "\">
  104. ";
  105. // line 18
  106. yield $context["message"];
  107. yield "
  108. </div>
  109. ";
  110. }
  111. $_parent = $context['_parent'];
  112. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  113. $context = array_intersect_key($context, $_parent) + $_parent;
  114. // line 21
  115. yield " ";
  116. }
  117. $_parent = $context['_parent'];
  118. unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
  119. $context = array_intersect_key($context, $_parent) + $_parent;
  120. // line 22
  121. yield " ";
  122. if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())) {
  123. // line 23
  124. yield " <div class=\"alert alert-danger\">";
  125. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })()), "messageKey", [], "any", false, false, false, 23), CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })()), "messageData", [], "any", false, false, false, 23));
  126. yield "</div>
  127. ";
  128. }
  129. // line 25
  130. yield " </div>
  131. <div class=\"w-100\"></div>
  132. ";
  133. // line 29
  134. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "sections", [], "any", true, true, false, 29)) {
  135. // line 30
  136. yield " ";
  137. $context['_parent'] = $context;
  138. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 30, $this->source); })()), "sections", [], "any", false, false, false, 30));
  139. $context['loop'] = [
  140. 'parent' => $context['_parent'],
  141. 'index0' => 0,
  142. 'index' => 1,
  143. 'first' => true,
  144. ];
  145. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  146. $length = count($context['_seq']);
  147. $context['loop']['revindex0'] = $length - 1;
  148. $context['loop']['revindex'] = $length;
  149. $context['loop']['length'] = $length;
  150. $context['loop']['last'] = 1 === $length;
  151. }
  152. foreach ($context['_seq'] as $context["k"] => $context["el"]) {
  153. // line 31
  154. yield " ";
  155. if ((((CoreExtension::getAttribute($this->env, $this->source, $context["el"], "enabled", [], "any", false, false, false, 31) || (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.', 31, $this->source); })()), "request", [], "any", false, false, false, 31), "query", [], "any", false, false, false, 31), "get", ["force_login"], "method", false, false, false, 31) == $this->extensions['App\Twig\TwigExtension']->md5(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["platform"]) || array_key_exists("platform", $context) ? $context["platform"] : (function () { throw new RuntimeError('Variable "platform" does not exist.', 31, $this->source); })()), "global", [], "any", false, false, false, 31), "project_key", [], "any", false, false, false, 31)))) && CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", true, true, false, 31)) && CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", false, false, false, 31), ["default_security_login_form"]))) {
  156. // line 32
  157. yield " ";
  158. yield from $this->loadTemplate((("@component/molecule/" . CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", false, false, false, 32)) . ".html.twig"), "security/login.html.twig", 32)->unwrap()->yield(CoreExtension::merge($context, ["value" => $context["el"], "form" => (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 32, $this->source); })()), "hasFormRegister" => (isset($context["hasFormRegister"]) || array_key_exists("hasFormRegister", $context) ? $context["hasFormRegister"] : (function () { throw new RuntimeError('Variable "hasFormRegister" does not exist.', 32, $this->source); })()), "componentKey" => "security.login.sections"]));
  159. // line 33
  160. yield " ";
  161. } elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["el"], "enabled", [], "any", false, false, false, 33) && !($context["k"] === "section_register"))) {
  162. // line 34
  163. yield " ";
  164. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["el"], ("security.login.sections." . $context["k"]));
  165. yield "
  166. ";
  167. }
  168. // line 36
  169. yield " ";
  170. ++$context['loop']['index0'];
  171. ++$context['loop']['index'];
  172. $context['loop']['first'] = false;
  173. if (isset($context['loop']['length'])) {
  174. --$context['loop']['revindex0'];
  175. --$context['loop']['revindex'];
  176. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  177. }
  178. }
  179. $_parent = $context['_parent'];
  180. unset($context['_seq'], $context['_iterated'], $context['k'], $context['el'], $context['_parent'], $context['loop']);
  181. $context = array_intersect_key($context, $_parent) + $_parent;
  182. // line 37
  183. yield " ";
  184. }
  185. // line 38
  186. yield " </div>
  187. ";
  188. // line 40
  189. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "modal_video_presentation", [], "any", true, true, false, 40) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 40, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 40), "enabled", [], "any", false, false, false, 40))) {
  190. // line 41
  191. yield " <div class=\"modal fade ";
  192. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 41, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 41), "class", [], "any", false, false, false, 41), "html", null, true);
  193. yield "\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
  194. <div class=\"modal-dialog modal-dialog-centered\">
  195. <div class=\"modal-content\">
  196. <div class=\"modal-header bg-primary border-primary\">
  197. <h5 class=\"modal-title\" id=\"modal_video_presentation_label\">";
  198. // line 45
  199. yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 45, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 45), "title", [], "any", false, false, false, 45);
  200. yield "</h5>
  201. <button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close ";
  202. // line 46
  203. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 46, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 46), "btn_close_class", [], "any", false, false, false, 46), "html", null, true);
  204. yield "\" data-dismiss=\"modal\" aria-label=\"Close\">
  205. <i class=\"bi bi-x-lg\"></i>
  206. </button>
  207. </div>
  208. <div class=\"modal-body bg-primary border-primary\">
  209. <video id=\"youtube_player\" controls >
  210. ";
  211. // line 52
  212. $context['_parent'] = $context;
  213. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 52, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 52), "sources", [], "any", false, false, false, 52));
  214. foreach ($context['_seq'] as $context["type"] => $context["src"]) {
  215. // line 53
  216. yield " ";
  217. if (CoreExtension::getAttribute($this->env, $this->source, $context["src"], "filename", [], "any", true, true, false, 53)) {
  218. // line 54
  219. yield " <source src=\"";
  220. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_file_folder", ["fileName" => CoreExtension::getAttribute($this->env, $this->source, $context["src"], "filename", [], "any", false, false, false, 54), "folder" => CoreExtension::getAttribute($this->env, $this->source, $context["src"], "folder", [], "any", false, false, false, 54)]), "html", null, true);
  221. yield "\" type=\"video/";
  222. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  223. yield "\">
  224. ";
  225. } else {
  226. // line 56
  227. yield " <source src=\"";
  228. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["src"], "html", null, true);
  229. yield "\" type=\"video/";
  230. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  231. yield "\">
  232. ";
  233. }
  234. // line 58
  235. yield " ";
  236. }
  237. $_parent = $context['_parent'];
  238. unset($context['_seq'], $context['_iterated'], $context['type'], $context['src'], $context['_parent'], $context['loop']);
  239. $context = array_intersect_key($context, $_parent) + $_parent;
  240. // line 59
  241. yield " </video>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. <div class=\"security-modal-btn security-modal-btn-animate ";
  247. // line 65
  248. 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["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 65, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 65), "btn", [], "any", false, false, false, 65), "class", [], "any", false, false, false, 65), "html", null, true);
  249. yield "\"
  250. data-toggle=\"modal\"
  251. data-target=\"#modal_video_presentation\">
  252. ";
  253. // line 68
  254. 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["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 68, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 68), "btn", [], "any", false, false, false, 68), "content", [], "any", false, false, false, 68), "html", null, true);
  255. yield "
  256. </div>
  257. ";
  258. }
  259. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  261. return; yield '';
  262. }
  263. // line 73
  264. public function block_scripts($context, array $blocks = [])
  265. {
  266. $macros = $this->macros;
  267. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  268. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  269. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  270. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  271. // line 74
  272. yield " ";
  273. yield from $this->yieldParentBlock("scripts", $context, $blocks);
  274. yield "
  275. <script>
  276. window.addEventListener('load', addEventModal);
  277. function addEventModal(){
  278. \$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
  279. document.getElementById('youtube_player').pause();
  280. });
  281. \$('#modal_video_presentation').on('shown.bs.modal', function (e) {
  282. document.getElementById('youtube_player').play();
  283. });
  284. }
  285. </script>
  286. ";
  287. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  288. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  289. return; yield '';
  290. }
  291. /**
  292. * @codeCoverageIgnore
  293. */
  294. public function getTemplateName()
  295. {
  296. return "security/login.html.twig";
  297. }
  298. /**
  299. * @codeCoverageIgnore
  300. */
  301. public function isTraitable()
  302. {
  303. return false;
  304. }
  305. /**
  306. * @codeCoverageIgnore
  307. */
  308. public function getDebugInfo()
  309. {
  310. return array ( 306 => 74, 296 => 73, 281 => 68, 275 => 65, 267 => 59, 261 => 58, 253 => 56, 245 => 54, 242 => 53, 238 => 52, 229 => 46, 225 => 45, 217 => 41, 215 => 40, 211 => 38, 208 => 37, 194 => 36, 188 => 34, 185 => 33, 182 => 32, 179 => 31, 161 => 30, 159 => 29, 153 => 25, 147 => 23, 144 => 22, 138 => 21, 129 => 18, 124 => 17, 119 => 16, 115 => 15, 105 => 13, 95 => 12, 83 => 9, 77 => 8, 74 => 7, 64 => 6, 53 => 1, 51 => 4, 38 => 1,);
  311. }
  312. public function getSourceContext()
  313. {
  314. return new Source("{% extends 'security/layout.html.twig' %}
  315. {% set loginData = getFrontDataFromSettingOrYaml('front.security.login', platform_front('security.login') ) %}
  316. {% block content_container %}
  317. {% if loginData.content_container is defined %}
  318. {{ loginData.content_container }}
  319. {% else %}container{% endif %}
  320. {% endblock %}
  321. {% block content %}
  322. <div class=\"row {% if loginData.row_justify is defined %}{{ loginData.row_justify }}{% else %}justify-content-between{% endif %}\">
  323. <div class=\"col-md-6\">
  324. {% for type, messages in app.flashes() %}
  325. {% for message in messages %}
  326. <div class=\"alert alert-{{ type }}\">
  327. {{ message|raw }}
  328. </div>
  329. {% endfor %}
  330. {% endfor %}
  331. {% if error %}
  332. <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData) }}</div>
  333. {% endif %}
  334. </div>
  335. <div class=\"w-100\"></div>
  336. {% if loginData.sections is defined %}
  337. {% for k, el in loginData.sections %}
  338. {% if ( el.enabled or app.request.query.get('force_login') == platform.global.project_key|md5 ) and el.type is defined and el.type in ['default_security_login_form'] %}
  339. {% include '@component/molecule/'~ el.type ~'.html.twig' with {'value': el, 'form': loginForm, 'hasFormRegister': hasFormRegister, componentKey: 'security.login.sections' } %}
  340. {% elseif el.enabled and k is not same as('section_register') %}
  341. {{ component(el,'security.login.sections.'~ k) }}
  342. {% endif %}
  343. {% endfor %}
  344. {% endif %}
  345. </div>
  346. {% if loginData.modal_video_presentation is defined and loginData.modal_video_presentation.enabled %}
  347. <div class=\"modal fade {{ loginData.modal_video_presentation.class }}\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
  348. <div class=\"modal-dialog modal-dialog-centered\">
  349. <div class=\"modal-content\">
  350. <div class=\"modal-header bg-primary border-primary\">
  351. <h5 class=\"modal-title\" id=\"modal_video_presentation_label\">{{ loginData.modal_video_presentation.title|raw }}</h5>
  352. <button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close {{ loginData.modal_video_presentation.btn_close_class }}\" data-dismiss=\"modal\" aria-label=\"Close\">
  353. <i class=\"bi bi-x-lg\"></i>
  354. </button>
  355. </div>
  356. <div class=\"modal-body bg-primary border-primary\">
  357. <video id=\"youtube_player\" controls >
  358. {% for type,src in loginData.modal_video_presentation.sources %}
  359. {% if src.filename is defined %}
  360. <source src=\"{{ path('static_file_folder', {'fileName': src.filename, 'folder': src.folder}) }}\" type=\"video/{{ type }}\">
  361. {% else %}
  362. <source src=\"{{ src }}\" type=\"video/{{ type }}\">
  363. {% endif %}
  364. {% endfor %}
  365. </video>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. <div class=\"security-modal-btn security-modal-btn-animate {{ loginData.modal_video_presentation.btn.class }}\"
  371. data-toggle=\"modal\"
  372. data-target=\"#modal_video_presentation\">
  373. {{ loginData.modal_video_presentation.btn.content }}
  374. </div>
  375. {% endif %}
  376. {% endblock %}
  377. {% block scripts %}
  378. {{ parent() }}
  379. <script>
  380. window.addEventListener('load', addEventModal);
  381. function addEventModal(){
  382. \$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
  383. document.getElementById('youtube_player').pause();
  384. });
  385. \$('#modal_video_presentation').on('shown.bs.modal', function (e) {
  386. document.getElementById('youtube_player').play();
  387. });
  388. }
  389. </script>
  390. {% endblock %}
  391. ", "security/login.html.twig", "/var/www/dtv-preprod/current/templates/security/login.html.twig");
  392. }
  393. }