var/cache/dev/twig/c0/c09cd7830e68ec3e594940451e9d6ca8.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* front/tunnel/step2a.html.twig */
  18. class __TwigTemplate_62dd24f11bdf55dea170ca4cb2e22503 extends Template
  19. {
  20.     private Source $source;
  21.     /**
  22.      * @var array<string, MacroNamespace>
  23.      */
  24.     private array $macros = [];
  25.     private \Twig\Runtime\EscaperRuntime $escaper;
  26.     public function __construct(Environment $env)
  27.     {
  28.         parent::__construct($env);
  29.         $this->source = $this->getSourceContext();
  30.         $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31.         $this->blocks = [
  32.             'head' => [$this, 'block_head'],
  33.             'body' => [$this, 'block_body'],
  34.             'javascripts' => [$this, 'block_javascripts'],
  35.         ];
  36.     }
  37.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  38.     {
  39.         // line 1
  40.         return $this->parent ??= $this->load("front/tunnel/layout.html.twig", 1);
  41.     }
  42.     protected function doDisplay(array $context, array $blocks = []): iterable
  43.     {
  44.         $macros = $this->macros;
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/tunnel/step2a.html.twig"));
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/tunnel/step2a.html.twig"));
  49.         $this->parent = $this->load("front/tunnel/layout.html.twig", 1);
  50.         yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 2
  57.     /**
  58.      * @return iterable<null|scalar|\Stringable>
  59.      */
  60.     public function block_head(array $context, array $blocks = []): iterable
  61.     {
  62.         $macros = $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  67.         // line 3
  68.         yield "\t<title>Étape 2</title>
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.         return; yield;
  75.     }
  76.     // line 5
  77.     /**
  78.      * @return iterable<null|scalar|\Stringable>
  79.      */
  80.     public function block_body(array $context, array $blocks = []): iterable
  81.     {
  82.         $macros = $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  87.         // line 6
  88.         yield "<section class=\"w-full py-10 sm:py-20\">
  89. \t<ol class=\"flex flex-row w-full\">
  90. \t\t<!--first item-->
  91. \t\t<li class=\"relative flex-1\">
  92. \t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-bleuindigo\"></div>
  93. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  94. \t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo\"></div>
  95. \t\t\t\t<p class=\"mt-4 text-sm font-bold text-bleuindigo text-center px-2\">
  96. \t\t\t\t\t1. Je sélectionne la durée
  97. \t\t\t\t</p>
  98. \t\t\t</div>
  99. \t\t</li>
  100. \t\t<!--Second item-->
  101. \t\t<li class=\"relative flex-1\">
  102. \t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-lavande\"></div>
  103. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  104. \t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo border-4 border-bleuindigo\"></div>
  105. \t\t\t\t<p class=\"mt-4 sm:mt-2 text-sm sm:text-lg font-bold text-bleuindigo text-center px-2\">
  106. \t\t\t\t\t2. J\x27accède à mon compte
  107. \t\t\t\t</p>
  108. \t\t\t</div>
  109. \t\t</li>
  110. \t\t<!--Third item-->
  111. \t\t<li class=\"relative flex-1\">
  112. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  113. \t\t\t\t<div class=\"size-5 rounded-full bg-lavande\"></div>
  114. \t\t\t\t<p class=\"mt-4 text-sm font-bold text-lavande text-center px-2\">
  115. \t\t\t\t\t3. Je procède au paiement
  116. \t\t\t\t</p>
  117. \t\t\t</div>
  118. \t\t</li>
  119. \t</ol>
  120. </section>
  121. <section class=\"flex justify-center mb-8 sm:mb-16\">
  122. \t<div class=\"text-center bg-jaune text-bleuindigo font-bold py-2 px-4 rounded-full text-sm sm:text-lg\">
  123. \t\tVous ne serez pas débité avant la fin de votre essai de 7 jours, résiliable à tout moment.
  124. \t</div>
  125. </section>
  126. ";
  127.         // line 80
  128.         yield "
  129. <!--Informations-->
  130. <section class=\"flex justify-center\">
  131. \t<div class=\"flex flex-col lg:flex-row justify-between\">
  132. \t\t<div class=\"\">
  133. \t\t</div>
  134. \t\t<div class=\"lg:w-6/12 xl:w-7/12\">
  135. \t\t\t";
  136.         // line 90
  137.         if ( !(($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  138.             // line 91
  139.             yield "\t\t\t\t<!--Connexion-->
  140. \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\">
  141. \t\t\t\t\t<div class=\"flex items-center gap-2 absolute sm:relative -top-8 sm:top-0 left-0\">
  142. \t\t\t\t\t\t<img src=\"/static/img/tunnel/avatar.webp\" alt=\"Se connecter\" class=\"size-5\">
  143. \t\t\t\t\t\t<span class=\"text-bleuindigo\">Vous avez déjà un compte ?</span>
  144. \t\t\t\t\t</div>
  145. \t\t\t\t\t<div id=\"btn-form-login\" class=\"text-franboise cursor-pointer\">Connectez-vous</div>
  146. \t\t\t\t</div>
  147. \t\t\t\t<form class=\"form-login\" method=\"post\" style=\"display: none\" id=\"form-login\">
  148. \t\t\t\t\t<div class=\"mb-4\">
  149. \t\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Se connecter</span>
  150. \t\t\t\t\t</div>
  151. \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>
  152. \t\t\t\t\t<div class=\"flex justify-between mb-4\">
  153. \t\t\t\t\t\t<label for=\"login\">
  154. \t\t\t\t\t\t\tEmail <span>*</span>
  155. \t\t\t\t\t\t</label>
  156. \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]\">
  157. \t\t\t\t\t</div>
  158. \t\t\t\t\t<div class=\"flex justify-between mb-4\">
  159. \t\t\t\t\t\t<label for=\"password\">
  160. \t\t\t\t\t\t\tMot de passe <span>*</span>
  161. \t\t\t\t\t\t</label>
  162. \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=\"\">
  163. \t\t\t\t\t</div>
  164. \t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
  165.             // line 119
  166.             yield (string) $this->escaper->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  167.             yield "\">
  168. \t\t\t\t\t<div class=\"flex justify-center mt-3 mb-5\">
  169. \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>
  170. \t\t\t\t\t</div>
  171. \t\t\t\t\t<a class=\"text-center d-block block\" href=\"";
  172.             // line 125
  173.             yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  174.             yield "\" title=\"Mot de passe oublié\">
  175. \t\t\t\t\t\tMot de passe oublié ?
  176. \t\t\t\t\t</a>
  177. \t\t\t\t</form>
  178. \t\t\t";
  179.         }
  180.         // line 131
  181.         yield "
  182. \t\t\t";
  183.         // line 132
  184.         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"]]);
  185.         yield "
  186. \t\t\t<!--Informations élève-->
  187. \t\t\t<div class=\"mb-10\">
  188. \t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations élève</span>
  189. \t\t\t</div>
  190. \t\t\t<div class=\"mb-4\" id=\"list-child\">
  191. \t\t\t\t";
  192.         // line 138
  193.         $context['_parent'] = $context;
  194.         $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));
  195.         foreach ($context['_seq'] as $context["_key"] => $context["formChild"]) {
  196.             // line 139
  197.             yield "\t\t\t\t\t";
  198.             yield (string) $this->getMacroNamespace()->call("addChild", [$context["formChild"]], $context, 139, $this->source);
  199.             yield "
  200. \t\t\t\t";
  201.         }
  202.         $_parent = $context['_parent'];
  203.         unset($context['_seq'], $context['_key'], $context['formChild'], $context['_parent']);
  204.         $context = array_intersect_key($context, $_parent);
  205.         $context += $_parent;
  206.         // line 141
  207.         yield "\t\t\t</div>
  208. \t\t\t<!--Rajout élève-->
  209. \t\t\t<div class=\"flex flex-col gap-2 mb-10\">
  210. \t\t\t\t<div class=\"flex items-center cursor-pointer\" id=\"addChildButton\">
  211. \t\t\t\t\t<img src=\"/static/img/tunnel/icone-plus.webp\" alt=\"Ajouter un autre élève\" class=\"size-5 mr-2\">
  212. \t\t\t\t\t<span class=\"text-pervenche\">Ajouter un élève</span>
  213. \t\t\t\t</div>
  214. \t\t\t\t<span class=\"text-lavande text-sm sm:text-base ml-6\">-50% pour chaque enfant supplémentaire</span>
  215. \t\t\t</div>
  216. \t\t\t<!--Informations parent-->
  217. \t\t\t";
  218.         // line 153
  219.         if ( !(($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  220.             // line 154
  221.             yield "\t\t\t\t<div class=\"mb-10\">
  222. \t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations parent</span>
  223. \t\t\t\t</div>
  224. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  225. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  226. \t\t\t\t\t\t<label for=\"prenom\" class=\"font-bold\">Votre prénom</label>
  227. \t\t\t\t\t\t<input type=\"text\" name=\"";
  228.             // line 161
  229.             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);
  230.             yield "\" value=\"";
  231.             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);
  232.             yield "\" id=\"prenom\" class=\"border";
  233.             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)) {
  234.                 yield "-lavande";
  235.             } else {
  236.             }
  237.             yield " border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre prénom\">
  238. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  239. \t\t\t\t\t\t\t";
  240.             // line 163
  241.             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"]]);
  242.             yield "
  243. \t\t\t\t\t\t</div>
  244. \t\t\t\t\t</div>
  245. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  246. \t\t\t\t\t\t<label for=\"nom\" class=\"font-bold\">Votre nom</label>
  247. \t\t\t\t\t\t<input type=\"text\" name=\"";
  248.             // line 168
  249.             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);
  250.             yield "\" value=\"";
  251.             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);
  252.             yield "\" id=\"nom\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre nom\">
  253. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  254. \t\t\t\t\t\t\t";
  255.             // line 170
  256.             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"]]);
  257.             yield "
  258. \t\t\t\t\t\t</div>
  259. \t\t\t\t\t</div>
  260. \t\t\t\t</div>
  261. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  262. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  263. \t\t\t\t\t\t<label for=\"mail\" class=\"font-bold\">Votre email</label>
  264. \t\t\t\t\t\t<input type=\"text\" name=\"";
  265.             // line 177
  266.             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);
  267.             yield "\" value=\"";
  268.             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);
  269.             yield "\" id=\"mail\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre email\">
  270. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  271. \t\t\t\t\t\t\t";
  272.             // line 179
  273.             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"]]);
  274.             yield "
  275. \t\t\t\t\t\t</div>
  276. \t\t\t\t\t</div>
  277. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  278. \t\t\t\t\t\t<label for=\"tel\" class=\"font-bold\">Votre numéro de téléphone</label>
  279. \t\t\t\t\t\t<input type=\"text\" name=\"";
  280.             // line 184
  281.             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);
  282.             yield "\" value=\"";
  283.             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);
  284.             yield "\" id=\"tel\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre numéro de téléphone\">
  285. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  286. \t\t\t\t\t\t\t";
  287.             // line 186
  288.             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"]]);
  289.             yield "
  290. \t\t\t\t\t\t</div>
  291. \t\t\t\t\t</div>
  292. \t\t\t\t</div>
  293. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  294. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  295. \t\t\t\t\t\t<label for=\"mdp\" class=\"font-bold\">Définissez votre mot de passe</label>
  296. \t\t\t\t\t\t<input type=\"password\" name=\"";
  297.             // line 193
  298.             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);
  299.             yield "\" value=\"";
  300.             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);
  301.             yield "\"  id=\"mdp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Choisissez votre mot de passe\">
  302. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  303. \t\t\t\t\t\t\t";
  304.             // line 195
  305.             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"]]);
  306.             yield "
  307. \t\t\t\t\t\t</div>
  308. \t\t\t\t\t</div>
  309. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  310. \t\t\t\t\t\t<label for=\"mdpbis\" class=\"font-bold\">Répétez votre mot de passe</label>
  311. \t\t\t\t\t\t<input type=\"password\" name=\"";
  312.             // line 200
  313.             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);
  314.             yield "\" value=\"";
  315.             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);
  316.             yield "\" id=\"mdpbis\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Répétez votre mot de passe\">
  317. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  318. \t\t\t\t\t\t\t";
  319.             // line 202
  320.             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"]]);
  321.             yield "
  322. \t\t\t\t\t\t</div>
  323. \t\t\t\t\t</div>
  324. \t\t\t\t</div>
  325. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  326. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  327. \t\t\t\t\t\t<label for=\"cp\" class=\"font-bold\">Votre code postal</label>
  328. \t\t\t\t\t\t<input type=\"text\" name=\"";
  329.             // line 209
  330.             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);
  331.             yield "\" value=\"";
  332.             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);
  333.             yield "\" id=\"cp\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre code postal\">
  334. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  335. \t\t\t\t\t\t\t";
  336.             // line 211
  337.             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"]]);
  338.             yield "
  339. \t\t\t\t\t\t</div>
  340. \t\t\t\t\t</div>
  341. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  342. \t\t\t\t\t\t<label for=\"ville\" class=\"font-bold\">Votre ville</label>
  343. \t\t\t\t\t\t<input type=\"text\" name=\"";
  344.             // line 216
  345.             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);
  346.             yield "\" value=\"";
  347.             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);
  348.             yield "\" id=\"ville\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez votre ville\">
  349. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  350. \t\t\t\t\t\t\t";
  351.             // line 218
  352.             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"]]);
  353.             yield "
  354. \t\t\t\t\t\t</div>
  355. \t\t\t\t\t</div>
  356. \t\t\t\t</div>
  357. \t\t\t";
  358.         }
  359.         // line 223
  360.         yield "\t\t\t<div class=\"mt-10\">
  361. \t\t\t\t<div class=\"flex items-start gap-2\">
  362. \t\t\t\t\t<input id=\"rgpd\" name=\"";
  363.         // line 225
  364.         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);
  365.         yield "\" type=\"checkbox\"
  366. \t\t\t\t\t\t   class=\"size-5 border-lavande rounded-xl\" />
  367. \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>
  368. \t\t\t\t</div>
  369. \t\t\t\t<div class=\"invalid-feedback\">
  370. \t\t\t\t\t";
  371.         // line 230
  372.         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"]]);
  373.         yield "
  374. \t\t\t\t</div>
  375. \t\t\t</div>
  376. \t\t\t";
  377.         // line 233
  378.         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');
  379.         yield "
  380. \t\t\t";
  381.         // line 234
  382.         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]);
  383.         yield "
  384. \t\t</div>
  385. \t\t<!--Colonne gauche-->
  386. \t\t<div class=\"hidden\" id=\"template-add-child\">
  387. \t\t\t";
  388.         // line 240
  389.         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);
  390.         yield "
  391. \t\t</div>
  392. \t\t<!--Colonne droite-->
  393. \t\t<div class=\"flex flex-col lg:w-5/12 xl:w-4/12 my-16 lg:mt-0\">
  394. \t\t\t<!--Encadré lavande-->
  395. \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\">
  396. \t\t\t\t<div class=\"text-bleuindigo font-bold text-xl\">
  397. \t\t\t\t\tVous avez choisi l’offre
  398. \t\t\t\t</div>
  399. \t\t\t\t<div class=\"text-pervenche font-bold text-2xl sm:text-3xl\">
  400. \t\t\t\t\t";
  401.         // line 252
  402.         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);
  403.         yield "
  404. \t\t\t\t</div>
  405. \t\t\t\t<div class=\"font-bold mt-2\">
  406. \t\t\t\t\t";
  407.         // line 255
  408.         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);
  409.         yield "
  410. \t\t\t\t</div>
  411. \t\t\t\t<div class=\"flex justify-between items-center mt-4\">
  412. \t\t\t\t\t<span class=\"flex text-bleuindigo font-bold\">
  413. \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\">&#9733</span> 4,6</span>+ 300 avis Trustpilot
  414. \t\t\t\t\t</span>
  415. \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>
  416. \t\t\t\t</div>
  417. \t\t\t\t";
  418.         // line 263
  419.         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)) {
  420.             // line 264
  421.             yield "\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
  422. \t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
  423. \t\t\t\t\t\t<span>0€</span>
  424. \t\t\t\t\t</div>
  425. \t\t\t\t\t<hr class=\"border-lavande border my-2\" />
  426. \t\t\t\t\t<div class=\"flex justify-between text-bleuindigo\">
  427. \t\t\t\t\t\t<span>Montant dû au ";
  428.             // line 270
  429.             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);
  430.             yield "</span>
  431. \t\t\t\t\t\t<span class=\"font-bold\" id=\"som-toto\">";
  432.             // line 271
  433.             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);
  434.             yield " €</span>
  435. \t\t\t\t\t</div>
  436. \t\t\t\t";
  437.         } else {
  438.             // line 274
  439.             yield "\t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
  440. \t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
  441. \t\t\t\t\t\t<span id=\"som-toto\">";
  442.             // line 276
  443.             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);
  444.             yield " €</span>
  445. \t\t\t\t\t</div>
  446. \t\t\t\t";
  447.         }
  448.         // line 280
  449.         yield "\t\t\t\t";
  450.         if ( !(null === (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 280, $this->source); })()))) {
  451.             // line 281
  452.             yield "\t\t\t\t\t<div class=\"text-bleuindigo mb-2\"><span class=\"font-bold me-1\">Promotion appliquée :</span> ";
  453.             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);
  454.             yield "</div>
  455. \t\t\t\t";
  456.         }
  457.         // line 283
  458.         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>
  459. \t\t\t</div>
  460. \t\t</div>
  461. \t</div>
  462. </section>
  463. ";
  464.         
  465.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  466.         
  467.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  468.         return; yield;
  469.     }
  470.     // line 290
  471.     /**
  472.      * @return iterable<null|scalar|\Stringable>
  473.      */
  474.     public function block_javascripts(array $context, array $blocks = []): iterable
  475.     {
  476.         $macros = $this->macros;
  477.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  478.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  479.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  480.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  481.         // line 291
  482.         yield "\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"
  483. \t\t\tintegrity=\"sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==\"
  484. \t\t\tcrossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  485. \t<script type=\"text/javascript\">
  486.         function addclone(userNbr){
  487.             for(var j=0;j<userNbr;j++){
  488.                 var clone = \$(\x27#template-add-child\x27).clone();
  489.                 var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  490.                 var cpt = nbr + 1;
  491.                 clone = clone.html().replaceAll(/__name__/g,nbr).replaceAll(/__enfantnumber__/g,cpt);
  492.                 \$(\x27#list-child\x27).append(clone);
  493.             }
  494.         }
  495.         \$(document).ready(function(){
  496. \t\t\t";
  497.         // line 310
  498.         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)) {
  499.             // line 311
  500.             yield "            addclone(";
  501.             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);
  502.             yield ");
  503. \t\t\t";
  504.         } else {
  505.             // line 313
  506.             yield "            var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  507.             var i = 0;
  508.             \$(\x27#list-child\x27).find(\x27.block-form\x27).each(function(){
  509.                 i= i + 1;
  510.                 \$(this).find(\x27.number-child\x27).text(i);
  511.             })
  512. \t\t\t";
  513.         }
  514.         // line 321
  515.         yield "            // Au clique du bouton Ajouter un eleve
  516.             \$(\x27#addChildButton\x27).click(function(){
  517.                 addclone(1)
  518.             })
  519.         })
  520.         \$(document).on(\"click\",\".block-form .fa-times\",function(){
  521.             \$(this).parents(\x27.block-form\x27).remove();
  522.         })
  523.         \$(\x27#but-submit\x27).click(function(e){
  524.             e.preventDefault();
  525.             var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  526.             \$(\x27.form-registration\x27).submit();
  527.         })
  528. \t\t\$(\x27#btn-form-login\x27).click(function(e){
  529.             e.preventDefault();
  530.             \$(\x27.form-login\x27).show();
  531.             \$(\x27.form-registration\x27).hide();
  532. \t\t})
  533. \t\t\$(\x27#btn-connexion\x27).click(function(e){
  534.             e.preventDefault();
  535.             var form = \$(\x27.form-login\x27);
  536.             var formData = new FormData(form[0]);
  537.             \$(\x27.u-spinner\x27).addClass(\x27open\x27);
  538.             \$.ajax({
  539.                 url: \"";
  540.         // line 348
  541.         yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_login");
  542.         yield "\",
  543.                 type: \x27POST\x27,
  544.                 data: formData,
  545.                 processData: false,
  546.                 contentType: false,
  547. \t\t\t\tdataType: \x27json\x27,
  548.                 success: function (data) {
  549.                         window.location.reload();
  550. \t\t\t\t}
  551.             })
  552. \t\t})
  553. \t</script>
  554. ";
  555.         
  556.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  557.         
  558.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  559.         return; yield;
  560.     }
  561.     protected function loadDeclaredMacros(): array
  562.     {
  563.         return [
  564.             "addChild" => new \Twig\TwigMacro("addChild", function ($formChildren = null, ...$varargs): string|Markup {
  565.                 // line 50
  566.                 $macros = $this->macros;
  567.                 $context = [
  568.                     "formChildren" => $formChildren,
  569.                     "varargs" => $varargs,
  570.                 ] + $this->env->getGlobals();
  571.                 $blocks = [];
  572.                 return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  573.                     $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  574.                     $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "addChild"));
  575.                     $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  576.                     $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "addChild"));
  577.                     // line 51
  578.                     yield "<div class=\"block-form\">
  579. \t<div class=\"delete-child justify-end items-center mb-1\">
  580. \t\t<i class=\"fas fa-times cursor-pointer text-franboise\"></i>
  581. \t</div>
  582. \t<div class=\"flex justify-between flex-wrap sm:flex-nowrap gap-10 mb-4\">
  583. \t\t<div class=\"flex flex-col w-full gap-3\">
  584. \t\t\t<label  class=\"font-bold\">Prénom de l\x27enfant</label>
  585. \t\t\t<input type=\"text\" name=\"";
  586.                     // line 58
  587.                     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);
  588.                     yield "\" value=\"";
  589.                     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);
  590.                     yield "\" class=\"border-lavande border rounded-3xl py-2 px-4\" placeholder=\"Inscrivez son prénom\">
  591. \t\t\t<div class=\"invalid-feedback\">
  592. \t\t\t";
  593.                     // line 60
  594.                     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"]]);
  595.                     yield "
  596. \t\t\t</div>
  597. \t\t</div>
  598. \t\t<div class=\"flex flex-col w-full gap-3\">
  599. \t\t\t<label  class=\"font-bold\">Sa classe</label>
  600. \t\t\t<select name=\"";
  601.                     // line 65
  602.                     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);
  603.                     yield "\" class=\"border-lavande border rounded-3xl py-2 px-4\">
  604. \t\t\t\t<option value=\"\" disabled selected hidden>
  605. \t\t\t\t\tChoisissez sa classe
  606. \t\t\t\t</option>
  607. \t\t\t\t";
  608.                     // line 69
  609.                     $context['_parent'] = $context;
  610.                     $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));
  611.                     foreach ($context['_seq'] as $context["_key"] => $context["ch"]) {
  612.                         // line 70
  613.                         yield "\t\t\t\t\t<option value=\"";
  614.                         yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ch"], "value", [], "any", false, false, false, 70), "html", null, true);
  615.                         yield "\" ";
  616.                         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))) {
  617.                             yield " selected";
  618.                         }
  619.                         yield ">";
  620.                         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);
  621.                         yield "</option>
  622. \t\t\t\t";
  623.                     }
  624.                     $_parent = $context['_parent'];
  625.                     unset($context['_seq'], $context['_key'], $context['ch'], $context['_parent']);
  626.                     $context = array_intersect_key($context, $_parent);
  627.                     $context += $_parent;
  628.                     // line 72
  629.                     yield "\t\t\t</select>
  630. \t\t\t<div class=\"invalid-feedback\">
  631. \t\t\t";
  632.                     // line 74
  633.                     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"]]);
  634.                     yield "
  635. \t\t\t</div>
  636. \t\t</div>
  637. \t</div>
  638. </div>
  639. ";
  640.                     
  641.                     $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  642.                     
  643.                     $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  644.                     return; yield;
  645.                 })())) ? '' : new Markup($tmp, $this->env->getCharset());
  646.             }, ["formChildren" => false], false),
  647.         ];
  648.     }
  649.     /**
  650.      * @codeCoverageIgnore
  651.      */
  652.     public function getTemplateName(): string
  653.     {
  654.         return "front/tunnel/step2a.html.twig";
  655.     }
  656.     /**
  657.      * @codeCoverageIgnore
  658.      */
  659.     public function isTraitable(): bool
  660.     {
  661.         return false;
  662.     }
  663.     /**
  664.      * @codeCoverageIgnore
  665.      */
  666.     public function getDefaultEscapeStrategy(): string|false
  667.     {
  668.         return "html";
  669.     }
  670.     /**
  671.      * @codeCoverageIgnore
  672.      */
  673.     public function getDebugInfo(): array
  674.     {
  675.         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,);
  676.     }
  677.     public function getSourceContext(): Source
  678.     {
  679.         return new Source("{% extends \x27front/tunnel/layout.html.twig\x27 %}
  680. {% block head %}
  681. \t<title>Étape 2</title>
  682. {% endblock %}
  683. {% block body %}
  684. <section class=\"w-full py-10 sm:py-20\">
  685. \t<ol class=\"flex flex-row w-full\">
  686. \t\t<!--first item-->
  687. \t\t<li class=\"relative flex-1\">
  688. \t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-bleuindigo\"></div>
  689. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  690. \t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo\"></div>
  691. \t\t\t\t<p class=\"mt-4 text-sm font-bold text-bleuindigo text-center px-2\">
  692. \t\t\t\t\t1. Je sélectionne la durée
  693. \t\t\t\t</p>
  694. \t\t\t</div>
  695. \t\t</li>
  696. \t\t<!--Second item-->
  697. \t\t<li class=\"relative flex-1\">
  698. \t\t\t<div class=\"absolute top-2 left-1/2 w-full h-1.25 bg-lavande\"></div>
  699. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  700. \t\t\t\t<div class=\"size-5 rounded-full bg-bleuindigo border-4 border-bleuindigo\"></div>
  701. \t\t\t\t<p class=\"mt-4 sm:mt-2 text-sm sm:text-lg font-bold text-bleuindigo text-center px-2\">
  702. \t\t\t\t\t2. J\x27accède à mon compte
  703. \t\t\t\t</p>
  704. \t\t\t</div>
  705. \t\t</li>
  706. \t\t<!--Third item-->
  707. \t\t<li class=\"relative flex-1\">
  708. \t\t\t<div class=\"relative z-10 flex flex-col items-center\">
  709. \t\t\t\t<div class=\"size-5 rounded-full bg-lavande\"></div>
  710. \t\t\t\t<p class=\"mt-4 text-sm font-bold text-lavande text-center px-2\">
  711. \t\t\t\t\t3. Je procède au paiement
  712. \t\t\t\t</p>
  713. \t\t\t</div>
  714. \t\t</li>
  715. \t</ol>
  716. </section>
  717. <section class=\"flex justify-center mb-8 sm:mb-16\">
  718. \t<div class=\"text-center bg-jaune text-bleuindigo font-bold py-2 px-4 rounded-full text-sm sm:text-lg\">
  719. \t\tVous ne serez pas débité avant la fin de votre essai de 7 jours, résiliable à tout moment.
  720. \t</div>
  721. </section>
  722. {% macro addChild(formChildren) %}
  723. <div class=\"block-form\">
  724. \t<div class=\"delete-child justify-end items-center mb-1\">
  725. \t\t<i class=\"fas fa-times cursor-pointer text-franboise\"></i>
  726. \t</div>
  727. \t<div class=\"flex justify-between flex-wrap sm:flex-nowrap gap-10 mb-4\">
  728. \t\t<div class=\"flex flex-col w-full gap-3\">
  729. \t\t\t<label  class=\"font-bold\">Prénom de l\x27enfant</label>
  730. \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\">
  731. \t\t\t<div class=\"invalid-feedback\">
  732. \t\t\t{{ form_errors(formChildren.firstname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  733. \t\t\t</div>
  734. \t\t</div>
  735. \t\t<div class=\"flex flex-col w-full gap-3\">
  736. \t\t\t<label  class=\"font-bold\">Sa classe</label>
  737. \t\t\t<select name=\"{{ formChildren.course.vars.full_name }}\" class=\"border-lavande border rounded-3xl py-2 px-4\">
  738. \t\t\t\t<option value=\"\" disabled selected hidden>
  739. \t\t\t\t\tChoisissez sa classe
  740. \t\t\t\t</option>
  741. \t\t\t\t{% for ch in formChildren.course.vars.choices %}
  742. \t\t\t\t\t<option value=\"{{ ch.value }}\" {% if formChildren.course.vars.value == ch.value %} selected{% endif %}>{{ ch.label|capitalize }}</option>
  743. \t\t\t\t{% endfor %}
  744. \t\t\t</select>
  745. \t\t\t<div class=\"invalid-feedback\">
  746. \t\t\t{{ form_errors(formChildren.course,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  747. \t\t\t</div>
  748. \t\t</div>
  749. \t</div>
  750. </div>
  751. {% endmacro %}
  752. <!--Informations-->
  753. <section class=\"flex justify-center\">
  754. \t<div class=\"flex flex-col lg:flex-row justify-between\">
  755. \t\t<div class=\"\">
  756. \t\t</div>
  757. \t\t<div class=\"lg:w-6/12 xl:w-7/12\">
  758. \t\t\t{% if not is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
  759. \t\t\t\t<!--Connexion-->
  760. \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\">
  761. \t\t\t\t\t<div class=\"flex items-center gap-2 absolute sm:relative -top-8 sm:top-0 left-0\">
  762. \t\t\t\t\t\t<img src=\"/static/img/tunnel/avatar.webp\" alt=\"Se connecter\" class=\"size-5\">
  763. \t\t\t\t\t\t<span class=\"text-bleuindigo\">Vous avez déjà un compte ?</span>
  764. \t\t\t\t\t</div>
  765. \t\t\t\t\t<div id=\"btn-form-login\" class=\"text-franboise cursor-pointer\">Connectez-vous</div>
  766. \t\t\t\t</div>
  767. \t\t\t\t<form class=\"form-login\" method=\"post\" style=\"display: none\" id=\"form-login\">
  768. \t\t\t\t\t<div class=\"mb-4\">
  769. \t\t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Se connecter</span>
  770. \t\t\t\t\t</div>
  771. \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>
  772. \t\t\t\t\t<div class=\"flex justify-between mb-4\">
  773. \t\t\t\t\t\t<label for=\"login\">
  774. \t\t\t\t\t\t\tEmail <span>*</span>
  775. \t\t\t\t\t\t</label>
  776. \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]\">
  777. \t\t\t\t\t</div>
  778. \t\t\t\t\t<div class=\"flex justify-between mb-4\">
  779. \t\t\t\t\t\t<label for=\"password\">
  780. \t\t\t\t\t\t\tMot de passe <span>*</span>
  781. \t\t\t\t\t\t</label>
  782. \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=\"\">
  783. \t\t\t\t\t</div>
  784. \t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token(\x27authenticate\x27) }}\">
  785. \t\t\t\t\t<div class=\"flex justify-center mt-3 mb-5\">
  786. \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>
  787. \t\t\t\t\t</div>
  788. \t\t\t\t\t<a class=\"text-center d-block block\" href=\"{{ path(\x27app_forgot_password_request\x27) }}\" title=\"Mot de passe oublié\">
  789. \t\t\t\t\t\tMot de passe oublié ?
  790. \t\t\t\t\t</a>
  791. \t\t\t\t</form>
  792. \t\t\t{% endif %}
  793. \t\t\t{{ form_start(form,{\x27attr\x27:{\x27class\x27: \x27form-registration flex flex-col gap-5 sm:gap-10\x27 }}) }}
  794. \t\t\t<!--Informations élève-->
  795. \t\t\t<div class=\"mb-10\">
  796. \t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations élève</span>
  797. \t\t\t</div>
  798. \t\t\t<div class=\"mb-4\" id=\"list-child\">
  799. \t\t\t\t{% for formChild in form.children.childrenForm.children %}
  800. \t\t\t\t\t{{ _self.addChild(formChild) }}
  801. \t\t\t\t{% endfor %}
  802. \t\t\t</div>
  803. \t\t\t<!--Rajout élève-->
  804. \t\t\t<div class=\"flex flex-col gap-2 mb-10\">
  805. \t\t\t\t<div class=\"flex items-center cursor-pointer\" id=\"addChildButton\">
  806. \t\t\t\t\t<img src=\"/static/img/tunnel/icone-plus.webp\" alt=\"Ajouter un autre élève\" class=\"size-5 mr-2\">
  807. \t\t\t\t\t<span class=\"text-pervenche\">Ajouter un élève</span>
  808. \t\t\t\t</div>
  809. \t\t\t\t<span class=\"text-lavande text-sm sm:text-base ml-6\">-50% pour chaque enfant supplémentaire</span>
  810. \t\t\t</div>
  811. \t\t\t<!--Informations parent-->
  812. \t\t\t{% if not is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
  813. \t\t\t\t<div class=\"mb-10\">
  814. \t\t\t\t\t<span class=\"text-bleuindigo font-bold text-2xl sm:text-3xl\">Informations parent</span>
  815. \t\t\t\t</div>
  816. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  817. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  818. \t\t\t\t\t\t<label for=\"prenom\" class=\"font-bold\">Votre prénom</label>
  819. \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\">
  820. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  821. \t\t\t\t\t\t\t{{ form_errors(form.firstname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  822. \t\t\t\t\t\t</div>
  823. \t\t\t\t\t</div>
  824. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  825. \t\t\t\t\t\t<label for=\"nom\" class=\"font-bold\">Votre nom</label>
  826. \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\">
  827. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  828. \t\t\t\t\t\t\t{{ form_errors(form.lastname,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  829. \t\t\t\t\t\t</div>
  830. \t\t\t\t\t</div>
  831. \t\t\t\t</div>
  832. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  833. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  834. \t\t\t\t\t\t<label for=\"mail\" class=\"font-bold\">Votre email</label>
  835. \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\">
  836. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  837. \t\t\t\t\t\t\t{{ form_errors(form.email,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  838. \t\t\t\t\t\t</div>
  839. \t\t\t\t\t</div>
  840. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  841. \t\t\t\t\t\t<label for=\"tel\" class=\"font-bold\">Votre numéro de téléphone</label>
  842. \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\">
  843. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  844. \t\t\t\t\t\t\t{{ form_errors(form.phone,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  845. \t\t\t\t\t\t</div>
  846. \t\t\t\t\t</div>
  847. \t\t\t\t</div>
  848. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  849. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  850. \t\t\t\t\t\t<label for=\"mdp\" class=\"font-bold\">Définissez votre mot de passe</label>
  851. \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\">
  852. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  853. \t\t\t\t\t\t\t{{ form_errors(form.plainPassword.children.first,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  854. \t\t\t\t\t\t</div>
  855. \t\t\t\t\t</div>
  856. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  857. \t\t\t\t\t\t<label for=\"mdpbis\" class=\"font-bold\">Répétez votre mot de passe</label>
  858. \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\">
  859. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  860. \t\t\t\t\t\t\t{{ form_errors(form.plainPassword.children.second,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  861. \t\t\t\t\t\t</div>
  862. \t\t\t\t\t</div>
  863. \t\t\t\t</div>
  864. \t\t\t\t<div class=\"flex flex-wrap sm:flex-nowrap justify-between gap-10\">
  865. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  866. \t\t\t\t\t\t<label for=\"cp\" class=\"font-bold\">Votre code postal</label>
  867. \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\">
  868. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  869. \t\t\t\t\t\t\t{{ form_errors(form.postalCode,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  870. \t\t\t\t\t\t</div>
  871. \t\t\t\t\t</div>
  872. \t\t\t\t\t<div class=\"flex flex-col w-full gap-3\">
  873. \t\t\t\t\t\t<label for=\"ville\" class=\"font-bold\">Votre ville</label>
  874. \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\">
  875. \t\t\t\t\t\t<div class=\"invalid-feedback\">
  876. \t\t\t\t\t\t\t{{ form_errors(form.city,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  877. \t\t\t\t\t\t</div>
  878. \t\t\t\t\t</div>
  879. \t\t\t\t</div>
  880. \t\t\t{% endif %}
  881. \t\t\t<div class=\"mt-10\">
  882. \t\t\t\t<div class=\"flex items-start gap-2\">
  883. \t\t\t\t\t<input id=\"rgpd\" name=\"{{ form.isRegisterInfos.vars.full_name }}\" type=\"checkbox\"
  884. \t\t\t\t\t\t   class=\"size-5 border-lavande rounded-xl\" />
  885. \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>
  886. \t\t\t\t</div>
  887. \t\t\t\t<div class=\"invalid-feedback\">
  888. \t\t\t\t\t{{ form_errors(form.isRegisterInfos,{\x27attr\x27:{\x27class\x27:\x27errors\x27}}) }}
  889. \t\t\t\t</div>
  890. \t\t\t</div>
  891. \t\t\t{{ form_row(form._token) }}
  892. \t\t\t{{ form_end(form, {\x27render_rest\x27:false }) }}
  893. \t\t</div>
  894. \t\t<!--Colonne gauche-->
  895. \t\t<div class=\"hidden\" id=\"template-add-child\">
  896. \t\t\t{{ _self.addChild(form.childrenForm.vars.prototype.children) }}
  897. \t\t</div>
  898. \t\t<!--Colonne droite-->
  899. \t\t<div class=\"flex flex-col lg:w-5/12 xl:w-4/12 my-16 lg:mt-0\">
  900. \t\t\t<!--Encadré lavande-->
  901. \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\">
  902. \t\t\t\t<div class=\"text-bleuindigo font-bold text-xl\">
  903. \t\t\t\t\tVous avez choisi l’offre
  904. \t\t\t\t</div>
  905. \t\t\t\t<div class=\"text-pervenche font-bold text-2xl sm:text-3xl\">
  906. \t\t\t\t\t{{ offer.title|upper }}
  907. \t\t\t\t</div>
  908. \t\t\t\t<div class=\"font-bold mt-2\">
  909. \t\t\t\t\t{{ offer.typeOffer.textPaid|raw }}
  910. \t\t\t\t</div>
  911. \t\t\t\t<div class=\"flex justify-between items-center mt-4\">
  912. \t\t\t\t\t<span class=\"flex text-bleuindigo font-bold\">
  913. \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\">&#9733</span> 4,6</span>+ 300 avis Trustpilot
  914. \t\t\t\t\t</span>
  915. \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>
  916. \t\t\t\t</div>
  917. \t\t\t\t{% if mode_free %}
  918. \t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
  919. \t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
  920. \t\t\t\t\t\t<span>0€</span>
  921. \t\t\t\t\t</div>
  922. \t\t\t\t\t<hr class=\"border-lavande border my-2\" />
  923. \t\t\t\t\t<div class=\"flex justify-between text-bleuindigo\">
  924. \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>
  925. \t\t\t\t\t\t<span class=\"font-bold\" id=\"som-toto\">{{ amount|number_format(2, \x27,\x27, \x27.\x27) }} €</span>
  926. \t\t\t\t\t</div>
  927. \t\t\t\t{% else %}
  928. \t\t\t\t\t<div class=\"flex justify-between text-franboise font-bold mt-4\">
  929. \t\t\t\t\t\t<span>Montant dû aujourd\x27hui</span>
  930. \t\t\t\t\t\t<span id=\"som-toto\">{{ amount|number_format(2, \x27,\x27, \x27.\x27) }} €</span>
  931. \t\t\t\t\t</div>
  932. \t\t\t\t{% endif %}
  933. \t\t\t\t{% if discount is not null %}
  934. \t\t\t\t\t<div class=\"text-bleuindigo mb-2\"><span class=\"font-bold me-1\">Promotion appliquée :</span> {{ discount.title }}</div>
  935. \t\t\t\t{% endif %}
  936. \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>
  937. \t\t\t</div>
  938. \t\t</div>
  939. \t</div>
  940. </section>
  941. {% endblock %}
  942. {% block javascripts %}
  943. \t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"
  944. \t\t\tintegrity=\"sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==\"
  945. \t\t\tcrossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  946. \t<script type=\"text/javascript\">
  947.         function addclone(userNbr){
  948.             for(var j=0;j<userNbr;j++){
  949.                 var clone = \$(\x27#template-add-child\x27).clone();
  950.                 var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  951.                 var cpt = nbr + 1;
  952.                 clone = clone.html().replaceAll(/__name__/g,nbr).replaceAll(/__enfantnumber__/g,cpt);
  953.                 \$(\x27#list-child\x27).append(clone);
  954.             }
  955.         }
  956.         \$(document).ready(function(){
  957. \t\t\t{% if not form.vars.submitted %}
  958.             addclone({{ nbr }});
  959. \t\t\t{% else %}
  960.             var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  961.             var i = 0;
  962.             \$(\x27#list-child\x27).find(\x27.block-form\x27).each(function(){
  963.                 i= i + 1;
  964.                 \$(this).find(\x27.number-child\x27).text(i);
  965.             })
  966. \t\t\t{% endif %}
  967.             // Au clique du bouton Ajouter un eleve
  968.             \$(\x27#addChildButton\x27).click(function(){
  969.                 addclone(1)
  970.             })
  971.         })
  972.         \$(document).on(\"click\",\".block-form .fa-times\",function(){
  973.             \$(this).parents(\x27.block-form\x27).remove();
  974.         })
  975.         \$(\x27#but-submit\x27).click(function(e){
  976.             e.preventDefault();
  977.             var nbr = \$(\x27#list-child\x27).find(\x27.block-form\x27).length;
  978.             \$(\x27.form-registration\x27).submit();
  979.         })
  980. \t\t\$(\x27#btn-form-login\x27).click(function(e){
  981.             e.preventDefault();
  982.             \$(\x27.form-login\x27).show();
  983.             \$(\x27.form-registration\x27).hide();
  984. \t\t})
  985. \t\t\$(\x27#btn-connexion\x27).click(function(e){
  986.             e.preventDefault();
  987.             var form = \$(\x27.form-login\x27);
  988.             var formData = new FormData(form[0]);
  989.             \$(\x27.u-spinner\x27).addClass(\x27open\x27);
  990.             \$.ajax({
  991.                 url: \"{{ path(\x27ajax_login\x27) }}\",
  992.                 type: \x27POST\x27,
  993.                 data: formData,
  994.                 processData: false,
  995.                 contentType: false,
  996. \t\t\t\tdataType: \x27json\x27,
  997.                 success: function (data) {
  998.                         window.location.reload();
  999. \t\t\t\t}
  1000.             })
  1001. \t\t})
  1002. \t</script>
  1003. {% endblock %}
  1004. ", "front/tunnel/step2a.html.twig", "/var/www/dashboard/templates/front/tunnel/step2a.html.twig");
  1005.     }
  1006. }