<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* registration/register.html.twig */
class __TwigTemplate_79b6a1ac624b0767dbcc2cbb0b497154 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'bodyclass' => [$this, 'block_bodyclass'],
'content_container' => [$this, 'block_content_container'],
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "security/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
$this->parent = $this->load("security/layout.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_bodyclass(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
yield "register";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content_container(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
// line 6
yield " ";
if ((($tmp = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login.content_container")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 7
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login.content_container"), "html", null, true);
yield "
";
} else {
// line 8
yield "container";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
yield " ";
$context["pageData"] = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.register");
// line 13
yield " ";
$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); })()));
// line 14
yield "
";
// line 16
yield " ";
$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);
// line 17
yield "
";
// line 18
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); })())]));
// line 78
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 81
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_scripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 82
yield " ";
yield from $this->yieldParentBlock("scripts", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "registration/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'security/layout.html.twig' %}
{% block bodyclass %}register{% endblock %}
{% block content_container %}
{% if platform_front('security.login.content_container') %}
{{ platform_front('security.login.content_container') }}
{% else %}container{% endif %}
{% endblock %}
{% block content %}
{% set pageData = platform_front('security.register') %}
{% set pageConfig = generateComponentOptions(pageData)%}
{# For convenience sake of this snippet, store the errors in a variable #}
{% set formErrors = registrationForm.vars.errors.form.getErrors(true) %}
{% embed '@component/_template/_block.html.twig' with {'value' : pageData} %}
{% import \"@component/_template/_html_macro.html.twig\" as macros %}
{% block component %}
{#Contenu hors formulaire#}
{% if pageData.sections is defined %}
{% for k, section in pageData.sections %}
{{ component(section,'security.register.sections.' ~ k ) }}
{% endfor %}
{%endif%}
{#Formulaire#}
{% set formConfig = generateComponentOptions(pageData.form) %}
{% set formData = pageData.form %}
<div class=\"row justify-content-center flex-row-reverse\">
<div class=\"{% if pageData.col %}{{ pageData.col }}{% else %}col-md-6 col-lg-4{% endif %}\">
{# If there are errors in the form, display them in this unorganized list #}
{% if formErrors|length %}
<div class=\"d-flex no-gutters\">
<ul>
{% for error in formErrors %}
<li class=\"text-danger\">{{ error.message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{#WRAPPER#}
{{ macros.generateHtmlComponentStart(formConfig.wrapper) }}
{#FORM#}
{% set formAttr = {'class': formConfig.item.class ~ ' data-validation'}|merge(getItemData(formConfig.item)) %}
{{ form_start(registrationForm, {'attr': formAttr}) }}
{#CONTAINER#}
{{ macros.generateHtmlComponentStart(formConfig.container) }}
{# Génération des fields + form_rest#}
{% include \"@component/molecule/form_with_group.html.twig\" with {'form': registrationForm, 'formConfig': formData, componentKey: 'security.register.form'} %}
{# Bouton Back #}
<div class=\"mb-3 {% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper}}{%else%}col-12{% endif %}\">
<a href=\"{{ path('app_login') }}\"
class=\"{% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
<i class=\"fa fa-arrow-left\"></i>
{% if pageData.back.content is defined %}{{ pageData.back.content }}{% else %}Retour{% endif %}
</a>
</div>
{{ macros.generateHtmlComponentEnd(formConfig.container) }}{#/CONTAINER#}
{{ form_end(registrationForm) }}{#/FORM#}
{{ macros.generateHtmlComponentEnd(formConfig.wrapper) }}{#/WRAPPER#}
</div>
</div>
{% endblock component %}
{% endembed %}
{% endblock %}
{% block scripts %}
{{ parent() }}
{% endblock %}
", "registration/register.html.twig", "/var/www/dtv-preprod/current/templates/registration/register.html.twig");
}
}
/* registration/register.html.twig */
class __TwigTemplate_79b6a1ac624b0767dbcc2cbb0b497154___733844994 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component' => [$this, 'block_component'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 18
return "@component/_template/_block.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
// line 19
$macros["͜macros"] = $this->macros["͜macros"] = $this->load("@component/_template/_html_macro.html.twig", 19)->unwrap();
// line 18
$this->parent = $this->load("@component/_template/_block.html.twig", 18);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 20
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_component(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component"));
// line 21
yield " ";
// line 22
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "sections", [], "any", true, true, false, 22)) {
// line 23
yield " ";
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["k"] => $context["section"]) {
// line 24
yield " ";
yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["section"], ("security.register.sections." . $context["k"]));
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['k'], $context['section'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
yield " ";
}
// line 27
yield "
";
// line 29
yield " ";
$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));
// line 30
yield " ";
$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);
// line 31
yield "
<div class=\"row justify-content-center flex-row-reverse\">
<div class=\"";
// line 33
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)) {
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);
} else {
yield "col-md-6 col-lg-4";
}
yield "\">
";
// line 36
yield " ";
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)) {
// line 37
yield " <div class=\"d-flex no-gutters\">
<ul>
";
// line 39
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 40
yield " <li class=\"text-danger\">";
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);
yield "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
yield " </ul>
</div>
";
}
// line 45
yield "
";
// line 47
yield " ";
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)]);
yield "
";
// line 49
yield " ";
$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)));
// line 50
yield "
";
// line 51
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); })())]);
yield "
";
// line 54
yield " ";
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)]);
yield "
";
// line 56
yield "
";
// line 57
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"]));
// line 58
yield "
";
// line 60
yield " <div class=\"mb-3 ";
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))) {
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);
} else {
yield "col-12";
}
yield "\">
<a href=\"";
// line 61
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\"
class=\"";
// line 62
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)) {
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);
} else {
yield "btn btn-default";
}
yield "\">
<i class=\"fa fa-arrow-left\"></i>
";
// line 64
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)) {
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);
} else {
yield "Retour";
}
// line 65
yield " </a>
</div>
";
// line 68
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)]);
// line 69
yield "
";
// line 70
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');
// line 71
yield "
";
// line 72
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)]);
// line 73
yield " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "registration/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'security/layout.html.twig' %}
{% block bodyclass %}register{% endblock %}
{% block content_container %}
{% if platform_front('security.login.content_container') %}
{{ platform_front('security.login.content_container') }}
{% else %}container{% endif %}
{% endblock %}
{% block content %}
{% set pageData = platform_front('security.register') %}
{% set pageConfig = generateComponentOptions(pageData)%}
{# For convenience sake of this snippet, store the errors in a variable #}
{% set formErrors = registrationForm.vars.errors.form.getErrors(true) %}
{% embed '@component/_template/_block.html.twig' with {'value' : pageData} %}
{% import \"@component/_template/_html_macro.html.twig\" as macros %}
{% block component %}
{#Contenu hors formulaire#}
{% if pageData.sections is defined %}
{% for k, section in pageData.sections %}
{{ component(section,'security.register.sections.' ~ k ) }}
{% endfor %}
{%endif%}
{#Formulaire#}
{% set formConfig = generateComponentOptions(pageData.form) %}
{% set formData = pageData.form %}
<div class=\"row justify-content-center flex-row-reverse\">
<div class=\"{% if pageData.col %}{{ pageData.col }}{% else %}col-md-6 col-lg-4{% endif %}\">
{# If there are errors in the form, display them in this unorganized list #}
{% if formErrors|length %}
<div class=\"d-flex no-gutters\">
<ul>
{% for error in formErrors %}
<li class=\"text-danger\">{{ error.message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{#WRAPPER#}
{{ macros.generateHtmlComponentStart(formConfig.wrapper) }}
{#FORM#}
{% set formAttr = {'class': formConfig.item.class ~ ' data-validation'}|merge(getItemData(formConfig.item)) %}
{{ form_start(registrationForm, {'attr': formAttr}) }}
{#CONTAINER#}
{{ macros.generateHtmlComponentStart(formConfig.container) }}
{# Génération des fields + form_rest#}
{% include \"@component/molecule/form_with_group.html.twig\" with {'form': registrationForm, 'formConfig': formData, componentKey: 'security.register.form'} %}
{# Bouton Back #}
<div class=\"mb-3 {% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper}}{%else%}col-12{% endif %}\">
<a href=\"{{ path('app_login') }}\"
class=\"{% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
<i class=\"fa fa-arrow-left\"></i>
{% if pageData.back.content is defined %}{{ pageData.back.content }}{% else %}Retour{% endif %}
</a>
</div>
{{ macros.generateHtmlComponentEnd(formConfig.container) }}{#/CONTAINER#}
{{ form_end(registrationForm) }}{#/FORM#}
{{ macros.generateHtmlComponentEnd(formConfig.wrapper) }}{#/WRAPPER#}
</div>
</div>
{% endblock component %}
{% endembed %}
{% endblock %}
{% block scripts %}
{{ parent() }}
{% endblock %}
", "registration/register.html.twig", "/var/www/dtv-preprod/current/templates/registration/register.html.twig");
}
}