var/cache/website/dev/twig/34/348f09c26e42f6f28606debc0b5d9aa2.php line 66

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\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* partner/auth_form.html.twig */
  17. class __TwigTemplate_3c89a02afd9863f7cb24e81fb4759da4 extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'page_class' => [$this, 'block_page_class'],
  30. 'header' => [$this, 'block_header'],
  31. 'aside' => [$this, 'block_aside'],
  32. 'footer' => [$this, 'block_footer'],
  33. 'modals' => [$this, 'block_modals'],
  34. 'stylesheets' => [$this, 'block_stylesheets'],
  35. 'header_search' => [$this, 'block_header_search'],
  36. 'header_search_mobile' => [$this, 'block_header_search_mobile'],
  37. 'content' => [$this, 'block_content'],
  38. 'javascripts' => [$this, 'block_javascripts'],
  39. ];
  40. }
  41. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  42. {
  43. // line 1
  44. return "base.html.twig";
  45. }
  46. protected function doDisplay(array $context, array $blocks = []): iterable
  47. {
  48. $macros = $this->macros;
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partner/auth_form.html.twig"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partner/auth_form.html.twig"));
  53. // line 3
  54. $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 3, $this->source); })()), ["form_theme.html.twig"], true);
  55. // line 1
  56. $this->parent = $this->load("base.html.twig", 1);
  57. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60. }
  61. // line 7
  62. /**
  63. * @return iterable<null|scalar|\Stringable>
  64. */
  65. public function block_page_class(array $context, array $blocks = []): iterable
  66. {
  67. $macros = $this->macros;
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  72. // line 8
  73. yield "\tpage connection-screen-page
  74. ";
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77. yield from [];
  78. }
  79. // line 11
  80. /**
  81. * @return iterable<null|scalar|\Stringable>
  82. */
  83. public function block_header(array $context, array $blocks = []): iterable
  84. {
  85. $macros = $this->macros;
  86. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  88. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. yield from [];
  93. }
  94. // line 13
  95. /**
  96. * @return iterable<null|scalar|\Stringable>
  97. */
  98. public function block_aside(array $context, array $blocks = []): iterable
  99. {
  100. $macros = $this->macros;
  101. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "aside"));
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "aside"));
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107. yield from [];
  108. }
  109. // line 15
  110. /**
  111. * @return iterable<null|scalar|\Stringable>
  112. */
  113. public function block_footer(array $context, array $blocks = []): iterable
  114. {
  115. $macros = $this->macros;
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  120. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122. yield from [];
  123. }
  124. // line 17
  125. /**
  126. * @return iterable<null|scalar|\Stringable>
  127. */
  128. public function block_modals(array $context, array $blocks = []): iterable
  129. {
  130. $macros = $this->macros;
  131. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  133. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137. yield from [];
  138. }
  139. // line 19
  140. /**
  141. * @return iterable<null|scalar|\Stringable>
  142. */
  143. public function block_stylesheets(array $context, array $blocks = []): iterable
  144. {
  145. $macros = $this->macros;
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  148. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  150. // line 20
  151. yield "\t";
  152. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  153. yield "
  154. \t";
  155. // line 21
  156. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("connection_screen_styles");
  157. yield "
  158. ";
  159. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161. yield from [];
  162. }
  163. // line 26
  164. /**
  165. * @return iterable<null|scalar|\Stringable>
  166. */
  167. public function block_header_search(array $context, array $blocks = []): iterable
  168. {
  169. $macros = $this->macros;
  170. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  172. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  174. // line 27
  175. yield "\t";
  176. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178. yield from [];
  179. }
  180. // line 30
  181. /**
  182. * @return iterable<null|scalar|\Stringable>
  183. */
  184. public function block_header_search_mobile(array $context, array $blocks = []): iterable
  185. {
  186. $macros = $this->macros;
  187. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  189. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  191. // line 31
  192. yield "\t";
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195. yield from [];
  196. }
  197. // line 34
  198. /**
  199. * @return iterable<null|scalar|\Stringable>
  200. */
  201. public function block_content(array $context, array $blocks = []): iterable
  202. {
  203. $macros = $this->macros;
  204. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  206. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  208. // line 35
  209. yield "
  210. \t";
  211. // line 38
  212. yield "\t";
  213. $context["media"] = null;
  214. // line 39
  215. yield "\t";
  216. if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "pageMedia", [], "any", true, true, false, 39) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 39, $this->source); })()), "pageMedia", [], "any", false, false, false, 39))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "pageMedia", [], "any", false, true, false, 39), "id", [], "any", true, true, false, 39))) {
  217. // line 40
  218. yield "\t\t";
  219. $context["media"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 40, $this->source); })()), "pageMedia", [], "any", false, false, false, 40), "id", [], "any", false, false, false, 40), 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.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "locale", [], "any", false, false, false, 40));
  220. // line 41
  221. yield "\t";
  222. }
  223. // line 42
  224. yield "
  225. \t";
  226. // line 43
  227. $context["mediaUrl"] = (((($tmp = (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 43, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\MediaExtension']->getMediaUrlWithFallback((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 43, $this->source); })()), "1600x")) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/connection-screen/background.gif")));
  228. // line 44
  229. yield "\t";
  230. $context["mediaMimeType"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "mimeType", [], "any", true, true, false, 44)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 44, $this->source); })()), "mimeType", [], "any", false, false, false, 44), "")) : (""));
  231. // line 45
  232. yield "\t";
  233. $context["isVideo"] = ((is_string($_v0 = (isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 45, $this->source); })())) && is_string($_v1 = "video/") && str_starts_with($_v0, $_v1)) || CoreExtension::matches("/.(mp4|webm|ogg)(\\?.*)?\$/i", (isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 45, $this->source); })())));
  234. // line 46
  235. yield "
  236. \t";
  237. // line 47
  238. $context["partner"] = $this->extensions['App\Twig\Partner\PartnerExtension']->getCurrentPartner();
  239. // line 48
  240. yield "
  241. \t<section class=\"connection-screen\">
  242. \t\t";
  243. // line 50
  244. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 50, $this->source); })()))) {
  245. // line 51
  246. yield "\t\t\t<div class=\"connection-screen__media\" aria-hidden=\"true\">
  247. \t\t\t\t";
  248. // line 52
  249. if ((($tmp = (isset($context["isVideo"]) || array_key_exists("isVideo", $context) ? $context["isVideo"] : (function () { throw new RuntimeError('Variable "isVideo" does not exist.', 52, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  250. // line 53
  251. yield "\t\t\t\t\t<video class=\"connection-screen__media-video\" autoplay muted loop playsinline preload=\"metadata\">
  252. \t\t\t\t\t\t<source src=\"";
  253. // line 54
  254. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 54, $this->source); })()), "html_attr");
  255. yield "\" type=\"";
  256. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 54, $this->source); })()), "html_attr");
  257. yield "\" />
  258. \t\t\t\t\t</video>
  259. \t\t\t\t";
  260. } else {
  261. // line 57
  262. yield "\t\t\t\t\t<img class=\"connection-screen__media-img\" src=\"";
  263. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 57, $this->source); })()), "html_attr");
  264. yield "\" alt=\"\" />
  265. \t\t\t\t";
  266. }
  267. // line 59
  268. yield "\t\t\t</div>
  269. \t\t";
  270. }
  271. // line 61
  272. yield "
  273. \t\t<div class=\"Popup active connection-screen__auth connection-screen__auth--login\">
  274. \t\t\t<div class=\"Popup-body\">
  275. \t\t\t\t";
  276. // line 65
  277. yield (string) $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.', 65, $this->source); })()), 'form_start', ["attr" => ["id" => "partner-connection-form"]]);
  278. yield "
  279. \t\t\t\t<div class=\"top\">
  280. \t\t\t\t\t";
  281. // line 68
  282. yield from $this->load("pages/_includes/icons/login/login-1.svg", 68)->unwrap()->yield($context);
  283. // line 69
  284. yield "\t\t\t\t\t<div class=\"h1\">";
  285. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.login.title", ["%partner%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["partner"]) || array_key_exists("partner", $context) ? $context["partner"] : (function () { throw new RuntimeError('Variable "partner" does not exist.', 69, $this->source); })()), "name", [], "any", false, false, false, 69)], "partner"), "html", null, true);
  286. yield "</div>
  287. \t\t\t\t\t<div class=\"h2\">";
  288. // line 70
  289. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.login.subtitle", [], "partner"), "html", null, true);
  290. yield "</div>
  291. \t\t\t\t</div>
  292. \t\t\t\t";
  293. // line 73
  294. yield (string) $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.', 73, $this->source); })()), 'form_start');
  295. yield "
  296. \t\t\t\t\t";
  297. // line 74
  298. yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 74, $this->source); })()), 'errors');
  299. yield "
  300. \t\t\t\t\t";
  301. // line 77
  302. yield "\t\t\t\t\t";
  303. $context['_parent'] = $context;
  304. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 77, $this->source); })()), "children", [], "any", false, false, false, 77));
  305. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  306. // line 78
  307. yield "\t\t\t\t\t\t";
  308. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 78), "name", [], "any", false, false, false, 78) != "submit")) {
  309. // line 79
  310. yield "\t\t\t\t\t\t\t";
  311. // line 80
  312. yield "\t\t\t\t\t\t\t";
  313. yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row', ["attr" => ["class" => ""]]);
  314. yield "
  315. \t\t\t\t\t\t";
  316. }
  317. // line 82
  318. yield "\t\t\t\t\t";
  319. }
  320. $_parent = $context['_parent'];
  321. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  322. $context = array_intersect_key($context, $_parent);
  323. $context += $_parent;
  324. // line 83
  325. yield "
  326. \t\t\t\t\t<div class=\"form-group\">
  327. \t\t\t\t\t\t";
  328. // line 85
  329. yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 85, $this->source); })()), "submit", [], "any", false, false, false, 85), 'widget', ["attr" => ["class" => "btn-secondary br1 btn style1 medium reverse_color"]]);
  330. yield "
  331. \t\t\t\t\t</div>
  332. \t\t\t\t";
  333. // line 87
  334. yield (string) $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.', 87, $this->source); })()), 'form_end');
  335. yield "
  336. \t\t\t</div>
  337. \t\t</div>
  338. \t</section>
  339. ";
  340. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  341. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  342. yield from [];
  343. }
  344. // line 93
  345. /**
  346. * @return iterable<null|scalar|\Stringable>
  347. */
  348. public function block_javascripts(array $context, array $blocks = []): iterable
  349. {
  350. $macros = $this->macros;
  351. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  352. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  353. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  354. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  355. // line 94
  356. yield "\t";
  357. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  358. yield "
  359. ";
  360. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  361. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  362. yield from [];
  363. }
  364. /**
  365. * @codeCoverageIgnore
  366. */
  367. public function getTemplateName(): string
  368. {
  369. return "partner/auth_form.html.twig";
  370. }
  371. /**
  372. * @codeCoverageIgnore
  373. */
  374. public function isTraitable(): bool
  375. {
  376. return false;
  377. }
  378. /**
  379. * @codeCoverageIgnore
  380. */
  381. public function getDebugInfo(): array
  382. {
  383. return array ( 440 => 94, 427 => 93, 411 => 87, 406 => 85, 402 => 83, 395 => 82, 389 => 80, 387 => 79, 384 => 78, 379 => 77, 374 => 74, 370 => 73, 364 => 70, 359 => 69, 357 => 68, 351 => 65, 345 => 61, 341 => 59, 335 => 57, 327 => 54, 324 => 53, 322 => 52, 319 => 51, 317 => 50, 313 => 48, 311 => 47, 308 => 46, 305 => 45, 302 => 44, 300 => 43, 297 => 42, 294 => 41, 291 => 40, 288 => 39, 285 => 38, 281 => 35, 268 => 34, 257 => 31, 244 => 30, 233 => 27, 220 => 26, 207 => 21, 202 => 20, 189 => 19, 167 => 17, 145 => 15, 123 => 13, 101 => 11, 89 => 8, 76 => 7, 65 => 1, 63 => 3, 50 => 1,);
  384. }
  385. public function getSourceContext(): Source
  386. {
  387. return new Source("{% extends \x27base.html.twig\x27 %}
  388. {% form_theme form \x27form_theme.html.twig\x27 %}
  389. {% trans_default_domain \x27partner\x27 %}
  390. {% block page_class %}
  391. \tpage connection-screen-page
  392. {% endblock %}
  393. {% block header %}{% endblock %}
  394. {% block aside %}{% endblock %}
  395. {% block footer %}{% endblock %}
  396. {% block modals %}{% endblock %}
  397. {% block stylesheets %}
  398. \t{{ parent() }}
  399. \t{{ encore_entry_link_tags(\x27connection_screen_styles\x27) }}
  400. {% endblock %}
  401. {% block header_search %}
  402. \t{# Page liste : pas de barre de recherche #}
  403. {% endblock %}
  404. {% block header_search_mobile %}
  405. \t{# Page liste : pas de barre de recherche #}
  406. {% endblock %}
  407. {% block content %}
  408. \t{# pageMedia peut être une image ou une vidéo (affiché en arrière-plan) #}
  409. \t{% set media = null %}
  410. \t{% if content.pageMedia is defined and content.pageMedia is not null and content.pageMedia.id is defined %}
  411. \t\t{% set media = sulu_resolve_media(content.pageMedia.id, app.request.locale) %}
  412. \t{% endif %}
  413. \t{% set mediaUrl = media ? sulu_media_url(media, \x271600x\x27) : asset(\x27img/connection-screen/background.gif\x27) %}
  414. \t{% set mediaMimeType = media.mimeType|default(\x27\x27) %}
  415. \t{% set isVideo = (mediaMimeType starts with \x27video/\x27) or (mediaUrl matches \x27/\\.(mp4|webm|ogg)(\\\\?.*)?\$/i\x27) %}
  416. \t{% set partner = getCurrentPartner() %}
  417. \t<section class=\"connection-screen\">
  418. \t\t{% if mediaUrl is not empty %}
  419. \t\t\t<div class=\"connection-screen__media\" aria-hidden=\"true\">
  420. \t\t\t\t{% if isVideo %}
  421. \t\t\t\t\t<video class=\"connection-screen__media-video\" autoplay muted loop playsinline preload=\"metadata\">
  422. \t\t\t\t\t\t<source src=\"{{ mediaUrl|e(\x27html_attr\x27) }}\" type=\"{{ mediaMimeType|e(\x27html_attr\x27) }}\" />
  423. \t\t\t\t\t</video>
  424. \t\t\t\t{% else %}
  425. \t\t\t\t\t<img class=\"connection-screen__media-img\" src=\"{{ mediaUrl|e(\x27html_attr\x27) }}\" alt=\"\" />
  426. \t\t\t\t{% endif %}
  427. \t\t\t</div>
  428. \t\t{% endif %}
  429. \t\t<div class=\"Popup active connection-screen__auth connection-screen__auth--login\">
  430. \t\t\t<div class=\"Popup-body\">
  431. \t\t\t\t{{ form_start(form, {\x27attr\x27: {\x27id\x27: \x27partner-connection-form\x27}}) }}
  432. \t\t\t\t<div class=\"top\">
  433. \t\t\t\t\t{% include \x27pages/_includes/icons/login/login-1.svg\x27 %}
  434. \t\t\t\t\t<div class=\"h1\">{{ \x27auth.login.title\x27|trans({\x27%partner%\x27: partner.name }) }}</div>
  435. \t\t\t\t\t<div class=\"h2\">{{ \x27auth.login.subtitle\x27|trans }}</div>
  436. \t\t\t\t</div>
  437. \t\t\t\t{{ form_start(form) }}
  438. \t\t\t\t\t{{ form_errors(form) }}
  439. \t\t\t\t\t{# Boucle pour permettre d\x27ajouter tous les champs sans le champs de submit qui est ajouté à la fin spécifiquement #}
  440. \t\t\t\t\t{% for child in form.children %}
  441. \t\t\t\t\t\t{% if child.vars.name != \x27submit\x27 %}
  442. \t\t\t\t\t\t\t{# Ajout de classes dynamiques au row si besoin via le wrapper #}
  443. \t\t\t\t\t\t\t{{ form_row(child, {\x27attr\x27: {\x27class\x27: \x27\x27}}) }}
  444. \t\t\t\t\t\t{% endif %}
  445. \t\t\t\t\t{% endfor %}
  446. \t\t\t\t\t<div class=\"form-group\">
  447. \t\t\t\t\t\t{{ form_widget(form.submit, {\x27attr\x27: {\x27class\x27: \x27btn-secondary br1 btn style1 medium reverse_color\x27}}) }}
  448. \t\t\t\t\t</div>
  449. \t\t\t\t{{ form_end(form) }}
  450. \t\t\t</div>
  451. \t\t</div>
  452. \t</section>
  453. {% endblock %}
  454. {% block javascripts %}
  455. \t{{ parent() }}
  456. {% endblock %}
  457. ", "partner/auth_form.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/partner/auth_form.html.twig");
  458. }
  459. }