var/cache/dev/twig/ea/eacfc1681e8f7d9cd66c1f8c9c762cba.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* frontend/registration/register.html.twig */
  16. class __TwigTemplate_5d8fb472b5f8f87bb3817820a40d55fb extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'stylesheet' => [$this'block_stylesheet'],
  30.             'body' => [$this'block_body'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "base.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/registration/register.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/registration/register.html.twig"));
  45.         $this->parent $this->loadTemplate("base.html.twig""frontend/registration/register.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_title(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         // line 4
  64.         yield "    Register
  65. ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         yield from [];
  71.     }
  72.     // line 7
  73.     /**
  74.      * @return iterable<null|scalar|\Stringable>
  75.      */
  76.     public function block_stylesheet(array $context, array $blocks = []): iterable
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  83.         // line 8
  84.         yield "    <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css\" />
  85.     <style>
  86.         .image-container {
  87.             width: 100%;
  88.             height: 100%;
  89.             background-image: url(";
  90.         // line 13
  91.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/signupcage.b60947f4.svg"), "html"nulltrue);
  92.         yield ");
  93.             background-size: cover;
  94.             background-position: center;
  95.             display: flex;
  96.             justify-content: center;
  97.             align-items: center;
  98.         }
  99.        .mon-form > ul{
  100.             list-style: initial;
  101.             padding-left: 15px;
  102.         }
  103.         .mon-form > ul>li{
  104.             color: red;
  105.             font-weight: 700;
  106.         }
  107.     </style>
  108. ";
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.         yield from [];
  114.     }
  115.     // line 32
  116.     /**
  117.      * @return iterable<null|scalar|\Stringable>
  118.      */
  119.     public function block_body(array $context, array $blocks = []): iterable
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  126.         // line 33
  127.         yield "    <main>
  128.         <div class=\"container\">
  129.             <div class=\"row d-flex justify-content-center\">
  130.                 <div class=\"col-md-11 col-xxl-9 mt-5 mb-5\">
  131.                     <div class=\"card p-4\" style=\"box-shadow: 5px 5px 5px 3px #8a8a8a;\">
  132.                         <h3 class=\"\" style=\"color: #bd2879 !important; font-weight: 700\">Inscription</h3>
  133.                         <div class=\"row\">
  134.                             <div class=\"col-md-6 mon-form\">
  135.                                 ";
  136.         // line 41
  137.         yield         $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.'41$this->source); })()), 'form_start');
  138.         yield "
  139.                                     <div class=\"mb-3\">
  140.                                         ";
  141.         // line 43
  142.         yield $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.'43$this->source); })()), "lastname", [], "any"falsefalsefalse43), 'label');
  143.         yield "
  144.                                         ";
  145.         // line 44
  146.         yield $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.'44$this->source); })()), "lastname", [], "any"falsefalsefalse44), 'widget');
  147.         yield "
  148.                                         ";
  149.         // line 45
  150.         if ($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.'45$this->source); })()), "lastname", [], "any"falsefalsefalse45), 'errors')) {
  151.             // line 46
  152.             yield "                                            <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">";
  153.             yield $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.'46$this->source); })()), "lastname", [], "any"falsefalsefalse46), 'errors');
  154.             yield "</span>
  155.                                         ";
  156.         }
  157.         // line 48
  158.         yield "                                    </div>
  159.                                     <div class=\"mb-3\">
  160.                                         ";
  161.         // line 50
  162.         yield $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.'50$this->source); })()), "firstname", [], "any"falsefalsefalse50), 'label');
  163.         yield "
  164.                                         ";
  165.         // line 51
  166.         yield $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.'51$this->source); })()), "firstname", [], "any"falsefalsefalse51), 'widget');
  167.         yield "
  168.                                         ";
  169.         // line 52
  170.         if ($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.'52$this->source); })()), "firstname", [], "any"falsefalsefalse52), 'errors')) {
  171.             // line 53
  172.             yield "                                            <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">";
  173.             yield $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.'53$this->source); })()), "firstname", [], "any"falsefalsefalse53), 'errors');
  174.             yield "</span>
  175.                                         ";
  176.         }
  177.         // line 55
  178.         yield "                                    </div>
  179.                                     <div class=\"mb-3\">
  180.                                         ";
  181.         // line 57
  182.         yield $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.'57$this->source); })()), "email", [], "any"falsefalsefalse57), 'label');
  183.         yield "
  184.                                         ";
  185.         // line 58
  186.         yield $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.'58$this->source); })()), "email", [], "any"falsefalsefalse58), 'widget');
  187.         yield "
  188.                                         ";
  189.         // line 59
  190.         if ($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.'59$this->source); })()), "email", [], "any"falsefalsefalse59), 'errors')) {
  191.             // line 60
  192.             yield "                                            <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">";
  193.             yield $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.'60$this->source); })()), "email", [], "any"falsefalsefalse60), 'errors');
  194.             yield "</span>
  195.                                         ";
  196.         }
  197.         // line 62
  198.         yield "                                    </div>
  199.                                     <div class=\"mb-3 motDePasse\">
  200.                                         ";
  201.         // line 64
  202.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'64$this->source); })()), "password", [], "any"falsefalsefalse64), "first", [], "any"falsefalsefalse64), 'label');
  203.         yield "
  204.                                         ";
  205.         // line 65
  206.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'65$this->source); })()), "password", [], "any"falsefalsefalse65), "first", [], "any"falsefalsefalse65), 'widget', ["id" => "id_password"]);
  207.         yield "
  208.                                         <i class=\"bi bi-eye-slash\" id=\"togglePassword\" onclick=\"cacherMotDePasse()\" style=\"margin-right: 15px; margin-top: -50px; cursor: pointer; float: right; z-index: 10;\"></i>
  209.                                         ";
  210.         // line 67
  211.         if ($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'67$this->source); })()), "password", [], "any"falsefalsefalse67), "first", [], "any"falsefalsefalse67), 'errors')) {
  212.             // line 68
  213.             yield "                                            <span class=\"\" style=\"color: red !important; font-weight: 700\">";
  214.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'68$this->source); })()), "password", [], "any"falsefalsefalse68), "first", [], "any"falsefalsefalse68), 'errors');
  215.             yield "</span>
  216.                                         ";
  217.         }
  218.         // line 70
  219.         yield "                                    </div>
  220.                                     <div class=\"mb-3 motDePasse\">
  221.                                         ";
  222.         // line 72
  223.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'72$this->source); })()), "password", [], "any"falsefalsefalse72), "second", [], "any"falsefalsefalse72), 'label');
  224.         yield "
  225.                                         ";
  226.         // line 73
  227.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'73$this->source); })()), "password", [], "any"falsefalsefalse73), "second", [], "any"falsefalsefalse73), 'widget', ["id" => "id_password_password"]);
  228.         yield "
  229.                                         <i class=\"bi bi-eye-slash\" id=\"togglePasswordConfirm\" onclick=\"cacherMotDePasseConfirm()\" style=\"margin-right: 15px; margin-top: -34px; cursor: pointer; float: right; z-index: 10;\"></i>
  230.                                         ";
  231.         // line 75
  232.         if ($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'75$this->source); })()), "password", [], "any"falsefalsefalse75), "second", [], "any"falsefalsefalse75), 'errors')) {
  233.             // line 76
  234.             yield "                                            <div class=\"alert alert-danger\">";
  235.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'76$this->source); })()), "password", [], "any"falsefalsefalse76), "second", [], "any"falsefalsefalse76), 'errors');
  236.             yield "</div>
  237.                                         ";
  238.         }
  239.         // line 78
  240.         yield "                                    </div>
  241.                                     <button type=\"submit\" class=\"btn btn-success w-100 mb-3\">S'inscrire</button>
  242.                                 ";
  243.         // line 80
  244.         yield         $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.'80$this->source); })()), 'form_end');
  245.         yield "
  246.                                 <p>Déja inscrit ? <a href=\"#\">Creer un compte</a>.</p>
  247.                             </div>
  248.                             <div class=\"col-md-6\">
  249.                                 <div class=\"image-container\"></div>
  250.                             </div>
  251.                         </div>
  252.                     </div>
  253.                 </div>
  254.             </div>
  255.         </div>
  256.     </main>
  257.     <!--/main-->
  258.     <script>
  259.         // Récupérer les éléments HTML
  260.         const passwordInput = document.getElementById('id_password');
  261.         const togglePassword = document.getElementById('togglePassword');
  262.         const passwordInputConfirm = document.getElementById('id_password_password');
  263.         const togglePasswordConfirm = document.getElementById('togglePasswordConfirm');
  264.         // Ajouter un gestionnaire d'événement au clic sur l'icône d'œil
  265.         function cacherMotDePasse() {
  266.             // Vérifier le type de l'input
  267.             if (passwordInput.type === 'password') {
  268.                 // Si le type est \"password\", le changer en \"text\" pour afficher le mot de passe
  269.                 passwordInput.type = 'text';
  270.                 togglePassword.classList.remove('bi-eye-slash');
  271.                 togglePassword.classList.add('bi-eye');
  272.             } else {
  273.                 // Sinon, le changer en \"password\" pour masquer le mot de passe
  274.                 passwordInput.type = 'password';
  275.                 togglePassword.classList.remove('bi-eye');
  276.                 togglePassword.classList.add('bi-eye-slash');
  277.             }
  278.         }
  279.         function cacherMotDePasseConfirm() {
  280.             // Vérifier le type de l'input
  281.             if (passwordInputConfirm.type === 'password') {
  282.                 // Si le type est \"password\", le changer en \"text\" pour afficher le mot de passe
  283.                 passwordInputConfirm.type = 'text';
  284.                 togglePasswordConfirm.classList.remove('bi-eye-slash');
  285.                 togglePasswordConfirm.classList.add('bi-eye');
  286.             } else {
  287.                 // Sinon, le changer en \"password\" pour masquer le mot de passe
  288.                 passwordInputConfirm.type = 'password';
  289.                 togglePasswordConfirm.classList.remove('bi-eye');
  290.                 togglePasswordConfirm.classList.add('bi-eye-slash');
  291.             }
  292.         }
  293.     </script>
  294. ";
  295.         
  296.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  297.         
  298.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  299.         yield from [];
  300.     }
  301.     /**
  302.      * @codeCoverageIgnore
  303.      */
  304.     public function getTemplateName(): string
  305.     {
  306.         return "frontend/registration/register.html.twig";
  307.     }
  308.     /**
  309.      * @codeCoverageIgnore
  310.      */
  311.     public function isTraitable(): bool
  312.     {
  313.         return false;
  314.     }
  315.     /**
  316.      * @codeCoverageIgnore
  317.      */
  318.     public function getDebugInfo(): array
  319.     {
  320.         return array (  269 => 80,  265 => 78,  259 => 76,  257 => 75,  252 => 73,  248 => 72,  244 => 70,  238 => 68,  236 => 67,  231 => 65,  227 => 64,  223 => 62,  217 => 60,  215 => 59,  211 => 58,  207 => 57,  203 => 55,  197 => 53,  195 => 52,  191 => 51,  187 => 50,  183 => 48,  177 => 46,  175 => 45,  171 => 44,  167 => 43,  162 => 41,  152 => 33,  139 => 32,  110 => 13,  103 => 8,  90 => 7,  78 => 4,  65 => 3,  42 => 1,);
  321.     }
  322.     public function getSourceContext(): Source
  323.     {
  324.         return new Source("{% extends \"base.html.twig\" %}
  325. {% block title %}
  326.     Register
  327. {% endblock %}
  328. {% block stylesheet %}
  329.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css\" />
  330.     <style>
  331.         .image-container {
  332.             width: 100%;
  333.             height: 100%;
  334.             background-image: url({{ asset('build/images/signupcage.b60947f4.svg') }});
  335.             background-size: cover;
  336.             background-position: center;
  337.             display: flex;
  338.             justify-content: center;
  339.             align-items: center;
  340.         }
  341.        .mon-form > ul{
  342.             list-style: initial;
  343.             padding-left: 15px;
  344.         }
  345.         .mon-form > ul>li{
  346.             color: red;
  347.             font-weight: 700;
  348.         }
  349.     </style>
  350. {% endblock %}
  351. {% block body %}
  352.     <main>
  353.         <div class=\"container\">
  354.             <div class=\"row d-flex justify-content-center\">
  355.                 <div class=\"col-md-11 col-xxl-9 mt-5 mb-5\">
  356.                     <div class=\"card p-4\" style=\"box-shadow: 5px 5px 5px 3px #8a8a8a;\">
  357.                         <h3 class=\"\" style=\"color: #bd2879 !important; font-weight: 700\">Inscription</h3>
  358.                         <div class=\"row\">
  359.                             <div class=\"col-md-6 mon-form\">
  360.                                 {{ form_start(form)}}
  361.                                     <div class=\"mb-3\">
  362.                                         {{ form_label(form.lastname) }}
  363.                                         {{ form_widget(form.lastname) }}
  364.                                         {% if form_errors(form.lastname) %}
  365.                                             <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">{{ form_errors(form.lastname) }}</span>
  366.                                         {% endif %}
  367.                                     </div>
  368.                                     <div class=\"mb-3\">
  369.                                         {{ form_label(form.firstname) }}
  370.                                         {{ form_widget(form.firstname) }}
  371.                                         {% if form_errors(form.firstname) %}
  372.                                             <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">{{ form_errors(form.firstname) }}</span>
  373.                                         {% endif %}
  374.                                     </div>
  375.                                     <div class=\"mb-3\">
  376.                                         {{ form_label(form.email) }}
  377.                                         {{ form_widget(form.email) }}
  378.                                         {% if form_errors(form.email) %}
  379.                                             <span class=\"text-danger\" style=\"color: red !important; font-weight: 700\">{{ form_errors(form.email) }}</span>
  380.                                         {% endif %}
  381.                                     </div>
  382.                                     <div class=\"mb-3 motDePasse\">
  383.                                         {{ form_label(form.password.first) }}
  384.                                         {{ form_widget(form.password.first, {'id':'id_password'}) }}
  385.                                         <i class=\"bi bi-eye-slash\" id=\"togglePassword\" onclick=\"cacherMotDePasse()\" style=\"margin-right: 15px; margin-top: -50px; cursor: pointer; float: right; z-index: 10;\"></i>
  386.                                         {% if form_errors(form.password.first) %}
  387.                                             <span class=\"\" style=\"color: red !important; font-weight: 700\">{{ form_errors(form.password.first) }}</span>
  388.                                         {% endif %}
  389.                                     </div>
  390.                                     <div class=\"mb-3 motDePasse\">
  391.                                         {{ form_label(form.password.second) }}
  392.                                         {{ form_widget(form.password.second, {'id':'id_password_password'}) }}
  393.                                         <i class=\"bi bi-eye-slash\" id=\"togglePasswordConfirm\" onclick=\"cacherMotDePasseConfirm()\" style=\"margin-right: 15px; margin-top: -34px; cursor: pointer; float: right; z-index: 10;\"></i>
  394.                                         {% if form_errors(form.password.second) %}
  395.                                             <div class=\"alert alert-danger\">{{ form_errors(form.password.second) }}</div>
  396.                                         {% endif %}
  397.                                     </div>
  398.                                     <button type=\"submit\" class=\"btn btn-success w-100 mb-3\">S'inscrire</button>
  399.                                 {{ form_end(form) }}
  400.                                 <p>Déja inscrit ? <a href=\"#\">Creer un compte</a>.</p>
  401.                             </div>
  402.                             <div class=\"col-md-6\">
  403.                                 <div class=\"image-container\"></div>
  404.                             </div>
  405.                         </div>
  406.                     </div>
  407.                 </div>
  408.             </div>
  409.         </div>
  410.     </main>
  411.     <!--/main-->
  412.     <script>
  413.         // Récupérer les éléments HTML
  414.         const passwordInput = document.getElementById('id_password');
  415.         const togglePassword = document.getElementById('togglePassword');
  416.         const passwordInputConfirm = document.getElementById('id_password_password');
  417.         const togglePasswordConfirm = document.getElementById('togglePasswordConfirm');
  418.         // Ajouter un gestionnaire d'événement au clic sur l'icône d'œil
  419.         function cacherMotDePasse() {
  420.             // Vérifier le type de l'input
  421.             if (passwordInput.type === 'password') {
  422.                 // Si le type est \"password\", le changer en \"text\" pour afficher le mot de passe
  423.                 passwordInput.type = 'text';
  424.                 togglePassword.classList.remove('bi-eye-slash');
  425.                 togglePassword.classList.add('bi-eye');
  426.             } else {
  427.                 // Sinon, le changer en \"password\" pour masquer le mot de passe
  428.                 passwordInput.type = 'password';
  429.                 togglePassword.classList.remove('bi-eye');
  430.                 togglePassword.classList.add('bi-eye-slash');
  431.             }
  432.         }
  433.         function cacherMotDePasseConfirm() {
  434.             // Vérifier le type de l'input
  435.             if (passwordInputConfirm.type === 'password') {
  436.                 // Si le type est \"password\", le changer en \"text\" pour afficher le mot de passe
  437.                 passwordInputConfirm.type = 'text';
  438.                 togglePasswordConfirm.classList.remove('bi-eye-slash');
  439.                 togglePasswordConfirm.classList.add('bi-eye');
  440.             } else {
  441.                 // Sinon, le changer en \"password\" pour masquer le mot de passe
  442.                 passwordInputConfirm.type = 'password';
  443.                 togglePasswordConfirm.classList.remove('bi-eye');
  444.                 togglePasswordConfirm.classList.add('bi-eye-slash');
  445.             }
  446.         }
  447.     </script>
  448. {% endblock %}""frontend/registration/register.html.twig""/home/net/symfony/vhosts/test-ayilaa-frontend/templates/frontend/registration/register.html.twig");
  449.     }
  450. }