var/cache/dev/grand-jeu-ad.dtv-projects.com/twig/32/329a0dc76f75daff165d569b5263a3de.php line 46

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. /* registration/register.html.twig */
  16. class __TwigTemplate_79b6a1ac624b0767dbcc2cbb0b497154 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->blocks = [
  28. 'bodyclass' => [$this, 'block_bodyclass'],
  29. 'content_container' => [$this, 'block_content_container'],
  30. 'content' => [$this, 'block_content'],
  31. 'scripts' => [$this, 'block_scripts'],
  32. ];
  33. }
  34. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35. {
  36. // line 1
  37. return "security/layout.html.twig";
  38. }
  39. protected function doDisplay(array $context, array $blocks = []): iterable
  40. {
  41. $macros = $this->macros;
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  46. $this->parent = $this->load("security/layout.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 4
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_bodyclass(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  62. yield "register";
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65. yield from [];
  66. }
  67. // line 5
  68. /**
  69. * @return iterable<null|scalar|\Stringable>
  70. */
  71. public function block_content_container(array $context, array $blocks = []): iterable
  72. {
  73. $macros = $this->macros;
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  78. // line 6
  79. yield " ";
  80. if ((($tmp = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login.content_container")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  81. // line 7
  82. yield " ";
  83. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login.content_container"), "html", null, true);
  84. yield "
  85. ";
  86. } else {
  87. // line 8
  88. yield "container";
  89. }
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. yield from [];
  93. }
  94. // line 11
  95. /**
  96. * @return iterable<null|scalar|\Stringable>
  97. */
  98. public function block_content(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", "content"));
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  105. // line 12
  106. yield " ";
  107. $context["pageData"] = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.register");
  108. // line 13
  109. yield " ";
  110. $context["pageConfig"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 13, $this->source); })()));
  111. // line 14
  112. yield "
  113. ";
  114. // line 16
  115. yield " ";
  116. $context["formErrors"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 16, $this->source); })()), "vars", [], "any", false, false, false, 16), "errors", [], "any", false, false, false, 16), "form", [], "any", false, false, false, 16), "getErrors", [true], "method", false, false, false, 16);
  117. // line 17
  118. yield "
  119. ";
  120. // line 18
  121. yield from $this->load("registration/register.html.twig", 18, 733844994)->unwrap()->yield(CoreExtension::merge($context, ["value" => (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 18, $this->source); })())]));
  122. // line 78
  123. yield "
  124. ";
  125. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  127. yield from [];
  128. }
  129. // line 81
  130. /**
  131. * @return iterable<null|scalar|\Stringable>
  132. */
  133. public function block_scripts(array $context, array $blocks = []): iterable
  134. {
  135. $macros = $this->macros;
  136. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  138. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  140. // line 82
  141. yield " ";
  142. yield from $this->yieldParentBlock("scripts", $context, $blocks);
  143. yield "
  144. ";
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147. yield from [];
  148. }
  149. /**
  150. * @codeCoverageIgnore
  151. */
  152. public function getTemplateName(): string
  153. {
  154. return "registration/register.html.twig";
  155. }
  156. /**
  157. * @codeCoverageIgnore
  158. */
  159. public function isTraitable(): bool
  160. {
  161. return false;
  162. }
  163. /**
  164. * @codeCoverageIgnore
  165. */
  166. public function getDebugInfo(): array
  167. {
  168. return array ( 178 => 82, 165 => 81, 153 => 78, 151 => 18, 148 => 17, 145 => 16, 142 => 14, 139 => 13, 136 => 12, 123 => 11, 111 => 8, 105 => 7, 102 => 6, 89 => 5, 66 => 4, 43 => 1,);
  169. }
  170. public function getSourceContext(): Source
  171. {
  172. return new Source("{% extends 'security/layout.html.twig' %}
  173. {% block bodyclass %}register{% endblock %}
  174. {% block content_container %}
  175. {% if platform_front('security.login.content_container') %}
  176. {{ platform_front('security.login.content_container') }}
  177. {% else %}container{% endif %}
  178. {% endblock %}
  179. {% block content %}
  180. {% set pageData = platform_front('security.register') %}
  181. {% set pageConfig = generateComponentOptions(pageData)%}
  182. {# For convenience sake of this snippet, store the errors in a variable #}
  183. {% set formErrors = registrationForm.vars.errors.form.getErrors(true) %}
  184. {% embed '@component/_template/_block.html.twig' with {'value' : pageData} %}
  185. {% import \"@component/_template/_html_macro.html.twig\" as macros %}
  186. {% block component %}
  187. {#Contenu hors formulaire#}
  188. {% if pageData.sections is defined %}
  189. {% for k, section in pageData.sections %}
  190. {{ component(section,'security.register.sections.' ~ k ) }}
  191. {% endfor %}
  192. {%endif%}
  193. {#Formulaire#}
  194. {% set formConfig = generateComponentOptions(pageData.form) %}
  195. {% set formData = pageData.form %}
  196. <div class=\"row justify-content-center flex-row-reverse\">
  197. <div class=\"{% if pageData.col %}{{ pageData.col }}{% else %}col-md-6 col-lg-4{% endif %}\">
  198. {# If there are errors in the form, display them in this unorganized list #}
  199. {% if formErrors|length %}
  200. <div class=\"d-flex no-gutters\">
  201. <ul>
  202. {% for error in formErrors %}
  203. <li class=\"text-danger\">{{ error.message }}</li>
  204. {% endfor %}
  205. </ul>
  206. </div>
  207. {% endif %}
  208. {#WRAPPER#}
  209. {{ macros.generateHtmlComponentStart(formConfig.wrapper) }}
  210. {#FORM#}
  211. {% set formAttr = {'class': formConfig.item.class ~ ' data-validation'}|merge(getItemData(formConfig.item)) %}
  212. {{ form_start(registrationForm, {'attr': formAttr}) }}
  213. {#CONTAINER#}
  214. {{ macros.generateHtmlComponentStart(formConfig.container) }}
  215. {# Génération des fields + form_rest#}
  216. {% include \"@component/molecule/form_with_group.html.twig\" with {'form': registrationForm, 'formConfig': formData, componentKey: 'security.register.form'} %}
  217. {# Bouton Back #}
  218. <div class=\"mb-3 {% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper}}{%else%}col-12{% endif %}\">
  219. <a href=\"{{ path('app_login') }}\"
  220. class=\"{% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
  221. <i class=\"fa fa-arrow-left\"></i>
  222. {% if pageData.back.content is defined %}{{ pageData.back.content }}{% else %}Retour{% endif %}
  223. </a>
  224. </div>
  225. {{ macros.generateHtmlComponentEnd(formConfig.container) }}{#/CONTAINER#}
  226. {{ form_end(registrationForm) }}{#/FORM#}
  227. {{ macros.generateHtmlComponentEnd(formConfig.wrapper) }}{#/WRAPPER#}
  228. </div>
  229. </div>
  230. {% endblock component %}
  231. {% endembed %}
  232. {% endblock %}
  233. {% block scripts %}
  234. {{ parent() }}
  235. {% endblock %}
  236. ", "registration/register.html.twig", "/var/www/dtv-preprod/current/templates/registration/register.html.twig");
  237. }
  238. }
  239. /* registration/register.html.twig */
  240. class __TwigTemplate_79b6a1ac624b0767dbcc2cbb0b497154___733844994 extends Template
  241. {
  242. private Source $source;
  243. /**
  244. * @var array<string, Template>
  245. */
  246. private array $macros = [];
  247. public function __construct(Environment $env)
  248. {
  249. parent::__construct($env);
  250. $this->source = $this->getSourceContext();
  251. $this->blocks = [
  252. 'component' => [$this, 'block_component'],
  253. ];
  254. }
  255. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  256. {
  257. // line 18
  258. return "@component/_template/_block.html.twig";
  259. }
  260. protected function doDisplay(array $context, array $blocks = []): iterable
  261. {
  262. $macros = $this->macros;
  263. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  264. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  265. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  266. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  267. // line 19
  268. $macros["͜macros"] = $this->macros["͜macros"] = $this->load("@component/_template/_html_macro.html.twig", 19)->unwrap();
  269. // line 18
  270. $this->parent = $this->load("@component/_template/_block.html.twig", 18);
  271. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  272. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  273. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  274. }
  275. // line 20
  276. /**
  277. * @return iterable<null|scalar|\Stringable>
  278. */
  279. public function block_component(array $context, array $blocks = []): iterable
  280. {
  281. $macros = $this->macros;
  282. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  283. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component"));
  284. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  285. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component"));
  286. // line 21
  287. yield " ";
  288. // line 22
  289. yield " ";
  290. if (CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "sections", [], "any", true, true, false, 22)) {
  291. // line 23
  292. yield " ";
  293. $context['_parent'] = $context;
  294. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 23, $this->source); })()), "sections", [], "any", false, false, false, 23));
  295. foreach ($context['_seq'] as $context["k"] => $context["section"]) {
  296. // line 24
  297. yield " ";
  298. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["section"], ("security.register.sections." . $context["k"]));
  299. yield "
  300. ";
  301. }
  302. $_parent = $context['_parent'];
  303. unset($context['_seq'], $context['k'], $context['section'], $context['_parent']);
  304. $context = array_intersect_key($context, $_parent) + $_parent;
  305. // line 26
  306. yield " ";
  307. }
  308. // line 27
  309. yield "
  310. ";
  311. // line 29
  312. yield " ";
  313. $context["formConfig"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 29, $this->source); })()), "form", [], "any", false, false, false, 29));
  314. // line 30
  315. yield " ";
  316. $context["formData"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 30, $this->source); })()), "form", [], "any", false, false, false, 30);
  317. // line 31
  318. yield "
  319. <div class=\"row justify-content-center flex-row-reverse\">
  320. <div class=\"";
  321. // line 33
  322. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 33, $this->source); })()), "col", [], "any", false, false, false, 33)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  323. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 33, $this->source); })()), "col", [], "any", false, false, false, 33), "html", null, true);
  324. } else {
  325. yield "col-md-6 col-lg-4";
  326. }
  327. yield "\">
  328. ";
  329. // line 36
  330. yield " ";
  331. if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["formErrors"]) || array_key_exists("formErrors", $context) ? $context["formErrors"] : (function () { throw new RuntimeError('Variable "formErrors" does not exist.', 36, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  332. // line 37
  333. yield " <div class=\"d-flex no-gutters\">
  334. <ul>
  335. ";
  336. // line 39
  337. $context['_parent'] = $context;
  338. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["formErrors"]) || array_key_exists("formErrors", $context) ? $context["formErrors"] : (function () { throw new RuntimeError('Variable "formErrors" does not exist.', 39, $this->source); })()));
  339. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  340. // line 40
  341. yield " <li class=\"text-danger\">";
  342. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 40), "html", null, true);
  343. yield "</li>
  344. ";
  345. }
  346. $_parent = $context['_parent'];
  347. unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
  348. $context = array_intersect_key($context, $_parent) + $_parent;
  349. // line 42
  350. yield " </ul>
  351. </div>
  352. ";
  353. }
  354. // line 45
  355. yield "
  356. ";
  357. // line 47
  358. yield " ";
  359. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentStart", $context, 47, $this->getSourceContext())->macro_generateHtmlComponentStart(...[CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 47, $this->source); })()), "wrapper", [], "any", false, false, false, 47)]);
  360. yield "
  361. ";
  362. // line 49
  363. yield " ";
  364. $context["formAttr"] = Twig\Extension\CoreExtension::merge(["class" => (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 49, $this->source); })()), "item", [], "any", false, false, false, 49), "class", [], "any", false, false, false, 49) . " data-validation")], $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getItemData(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 49, $this->source); })()), "item", [], "any", false, false, false, 49)));
  365. // line 50
  366. yield "
  367. ";
  368. // line 51
  369. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 51, $this->source); })()), 'form_start', ["attr" => (isset($context["formAttr"]) || array_key_exists("formAttr", $context) ? $context["formAttr"] : (function () { throw new RuntimeError('Variable "formAttr" does not exist.', 51, $this->source); })())]);
  370. yield "
  371. ";
  372. // line 54
  373. yield " ";
  374. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentStart", $context, 54, $this->getSourceContext())->macro_generateHtmlComponentStart(...[CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 54, $this->source); })()), "container", [], "any", false, false, false, 54)]);
  375. yield "
  376. ";
  377. // line 56
  378. yield "
  379. ";
  380. // line 57
  381. yield from $this->load("@component/molecule/form_with_group.html.twig", 57)->unwrap()->yield(CoreExtension::merge($context, ["form" => (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 57, $this->source); })()), "formConfig" => (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 57, $this->source); })()), "componentKey" => "security.register.form"]));
  382. // line 58
  383. yield "
  384. ";
  385. // line 60
  386. yield " <div class=\"mb-3 ";
  387. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 60, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", true, true, false, 60)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 60), "wrapper", [], "any", true, true, false, 60))) {
  388. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 60, $this->source); })()), "back", [], "any", false, false, false, 60), "wrapper", [], "any", false, false, false, 60), "html", null, true);
  389. } else {
  390. yield "col-12";
  391. }
  392. yield "\">
  393. <a href=\"";
  394. // line 61
  395. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  396. yield "\"
  397. class=\"";
  398. // line 62
  399. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 62), "class", [], "any", true, true, false, 62)) {
  400. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 62, $this->source); })()), "back", [], "any", false, false, false, 62), "class", [], "any", false, false, false, 62), "html", null, true);
  401. } else {
  402. yield "btn btn-default";
  403. }
  404. yield "\">
  405. <i class=\"fa fa-arrow-left\"></i>
  406. ";
  407. // line 64
  408. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 64), "content", [], "any", true, true, false, 64)) {
  409. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 64, $this->source); })()), "back", [], "any", false, false, false, 64), "content", [], "any", false, false, false, 64), "html", null, true);
  410. } else {
  411. yield "Retour";
  412. }
  413. // line 65
  414. yield " </a>
  415. </div>
  416. ";
  417. // line 68
  418. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentEnd", $context, 68, $this->getSourceContext())->macro_generateHtmlComponentEnd(...[CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 68, $this->source); })()), "container", [], "any", false, false, false, 68)]);
  419. // line 69
  420. yield "
  421. ";
  422. // line 70
  423. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 70, $this->source); })()), 'form_end');
  424. // line 71
  425. yield "
  426. ";
  427. // line 72
  428. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentEnd", $context, 72, $this->getSourceContext())->macro_generateHtmlComponentEnd(...[CoreExtension::getAttribute($this->env, $this->source, (isset($context["formConfig"]) || array_key_exists("formConfig", $context) ? $context["formConfig"] : (function () { throw new RuntimeError('Variable "formConfig" does not exist.', 72, $this->source); })()), "wrapper", [], "any", false, false, false, 72)]);
  429. // line 73
  430. yield " </div>
  431. </div>
  432. ";
  433. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  434. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  435. yield from [];
  436. }
  437. /**
  438. * @codeCoverageIgnore
  439. */
  440. public function getTemplateName(): string
  441. {
  442. return "registration/register.html.twig";
  443. }
  444. /**
  445. * @codeCoverageIgnore
  446. */
  447. public function isTraitable(): bool
  448. {
  449. return false;
  450. }
  451. /**
  452. * @codeCoverageIgnore
  453. */
  454. public function getDebugInfo(): array
  455. {
  456. return array ( 514 => 73, 512 => 72, 509 => 71, 507 => 70, 504 => 69, 502 => 68, 497 => 65, 491 => 64, 482 => 62, 478 => 61, 469 => 60, 466 => 58, 464 => 57, 461 => 56, 456 => 54, 451 => 51, 448 => 50, 445 => 49, 440 => 47, 437 => 45, 432 => 42, 423 => 40, 419 => 39, 415 => 37, 412 => 36, 403 => 33, 399 => 31, 396 => 30, 393 => 29, 390 => 27, 387 => 26, 378 => 24, 373 => 23, 370 => 22, 368 => 21, 355 => 20, 344 => 18, 342 => 19, 329 => 18, 178 => 82, 165 => 81, 153 => 78, 151 => 18, 148 => 17, 145 => 16, 142 => 14, 139 => 13, 136 => 12, 123 => 11, 111 => 8, 105 => 7, 102 => 6, 89 => 5, 66 => 4, 43 => 1,);
  457. }
  458. public function getSourceContext(): Source
  459. {
  460. return new Source("{% extends 'security/layout.html.twig' %}
  461. {% block bodyclass %}register{% endblock %}
  462. {% block content_container %}
  463. {% if platform_front('security.login.content_container') %}
  464. {{ platform_front('security.login.content_container') }}
  465. {% else %}container{% endif %}
  466. {% endblock %}
  467. {% block content %}
  468. {% set pageData = platform_front('security.register') %}
  469. {% set pageConfig = generateComponentOptions(pageData)%}
  470. {# For convenience sake of this snippet, store the errors in a variable #}
  471. {% set formErrors = registrationForm.vars.errors.form.getErrors(true) %}
  472. {% embed '@component/_template/_block.html.twig' with {'value' : pageData} %}
  473. {% import \"@component/_template/_html_macro.html.twig\" as macros %}
  474. {% block component %}
  475. {#Contenu hors formulaire#}
  476. {% if pageData.sections is defined %}
  477. {% for k, section in pageData.sections %}
  478. {{ component(section,'security.register.sections.' ~ k ) }}
  479. {% endfor %}
  480. {%endif%}
  481. {#Formulaire#}
  482. {% set formConfig = generateComponentOptions(pageData.form) %}
  483. {% set formData = pageData.form %}
  484. <div class=\"row justify-content-center flex-row-reverse\">
  485. <div class=\"{% if pageData.col %}{{ pageData.col }}{% else %}col-md-6 col-lg-4{% endif %}\">
  486. {# If there are errors in the form, display them in this unorganized list #}
  487. {% if formErrors|length %}
  488. <div class=\"d-flex no-gutters\">
  489. <ul>
  490. {% for error in formErrors %}
  491. <li class=\"text-danger\">{{ error.message }}</li>
  492. {% endfor %}
  493. </ul>
  494. </div>
  495. {% endif %}
  496. {#WRAPPER#}
  497. {{ macros.generateHtmlComponentStart(formConfig.wrapper) }}
  498. {#FORM#}
  499. {% set formAttr = {'class': formConfig.item.class ~ ' data-validation'}|merge(getItemData(formConfig.item)) %}
  500. {{ form_start(registrationForm, {'attr': formAttr}) }}
  501. {#CONTAINER#}
  502. {{ macros.generateHtmlComponentStart(formConfig.container) }}
  503. {# Génération des fields + form_rest#}
  504. {% include \"@component/molecule/form_with_group.html.twig\" with {'form': registrationForm, 'formConfig': formData, componentKey: 'security.register.form'} %}
  505. {# Bouton Back #}
  506. <div class=\"mb-3 {% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper}}{%else%}col-12{% endif %}\">
  507. <a href=\"{{ path('app_login') }}\"
  508. class=\"{% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
  509. <i class=\"fa fa-arrow-left\"></i>
  510. {% if pageData.back.content is defined %}{{ pageData.back.content }}{% else %}Retour{% endif %}
  511. </a>
  512. </div>
  513. {{ macros.generateHtmlComponentEnd(formConfig.container) }}{#/CONTAINER#}
  514. {{ form_end(registrationForm) }}{#/FORM#}
  515. {{ macros.generateHtmlComponentEnd(formConfig.wrapper) }}{#/WRAPPER#}
  516. </div>
  517. </div>
  518. {% endblock component %}
  519. {% endembed %}
  520. {% endblock %}
  521. {% block scripts %}
  522. {{ parent() }}
  523. {% endblock %}
  524. ", "registration/register.html.twig", "/var/www/dtv-preprod/current/templates/registration/register.html.twig");
  525. }
  526. }