<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* front/tunnel/step2a.html.twig */
class __TwigTemplate_62dd24f11bdf55dea170ca4cb2e22503 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'head' => [$this, 'block_head'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("front/tunnel/layout.html.twig", 1);
}
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", "front/tunnel/step2a.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/tunnel/step2a.html.twig"));
$this->parent = $this->load("front/tunnel/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 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(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", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 3
yield "\t<title>Étape 2</title>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "<section class=\"w-full py-10 sm:py-20\">
\t<ol class=\"flex flex-row w-full\">
\t\t<!--first item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-bleuindigo\"></div>
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo\"></div>
\t\t\t\t<p class=\"mt-4 text-sm font-bold text-bleuindigo text-center px-2\">
\t\t\t\t\t1. Je sélectionne la durée
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t\t<!--Second item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-lavande\"></div>
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo border-4 border-bleuindigo\"></div>
\t\t\t\t<p class=\"mt-4 sm:mt-2 text-sm sm:text-lg font-bold text-bleuindigo text-center px-2\">
\t\t\t\t\t2. J\x27accède à mon compte
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t\t<!--Third item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-lavande\"></div>
\t\t\t\t<p class=\"mt-4 text-sm font-bold text-lavande text-center px-2\">
\t\t\t\t\t3. Je procède au paiement
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t</ol>
</section>
<section class=\"flex justify-center mb-8 sm:mb-16\">
\t<div class=\"text-center bg-jaune text-bleuindigo font-bold py-2 px-4 rounded-full text-sm sm:text-lg\">
\t\tVous ne serez pas débité avant la fin de votre essai de 7 jours, résiliable à tout moment.
\t</div>
</section>
";
// line 80
yield "
<!--Informations-->
<section class=\"flex justify-center\">
\t<div class=\"flex flex-col lg:flex-row justify-between\">
\t\t<div class=\"\">
\t\t</div>
\t\t<div class=\"lg:w-6/12 xl:w-7/12\">
\t\t\t";
// line 90
if ( !(($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 91
yield "\t\t\t\t<!--Connexion-->
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap relative items-center border-lavande border rounded-3xl gap-3 font-bold w-full sm:w-fit py-2 px-4 mt-6 sm:mt-0 mb-4\">
\t\t\t\t\t<div class=\"flex items-center gap-2 absolute sm:relative -top-8 sm:top-0 left-0\">
\t\t\t\t\t\t<img src=\"/static/img/tunnel/avatar.webp\" alt=\"Se connecter\" class=\"size-5\">
\t\t\t\t\t\t<span class=\"text-bleuindigo\">Vous avez déjà un compte ?</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div id=\"btn-form-login\" class=\"text-franboise cursor-pointer\">Connectez-vous</div>
\t\t\t\t</div>
\t\t\t\t<form class=\"form-login\" method=\"post\" style=\"display: none\" id=\"form-login\">
\t\t\t\t\t<div class=\"mb-4\">
\t\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Se connecter</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"alert alert-danger mb-4\" style=\"max-width:450px;display: none\">Mince... Ce n\x27est pas le bon mot de passe. Ou alors, ce n\x27est pas le bon email.<br/> Si besoin, vous pouvez créer un nouveau mot de passe. Avec lien vers Mot de passe oublié ?</div>
\t\t\t\t\t<div class=\"flex justify-between mb-4\">
\t\t\t\t\t\t<label for=\"login\">
\t\t\t\t\t\t\tEmail <span>*</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<input type=\"email\" value=\"\" class=\"border-lavande border rounded-3xl py-2 px-4 w-8/12\" name=\"email\" id=\"login\" placeholder=\"[email protected]\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex justify-between mb-4\">
\t\t\t\t\t\t<label for=\"password\">
\t\t\t\t\t\t\tMot de passe <span>*</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<input type=\"password\" class=\"border-lavande border rounded-3xl py-2 px-4 w-8/12\" id=\"password\" name=\"password\" placeholder=\"\">
\t\t\t\t\t</div>
\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 119
yield (string) $this->escaper->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
\t\t\t\t\t<div class=\"flex justify-center mt-3 mb-5\">
\t\t\t\t\t\t<button type=\"submit\" id=\"btn-connexion\" class=\"w-6/12 bg-framboise hover:bg-bleuindigo hover:cursor-pointer text-white rounded-3xl font-bold py-3 mt-4\">Se connecter</button>
\t\t\t\t\t</div>
\t\t\t\t\t<a class=\"text-center d-block block\" href=\"";
// line 125
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\" title=\"Mot de passe oublié\">
\t\t\t\t\t\tMot de passe oublié ?
\t\t\t\t\t</a>
\t\t\t\t</form>
\t\t\t";
}
// line 131
yield "
\t\t\t";
// line 132
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.', 132, $this->source); })()), 'form_start', ["attr" => ["class" => "form-registration flex flex-col gap-5 sm:gap-10"]]);
yield "
\t\t\t<!--Informations élève-->
\t\t\t<div class=\"mb-10\">
\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations élève</span>
\t\t\t</div>
\t\t\t<div class=\"mb-4\" id=\"list-child\">
\t\t\t\t";
// line 138
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 138, $this->source); })()), "children", [], "any", false, false, false, 138), "childrenForm", [], "any", false, false, false, 138), "children", [], "any", false, false, false, 138));
foreach ($context['_seq'] as $context["_key"] => $context["formChild"]) {
// line 139
yield "\t\t\t\t\t";
yield (string) $this->getMacroNamespace()->call("addChild", [$context["formChild"]], $context, 139, $this->source);
yield "
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['formChild'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 141
yield "\t\t\t</div>
\t\t\t<!--Rajout élève-->
\t\t\t<div class=\"flex flex-col gap-2 mb-10\">
\t\t\t\t<div class=\"flex items-center cursor-pointer\" id=\"addChildButton\">
\t\t\t\t\t<img src=\"/static/img/tunnel/icone-plus.webp\" alt=\"Ajouter un autre élève\" class=\"size-5 mr-2\">
\t\t\t\t\t<span class=\"text-pervenche\">Ajouter un élève</span>
\t\t\t\t</div>
\t\t\t\t<span class=\"text-lavande text-sm sm:text-base ml-6\">-50% pour chaque enfant supplémentaire</span>
\t\t\t</div>
\t\t\t<!--Informations parent-->
\t\t\t";
// line 153
if ( !(($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 154
yield "\t\t\t\t<div class=\"mb-10\">
\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations parent</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"prenom\" class=\"font-bold\">Votre prénom</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 161
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 161, $this->source); })()), "firstname", [], "any", false, false, false, 161), "vars", [], "any", false, false, false, 161), "full_name", [], "any", false, false, false, 161), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 161, $this->source); })()), "firstname", [], "any", false, false, false, 161), "vars", [], "any", false, false, false, 161), "value", [], "any", false, false, false, 161), "html", null, true);
yield "\" id=\"prenom\" class=\"border";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 161, $this->source); })()), "firstname", [], "any", false, false, false, 161), "vars", [], "any", false, false, false, 161), "valid", [], "any", false, false, false, 161)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "-lavande";
} else {
}
yield " border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre prénom\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 163
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.', 163, $this->source); })()), "firstname", [], "any", false, false, false, 163), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"nom\" class=\"font-bold\">Votre nom</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 168
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 168, $this->source); })()), "lastname", [], "any", false, false, false, 168), "vars", [], "any", false, false, false, 168), "full_name", [], "any", false, false, false, 168), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 168, $this->source); })()), "lastname", [], "any", false, false, false, 168), "vars", [], "any", false, false, false, 168), "value", [], "any", false, false, false, 168), "html", null, true);
yield "\" id=\"nom\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre nom\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 170
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.', 170, $this->source); })()), "lastname", [], "any", false, false, false, 170), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mail\" class=\"font-bold\">Votre email</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 177
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 177, $this->source); })()), "email", [], "any", false, false, false, 177), "vars", [], "any", false, false, false, 177), "full_name", [], "any", false, false, false, 177), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 177, $this->source); })()), "email", [], "any", false, false, false, 177), "vars", [], "any", false, false, false, 177), "value", [], "any", false, false, false, 177), "html", null, true);
yield "\" id=\"mail\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre email\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 179
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.', 179, $this->source); })()), "email", [], "any", false, false, false, 179), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"tel\" class=\"font-bold\">Votre numéro de téléphone</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 184
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 184, $this->source); })()), "phone", [], "any", false, false, false, 184), "vars", [], "any", false, false, false, 184), "full_name", [], "any", false, false, false, 184), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 184, $this->source); })()), "phone", [], "any", false, false, false, 184), "vars", [], "any", false, false, false, 184), "value", [], "any", false, false, false, 184), "html", null, true);
yield "\" id=\"tel\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre numéro de téléphone\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 186
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.', 186, $this->source); })()), "phone", [], "any", false, false, false, 186), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mdp\" class=\"font-bold\">Définissez votre mot de passe</label>
\t\t\t\t\t\t<input type=\"password\" name=\"";
// line 193
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, 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["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 193, $this->source); })()), "plainPassword", [], "any", false, false, false, 193), "children", [], "any", false, false, false, 193), "first", [], "any", false, false, false, 193), "vars", [], "any", false, false, false, 193), "full_name", [], "any", false, false, false, 193), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, 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["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 193, $this->source); })()), "plainPassword", [], "any", false, false, false, 193), "children", [], "any", false, false, false, 193), "first", [], "any", false, false, false, 193), "vars", [], "any", false, false, false, 193), "value", [], "any", false, false, false, 193), "html", null, true);
yield "\" id=\"mdp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Choisissez votre mot de passe\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 195
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 195, $this->source); })()), "plainPassword", [], "any", false, false, false, 195), "children", [], "any", false, false, false, 195), "first", [], "any", false, false, false, 195), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mdpbis\" class=\"font-bold\">Répétez votre mot de passe</label>
\t\t\t\t\t\t<input type=\"password\" name=\"";
// line 200
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, 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["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 200, $this->source); })()), "plainPassword", [], "any", false, false, false, 200), "children", [], "any", false, false, false, 200), "second", [], "any", false, false, false, 200), "vars", [], "any", false, false, false, 200), "full_name", [], "any", false, false, false, 200), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, 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["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 200, $this->source); })()), "plainPassword", [], "any", false, false, false, 200), "children", [], "any", false, false, false, 200), "second", [], "any", false, false, false, 200), "vars", [], "any", false, false, false, 200), "value", [], "any", false, false, false, 200), "html", null, true);
yield "\" id=\"mdpbis\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Répétez votre mot de passe\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 202
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 202, $this->source); })()), "plainPassword", [], "any", false, false, false, 202), "children", [], "any", false, false, false, 202), "second", [], "any", false, false, false, 202), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"cp\" class=\"font-bold\">Votre code postal</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 209
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 209, $this->source); })()), "postalCode", [], "any", false, false, false, 209), "vars", [], "any", false, false, false, 209), "full_name", [], "any", false, false, false, 209), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 209, $this->source); })()), "postalCode", [], "any", false, false, false, 209), "vars", [], "any", false, false, false, 209), "value", [], "any", false, false, false, 209), "html", null, true);
yield "\" id=\"cp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre code postal\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 211
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.', 211, $this->source); })()), "postalCode", [], "any", false, false, false, 211), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"ville\" class=\"font-bold\">Votre ville</label>
\t\t\t\t\t\t<input type=\"text\" name=\"";
// line 216
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 216, $this->source); })()), "city", [], "any", false, false, false, 216), "vars", [], "any", false, false, false, 216), "full_name", [], "any", false, false, false, 216), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 216, $this->source); })()), "city", [], "any", false, false, false, 216), "vars", [], "any", false, false, false, 216), "value", [], "any", false, false, false, 216), "html", null, true);
yield "\" id=\"ville\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre ville\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t";
// line 218
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.', 218, $this->source); })()), "city", [], "any", false, false, false, 218), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 223
yield "\t\t\t<div class=\"mt-10\">
\t\t\t\t<div class=\"flex items-start gap-2\">
\t\t\t\t\t<input id=\"rgpd\" name=\"";
// line 225
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 225, $this->source); })()), "isRegisterInfos", [], "any", false, false, false, 225), "vars", [], "any", false, false, false, 225), "full_name", [], "any", false, false, false, 225), "html", null, true);
yield "\" type=\"checkbox\"
\t\t\t\t\t\t class=\"size-5 border-lavande rounded-xl\" />
\t\t\t\t\t<label for=\"rgpd\" class=\"text-sm sm:text-base\">J’autorise Les Bons Profs à conserver mes données ci-dessus à des fins de suivi commercial. Aucune donnée ne sera transmise à un partenaire.</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t";
// line 230
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.', 230, $this->source); })()), "isRegisterInfos", [], "any", false, false, false, 230), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t";
// line 233
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.', 233, $this->source); })()), "_token", [], "any", false, false, false, 233), 'row');
yield "
\t\t\t";
// line 234
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.', 234, $this->source); })()), 'form_end', ["render_rest" => false]);
yield "
\t\t</div>
\t\t<!--Colonne gauche-->
\t\t<div class=\"hidden\" id=\"template-add-child\">
\t\t\t";
// line 240
yield (string) $this->getMacroNamespace()->call("addChild", [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["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 240, $this->source); })()), "childrenForm", [], "any", false, false, false, 240), "vars", [], "any", false, false, false, 240), "prototype", [], "any", false, false, false, 240), "children", [], "any", false, false, false, 240)], $context, 240, $this->source);
yield "
\t\t</div>
\t\t<!--Colonne droite-->
\t\t<div class=\"flex flex-col lg:w-5/12 xl:w-4/12 my-16 lg:mt-0\">
\t\t\t<!--Encadré lavande-->
\t\t\t<div class=\"flex flex-col bg-lavandeclair rounded-2xl text-sm sm:text-base gap-y-2 p-5 sm:p-10\">
\t\t\t\t<div class=\"text-bleuindigo font-bold text-xl\">
\t\t\t\t\tVous avez choisi l’offre
\t\t\t\t</div>
\t\t\t\t<div class=\"text-pervenche font-bold text-2xl sm:text-3xl\">
\t\t\t\t\t";
// line 252
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 252, $this->source); })()), "title", [], "any", false, false, false, 252)), "html", null, true);
yield "
\t\t\t\t</div>
\t\t\t\t<div class=\"font-bold mt-2\">
\t\t\t\t\t";
// line 255
yield (string) CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 255, $this->source); })()), "typeOffer", [], "any", false, false, false, 255), "textPaid", [], "any", false, false, false, 255);
yield "
\t\t\t\t</div>
\t\t\t\t<div class=\"flex justify-between items-center mt-4\">
\t\t\t\t\t<span class=\"flex text-bleuindigo font-bold\">
\t\t\t\t\t <span class=\"flex items-center bg-jaune rounded-xl px-2 mr-1\"><span class=\"text-lg -my-1 pr-1\">★</span> 4,6</span>+ 300 avis Trustpilot
\t\t\t\t\t</span>
\t\t\t\t\t<span class=\"text-pervenche text-xs hover:underline\"><a href=\"https://fr.trustpilot.com/review/lesbonsprofs.com\" target=\"_blank\">Voir les avis</a></span>
\t\t\t\t</div>
\t\t\t\t";
// line 263
if ((($tmp = (isset($context["mode_free"]) || array_key_exists("mode_free", $context) ? $context["mode_free"] : (function () { throw new RuntimeError('Variable "mode_free" does not exist.', 263, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 264
yield "\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
\t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
\t\t\t\t\t\t<span>0€</span>
\t\t\t\t\t</div>
\t\t\t\t\t<hr class=\"border-lavande border my-2\" />
\t\t\t\t\t<div class=\"flex justify-between text-bleuindigo\">
\t\t\t\t\t\t<span>Montant dû au ";
// line 270
yield (string) $this->escaper->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, $this->extensions['Twig\Extension\CoreExtension']->modifyDate((isset($context["dateAchat"]) || array_key_exists("dateAchat", $context) ? $context["dateAchat"] : (function () { throw new RuntimeError('Variable "dateAchat" does not exist.', 270, $this->source); })()), "+8 day"), "medium", "medium", "dd MMMM YYYY", null, "gregorian", "fr"), "html", null, true);
yield "</span>
\t\t\t\t\t\t<span class=\"font-bold\" id=\"som-toto\">";
// line 271
yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 271, $this->source); })()), 2, ",", "."), "html", null, true);
yield " €</span>
\t\t\t\t\t</div>
\t\t\t\t";
} else {
// line 274
yield "\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
\t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
\t\t\t\t\t\t<span id=\"som-toto\">";
// line 276
yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 276, $this->source); })()), 2, ",", "."), "html", null, true);
yield " €</span>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 280
yield "\t\t\t\t";
if ( !(null === (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 280, $this->source); })()))) {
// line 281
yield "\t\t\t\t\t<div class=\"text-bleuindigo mb-2\"><span class=\"font-bold me-1\">Promotion appliquée :</span> ";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 281, $this->source); })()), "title", [], "any", false, false, false, 281), "html", null, true);
yield "</div>
\t\t\t\t";
}
// line 283
yield "\t\t\t\t<button id=\"but-submit\" type=\"submit\" class=\"bg-framboise hover:bg-bleuindigo hover:cursor-pointer text-white rounded-3xl font-bold py-3 mt-4\">Continuer</button>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 290
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 291
yield "\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"
\t\t\tintegrity=\"sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==\"
\t\t\tcrossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
\t<script type=\"text/javascript\">
function addclone(userNbr){
for(var j=0;j<userNbr;j++){
var clone = \$(\x27#template-add-child\x27).clone();
var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
var cpt = nbr + 1;
clone = clone.html().replaceAll(/__name__/g,nbr).replaceAll(/__enfantnumber__/g,cpt);
\$(\x27#list-child\x27).append(clone);
}
}
\$(document).ready(function(){
\t\t\t";
// line 310
if ( !(($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 310, $this->source); })()), "vars", [], "any", false, false, false, 310), "submitted", [], "any", false, false, false, 310)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 311
yield " addclone(";
yield (string) $this->escaper->escape((isset($context["nbr"]) || array_key_exists("nbr", $context) ? $context["nbr"] : (function () { throw new RuntimeError('Variable "nbr" does not exist.', 311, $this->source); })()), "html", null, true);
yield ");
\t\t\t";
} else {
// line 313
yield " var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
var i = 0;
\$(\x27#list-child\x27).find(\x27.block-form\x27).each(function(){
i= i + 1;
\$(this).find(\x27.number-child\x27).text(i);
})
\t\t\t";
}
// line 321
yield " // Au clique du bouton Ajouter un eleve
\$(\x27#addChildButton\x27).click(function(){
addclone(1)
})
})
\$(document).on(\"click\",\".block-form .fa-times\",function(){
\$(this).parents(\x27.block-form\x27).remove();
})
\$(\x27#but-submit\x27).click(function(e){
e.preventDefault();
var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
\$(\x27.form-registration\x27).submit();
})
\t\t\$(\x27#btn-form-login\x27).click(function(e){
e.preventDefault();
\$(\x27.form-login\x27).show();
\$(\x27.form-registration\x27).hide();
\t\t})
\t\t\$(\x27#btn-connexion\x27).click(function(e){
e.preventDefault();
var form = \$(\x27.form-login\x27);
var formData = new FormData(form[0]);
\$(\x27.u-spinner\x27).addClass(\x27open\x27);
\$.ajax({
url: \"";
// line 348
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_login");
yield "\",
type: \x27POST\x27,
data: formData,
processData: false,
contentType: false,
\t\t\t\tdataType: \x27json\x27,
success: function (data) {
window.location.reload();
\t\t\t\t}
})
\t\t})
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
protected function loadDeclaredMacros(): array
{
return [
"addChild" => new \Twig\TwigMacro("addChild", function ($formChildren = null, ...$varargs): string|Markup {
// line 50
$macros = $this->macros;
$context = [
"formChildren" => $formChildren,
"varargs" => $varargs,
] + $this->env->getGlobals();
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "addChild"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "addChild"));
// line 51
yield "<div class=\"block-form\">
\t<div class=\"delete-child justify-end items-center mb-1\">
\t\t<i class=\"fas fa-times cursor-pointer text-franboise\"></i>
\t</div>
\t<div class=\"flex justify-between flex-wrap sm:flex-nowrap gap-10 mb-4\">
\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t<label class=\"font-bold\">Prénom de l\x27enfant</label>
\t\t\t<input type=\"text\" name=\"";
// line 58
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 58, $this->source); })()), "firstname", [], "any", false, false, false, 58), "vars", [], "any", false, false, false, 58), "full_name", [], "any", false, false, false, 58), "html", null, true);
yield "\" value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 58, $this->source); })()), "firstname", [], "any", false, false, false, 58), "vars", [], "any", false, false, false, 58), "value", [], "any", false, false, false, 58), "html", null, true);
yield "\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez son prénom\">
\t\t\t<div class=\"invalid-feedback\">
\t\t\t";
// line 60
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 60, $this->source); })()), "firstname", [], "any", false, false, false, 60), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t</div>
\t\t</div>
\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t<label class=\"font-bold\">Sa classe</label>
\t\t\t<select name=\"";
// line 65
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 65, $this->source); })()), "course", [], "any", false, false, false, 65), "vars", [], "any", false, false, false, 65), "full_name", [], "any", false, false, false, 65), "html", null, true);
yield "\" class=\"border-lavande border rounded-3xl py-2 px-4\">
\t\t\t\t<option value=\"\" disabled selected hidden>
\t\t\t\t\tChoisissez sa classe
\t\t\t\t</option>
\t\t\t\t";
// line 69
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 69, $this->source); })()), "course", [], "any", false, false, false, 69), "vars", [], "any", false, false, false, 69), "choices", [], "any", false, false, false, 69));
foreach ($context['_seq'] as $context["_key"] => $context["ch"]) {
// line 70
yield "\t\t\t\t\t<option value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ch"], "value", [], "any", false, false, false, 70), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 70, $this->source); })()), "course", [], "any", false, false, false, 70), "vars", [], "any", false, false, false, 70), "value", [], "any", false, false, false, 70) == CoreExtension::getAttribute($this->env, $this->source, $context["ch"], "value", [], "any", false, false, false, 70))) {
yield " selected";
}
yield ">";
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["ch"], "label", [], "any", false, false, false, 70)), "html", null, true);
yield "</option>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['ch'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 72
yield "\t\t\t</select>
\t\t\t<div class=\"invalid-feedback\">
\t\t\t";
// line 74
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formChildren"]) || array_key_exists("formChildren", $context) ? $context["formChildren"] : (function () { throw new RuntimeError('Variable "formChildren" does not exist.', 74, $this->source); })()), "course", [], "any", false, false, false, 74), 'errors', ["attr" => ["class" => "errors"]]);
yield "
\t\t\t</div>
\t\t</div>
\t</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
})())) ? '' : new Markup($tmp, $this->env->getCharset());
}, ["formChildren" => false], false),
];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/tunnel/step2a.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 702 => 74, 698 => 72, 682 => 70, 678 => 69, 671 => 65, 663 => 60, 656 => 58, 647 => 51, 631 => 50, 599 => 348, 570 => 321, 560 => 313, 554 => 311, 552 => 310, 531 => 291, 518 => 290, 501 => 283, 495 => 281, 492 => 280, 485 => 276, 481 => 274, 475 => 271, 471 => 270, 463 => 264, 461 => 263, 450 => 255, 444 => 252, 429 => 240, 420 => 234, 416 => 233, 410 => 230, 402 => 225, 398 => 223, 390 => 218, 383 => 216, 375 => 211, 368 => 209, 358 => 202, 351 => 200, 343 => 195, 336 => 193, 326 => 186, 319 => 184, 311 => 179, 304 => 177, 294 => 170, 287 => 168, 279 => 163, 267 => 161, 258 => 154, 256 => 153, 242 => 141, 232 => 139, 228 => 138, 219 => 132, 216 => 131, 207 => 125, 198 => 119, 168 => 91, 166 => 90, 154 => 80, 108 => 6, 95 => 5, 83 => 3, 70 => 2, 47 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27front/tunnel/layout.html.twig\x27 %}
{% block head %}
\t<title>Étape 2</title>
{% endblock %}
{% block body %}
<section class=\"w-full py-10 sm:py-20\">
\t<ol class=\"flex flex-row w-full\">
\t\t<!--first item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-bleuindigo\"></div>
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo\"></div>
\t\t\t\t<p class=\"mt-4 text-sm font-bold text-bleuindigo text-center px-2\">
\t\t\t\t\t1. Je sélectionne la durée
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t\t<!--Second item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-lavande\"></div>
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo border-4 border-bleuindigo\"></div>
\t\t\t\t<p class=\"mt-4 sm:mt-2 text-sm sm:text-lg font-bold text-bleuindigo text-center px-2\">
\t\t\t\t\t2. J\x27accède à mon compte
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t\t<!--Third item-->
\t\t<li class=\"relative flex-1\">
\t\t\t<div class=\"relative z-10 flex flex-col items-center\">
\t\t\t\t<div class=\"size-5 rounded-full bg-lavande\"></div>
\t\t\t\t<p class=\"mt-4 text-sm font-bold text-lavande text-center px-2\">
\t\t\t\t\t3. Je procède au paiement
\t\t\t\t</p>
\t\t\t</div>
\t\t</li>
\t</ol>
</section>
<section class=\"flex justify-center mb-8 sm:mb-16\">
\t<div class=\"text-center bg-jaune text-bleuindigo font-bold py-2 px-4 rounded-full text-sm sm:text-lg\">
\t\tVous ne serez pas débité avant la fin de votre essai de 7 jours, résiliable à tout moment.
\t</div>
</section>
{% macro addChild(formChildren) %}
<div class=\"block-form\">
\t<div class=\"delete-child justify-end items-center mb-1\">
\t\t<i class=\"fas fa-times cursor-pointer text-franboise\"></i>
\t</div>
\t<div class=\"flex justify-between flex-wrap sm:flex-nowrap gap-10 mb-4\">
\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t<label class=\"font-bold\">Prénom de l\x27enfant</label>
\t\t\t<input type=\"text\" name=\"{{ formChildren.firstname.vars.full_name }}\" value=\"{{ formChildren.firstname.vars.value }}\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez son prénom\">
\t\t\t<div class=\"invalid-feedback\">
\t\t\t{{ form_errors(formChildren.firstname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t</div>
\t\t</div>
\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t<label class=\"font-bold\">Sa classe</label>
\t\t\t<select name=\"{{ formChildren.course.vars.full_name }}\" class=\"border-lavande border rounded-3xl py-2 px-4\">
\t\t\t\t<option value=\"\" disabled selected hidden>
\t\t\t\t\tChoisissez sa classe
\t\t\t\t</option>
\t\t\t\t{% for ch in formChildren.course.vars.choices %}
\t\t\t\t\t<option value=\"{{ ch.value }}\" {% if formChildren.course.vars.value == ch.value %} selected{% endif %}>{{ ch.label|capitalize }}</option>
\t\t\t\t{% endfor %}
\t\t\t</select>
\t\t\t<div class=\"invalid-feedback\">
\t\t\t{{ form_errors(formChildren.course,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t</div>
\t\t</div>
\t</div>
</div>
{% endmacro %}
<!--Informations-->
<section class=\"flex justify-center\">
\t<div class=\"flex flex-col lg:flex-row justify-between\">
\t\t<div class=\"\">
\t\t</div>
\t\t<div class=\"lg:w-6/12 xl:w-7/12\">
\t\t\t{% if not is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
\t\t\t\t<!--Connexion-->
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap relative items-center border-lavande border rounded-3xl gap-3 font-bold w-full sm:w-fit py-2 px-4 mt-6 sm:mt-0 mb-4\">
\t\t\t\t\t<div class=\"flex items-center gap-2 absolute sm:relative -top-8 sm:top-0 left-0\">
\t\t\t\t\t\t<img src=\"/static/img/tunnel/avatar.webp\" alt=\"Se connecter\" class=\"size-5\">
\t\t\t\t\t\t<span class=\"text-bleuindigo\">Vous avez déjà un compte ?</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div id=\"btn-form-login\" class=\"text-franboise cursor-pointer\">Connectez-vous</div>
\t\t\t\t</div>
\t\t\t\t<form class=\"form-login\" method=\"post\" style=\"display: none\" id=\"form-login\">
\t\t\t\t\t<div class=\"mb-4\">
\t\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Se connecter</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"alert alert-danger mb-4\" style=\"max-width:450px;display: none\">Mince... Ce n\x27est pas le bon mot de passe. Ou alors, ce n\x27est pas le bon email.<br/> Si besoin, vous pouvez créer un nouveau mot de passe. Avec lien vers Mot de passe oublié ?</div>
\t\t\t\t\t<div class=\"flex justify-between mb-4\">
\t\t\t\t\t\t<label for=\"login\">
\t\t\t\t\t\t\tEmail <span>*</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<input type=\"email\" value=\"\" class=\"border-lavande border rounded-3xl py-2 px-4 w-8/12\" name=\"email\" id=\"login\" placeholder=\"[email protected]\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex justify-between mb-4\">
\t\t\t\t\t\t<label for=\"password\">
\t\t\t\t\t\t\tMot de passe <span>*</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<input type=\"password\" class=\"border-lavande border rounded-3xl py-2 px-4 w-8/12\" id=\"password\" name=\"password\" placeholder=\"\">
\t\t\t\t\t</div>
\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token(\x27authenticate\x27) }}\">
\t\t\t\t\t<div class=\"flex justify-center mt-3 mb-5\">
\t\t\t\t\t\t<button type=\"submit\" id=\"btn-connexion\" class=\"w-6/12 bg-framboise hover:bg-bleuindigo hover:cursor-pointer text-white rounded-3xl font-bold py-3 mt-4\">Se connecter</button>
\t\t\t\t\t</div>
\t\t\t\t\t<a class=\"text-center d-block block\" href=\"{{ path(\x27app_forgot_password_request\x27) }}\" title=\"Mot de passe oublié\">
\t\t\t\t\t\tMot de passe oublié ?
\t\t\t\t\t</a>
\t\t\t\t</form>
\t\t\t{% endif %}
\t\t\t{{ form_start(form,{\x27attr\x27:{\x27class\x27: \x27form-registration flex flex-col gap-5 sm:gap-10\x27 }}) }}
\t\t\t<!--Informations élève-->
\t\t\t<div class=\"mb-10\">
\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations élève</span>
\t\t\t</div>
\t\t\t<div class=\"mb-4\" id=\"list-child\">
\t\t\t\t{% for formChild in form.children.childrenForm.children %}
\t\t\t\t\t{{ _self.addChild(formChild) }}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<!--Rajout élève-->
\t\t\t<div class=\"flex flex-col gap-2 mb-10\">
\t\t\t\t<div class=\"flex items-center cursor-pointer\" id=\"addChildButton\">
\t\t\t\t\t<img src=\"/static/img/tunnel/icone-plus.webp\" alt=\"Ajouter un autre élève\" class=\"size-5 mr-2\">
\t\t\t\t\t<span class=\"text-pervenche\">Ajouter un élève</span>
\t\t\t\t</div>
\t\t\t\t<span class=\"text-lavande text-sm sm:text-base ml-6\">-50% pour chaque enfant supplémentaire</span>
\t\t\t</div>
\t\t\t<!--Informations parent-->
\t\t\t{% if not is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
\t\t\t\t<div class=\"mb-10\">
\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations parent</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"prenom\" class=\"font-bold\">Votre prénom</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.firstname.vars.full_name }}\" value=\"{{ form.firstname.vars.value }}\" id=\"prenom\" class=\"border{% if form.firstname.vars.valid %}-lavande{% else%}{% endif %} border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre prénom\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.firstname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"nom\" class=\"font-bold\">Votre nom</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.lastname.vars.full_name }}\" value=\"{{ form.lastname.vars.value }}\" id=\"nom\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre nom\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.lastname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mail\" class=\"font-bold\">Votre email</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.email.vars.full_name }}\" value=\"{{ form.email.vars.value }}\" id=\"mail\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre email\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.email,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"tel\" class=\"font-bold\">Votre numéro de téléphone</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.phone.vars.full_name }}\" value=\"{{ form.phone.vars.value }}\" id=\"tel\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre numéro de téléphone\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.phone,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mdp\" class=\"font-bold\">Définissez votre mot de passe</label>
\t\t\t\t\t\t<input type=\"password\" name=\"{{ form.plainPassword.children.first.vars.full_name }}\" value=\"{{ form.plainPassword.children.first.vars.value }}\" id=\"mdp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Choisissez votre mot de passe\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.plainPassword.children.first,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"mdpbis\" class=\"font-bold\">Répétez votre mot de passe</label>
\t\t\t\t\t\t<input type=\"password\" name=\"{{ form.plainPassword.children.second.vars.full_name }}\" value=\"{{ form.plainPassword.children.second.vars.value }}\" id=\"mdpbis\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Répétez votre mot de passe\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.plainPassword.children.second,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"cp\" class=\"font-bold\">Votre code postal</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.postalCode.vars.full_name }}\" value=\"{{ form.postalCode.vars.value }}\" id=\"cp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre code postal\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.postalCode,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
\t\t\t\t\t\t<label for=\"ville\" class=\"font-bold\">Votre ville</label>
\t\t\t\t\t\t<input type=\"text\" name=\"{{ form.city.vars.full_name }}\" value=\"{{ form.city.vars.value }}\" id=\"ville\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre ville\">
\t\t\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t\t\t{{ form_errors(form.city,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t<div class=\"mt-10\">
\t\t\t\t<div class=\"flex items-start gap-2\">
\t\t\t\t\t<input id=\"rgpd\" name=\"{{ form.isRegisterInfos.vars.full_name }}\" type=\"checkbox\"
\t\t\t\t\t\t class=\"size-5 border-lavande rounded-xl\" />
\t\t\t\t\t<label for=\"rgpd\" class=\"text-sm sm:text-base\">J’autorise Les Bons Profs à conserver mes données ci-dessus à des fins de suivi commercial. Aucune donnée ne sera transmise à un partenaire.</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"invalid-feedback\">
\t\t\t\t\t{{ form_errors(form.isRegisterInfos,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t{{ form_row(form._token) }}
\t\t\t{{ form_end(form, {\x27render_rest\x27:false }) }}
\t\t</div>
\t\t<!--Colonne gauche-->
\t\t<div class=\"hidden\" id=\"template-add-child\">
\t\t\t{{ _self.addChild(form.childrenForm.vars.prototype.children) }}
\t\t</div>
\t\t<!--Colonne droite-->
\t\t<div class=\"flex flex-col lg:w-5/12 xl:w-4/12 my-16 lg:mt-0\">
\t\t\t<!--Encadré lavande-->
\t\t\t<div class=\"flex flex-col bg-lavandeclair rounded-2xl text-sm sm:text-base gap-y-2 p-5 sm:p-10\">
\t\t\t\t<div class=\"text-bleuindigo font-bold text-xl\">
\t\t\t\t\tVous avez choisi l’offre
\t\t\t\t</div>
\t\t\t\t<div class=\"text-pervenche font-bold text-2xl sm:text-3xl\">
\t\t\t\t\t{{ offer.title|upper }}
\t\t\t\t</div>
\t\t\t\t<div class=\"font-bold mt-2\">
\t\t\t\t\t{{ offer.typeOffer.textPaid|raw }}
\t\t\t\t</div>
\t\t\t\t<div class=\"flex justify-between items-center mt-4\">
\t\t\t\t\t<span class=\"flex text-bleuindigo font-bold\">
\t\t\t\t\t <span class=\"flex items-center bg-jaune rounded-xl px-2 mr-1\"><span class=\"text-lg -my-1 pr-1\">★</span> 4,6</span>+ 300 avis Trustpilot
\t\t\t\t\t</span>
\t\t\t\t\t<span class=\"text-pervenche text-xs hover:underline\"><a href=\"https://fr.trustpilot.com/review/lesbonsprofs.com\" target=\"_blank\">Voir les avis</a></span>
\t\t\t\t</div>
\t\t\t\t{% if mode_free %}
\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
\t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
\t\t\t\t\t\t<span>0€</span>
\t\t\t\t\t</div>
\t\t\t\t\t<hr class=\"border-lavande border my-2\" />
\t\t\t\t\t<div class=\"flex justify-between text-bleuindigo\">
\t\t\t\t\t\t<span>Montant dû au {{ dateAchat|date_modify(\"+8 day\")|format_datetime(locale=\x27fr\x27,pattern=\"dd MMMM YYYY\") }}</span>
\t\t\t\t\t\t<span class=\"font-bold\" id=\"som-toto\">{{ amount|number_format(2, \x27,\x27, \x27.\x27) }} €</span>
\t\t\t\t\t</div>
\t\t\t\t{% else %}
\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
\t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
\t\t\t\t\t\t<span id=\"som-toto\">{{ amount|number_format(2, \x27,\x27, \x27.\x27) }} €</span>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t{% if discount is not null %}
\t\t\t\t\t<div class=\"text-bleuindigo mb-2\"><span class=\"font-bold me-1\">Promotion appliquée :</span> {{ discount.title }}</div>
\t\t\t\t{% endif %}
\t\t\t\t<button id=\"but-submit\" type=\"submit\" class=\"bg-framboise hover:bg-bleuindigo hover:cursor-pointer text-white rounded-3xl font-bold py-3 mt-4\">Continuer</button>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
{% endblock %}
{% block javascripts %}
\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"
\t\t\tintegrity=\"sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==\"
\t\t\tcrossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
\t<script type=\"text/javascript\">
function addclone(userNbr){
for(var j=0;j<userNbr;j++){
var clone = \$(\x27#template-add-child\x27).clone();
var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
var cpt = nbr + 1;
clone = clone.html().replaceAll(/__name__/g,nbr).replaceAll(/__enfantnumber__/g,cpt);
\$(\x27#list-child\x27).append(clone);
}
}
\$(document).ready(function(){
\t\t\t{% if not form.vars.submitted %}
addclone({{ nbr }});
\t\t\t{% else %}
var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
var i = 0;
\$(\x27#list-child\x27).find(\x27.block-form\x27).each(function(){
i= i + 1;
\$(this).find(\x27.number-child\x27).text(i);
})
\t\t\t{% endif %}
// Au clique du bouton Ajouter un eleve
\$(\x27#addChildButton\x27).click(function(){
addclone(1)
})
})
\$(document).on(\"click\",\".block-form .fa-times\",function(){
\$(this).parents(\x27.block-form\x27).remove();
})
\$(\x27#but-submit\x27).click(function(e){
e.preventDefault();
var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
\$(\x27.form-registration\x27).submit();
})
\t\t\$(\x27#btn-form-login\x27).click(function(e){
e.preventDefault();
\$(\x27.form-login\x27).show();
\$(\x27.form-registration\x27).hide();
\t\t})
\t\t\$(\x27#btn-connexion\x27).click(function(e){
e.preventDefault();
var form = \$(\x27.form-login\x27);
var formData = new FormData(form[0]);
\$(\x27.u-spinner\x27).addClass(\x27open\x27);
\$.ajax({
url: \"{{ path(\x27ajax_login\x27) }}\",
type: \x27POST\x27,
data: formData,
processData: false,
contentType: false,
\t\t\t\tdataType: \x27json\x27,
success: function (data) {
window.location.reload();
\t\t\t\t}
})
\t\t})
\t</script>
{% endblock %}
", "front/tunnel/step2a.html.twig", "/var/www/dashboard/templates/front/tunnel/step2a.html.twig");
}
}