var/cache/dev/twig/5f/5f95a625d8b9526e0ddc97d4b8fc25dd.php line 50

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig */
  14. class __TwigTemplate_002c9ba47486837dd6a9ce03ec486512 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig"));
  40.         $this->parent $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 2
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 3
  56.         echo "\t";
  57.         $this->displayParentBlock("stylesheets"$context$blocks);
  58.         echo "
  59. \t
  60. \t <style>
  61.  div#popup-reg {
  62.     display: none;
  63. }
  64.   .popup {
  65.     position: fixed;
  66.     top: 0;
  67.     left: 0;
  68.     width: 100%;
  69.     height: 100%;
  70.     background: rgba(0, 0, 0, 0.6);
  71.     display: flex;
  72.     justify-content: center;
  73.     align-items: center;
  74. }
  75. .popup-content-2 {
  76.     background: #fff;
  77.     padding: 20px;
  78.     border-radius: 5px;
  79.     text-align: center;
  80. }
  81. .popup-actions button {
  82.     margin: 10px;
  83.     padding: 10px 20px;
  84.     cursor: pointer;
  85. }
  86.   </style>
  87.   
  88.   <meta name=\"turbo-visit-control\" content=\"reload\">
  89.   ";
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     // line 38
  96.     public function block_body($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  103.         // line 39
  104.         echo "
  105.  
  106.         <!-- Begin Body Wrapper -->
  107.         <div class=\"body-wrapper mt-4 mb-4\">
  108.   
  109.             
  110.             <!-- Begin Se connecter Content Area -->
  111.             <div class=\"page-section mb-60\">
  112.                 <div class=\"container  col-sm-9\" style=\"padding: 23px 51px !important\" >
  113.                     <div class=\"row  col-sm-12 \" >
  114.                         
  115.                   <div class=\"col-sm-12 col-md-12 col-lg-12 col-xs-12\">
  116.                             <div class=\"p-4\">
  117.                             
  118.                             <h4 class=\"login-title\" style=\"text-align: center;\" >Inscrivez-vous </h4>
  119.                              <p style=\"text-align: center;\">
  120.                                Rejoignez Cowork&Live et accédez à un espace de coworking inspirant. Remplissez le formulaire ci-dessous pour devenir membre de notre communauté dynamique.
  121.                                Nous avons hâte de vous accueillir !
  122.                               
  123.                                 </p>
  124.                             
  125.                             <br> 
  126.                              
  127.                         
  128.                                      <div id=\"registerCustomer\" class=\"registerForm\">
  129.                                         ";
  130.         // line 72
  131.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'72$this->source); })()), 'form_start', ["attr" => ["data-turbo" => "false"]]);
  132.         echo "
  133.                                         <div class=\"row\">
  134.                              <div class=\"checkout-form-list col-lg-12  col-sm-12\">
  135.                                 <label>Choisissez un Compte à créer <span class=\"required\">*</span></label>
  136.                                <select id=\"select-account\"  name=\"type\"   class=\"form-select\" >
  137.                                 <option value=\"Particulier\" >Compte Particulier</option>
  138.                                 <option value=\"Entreprise\" >Compte Entreprise</option>
  139.                             
  140.                             </select>
  141.                               </div>
  142.                                         <div class=\"col-12\" >
  143.                                                 <div class=\"checkout-form-list\">
  144.                                                     
  145.                                                       ";
  146.         // line 88
  147.         echo "                                                   </div>
  148.                                                
  149.                                                 </div>
  150.                                                <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  151.                                                 <div class=\"checkout-form-list\">
  152.                                                     <label>Raison sociale de l’entreprise <span class=\"required\">*</span> </label>
  153.                                                  ";
  154.         // line 94
  155.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'94$this->source); })()), "companyName", [], "any"falsefalsefalse94), 'widget');
  156.         echo "
  157.                                                 </div> 
  158.                                                 
  159.                                             </div>
  160.                                           
  161.                                             <div class=\"col-lg-6  col-sm-12\" >
  162.                                                 <div class=\"checkout-form-list\">
  163.                                                     <label>Nom  <span class=\"registerEntreprice d-none\">du gestionnaire  de réservation  </span> <span class=\"required\">*</span></label>
  164.                                                      ";
  165.         // line 102
  166.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'102$this->source); })()), "lastName", [], "any"falsefalsefalse102), 'widget');
  167.         echo "
  168.                                                    </div>
  169.                                                </div>
  170.                                              
  171.                                              
  172.                                                <div class=\"col-lg-6  col-sm-12\" >
  173.                                                 <div class=\"checkout-form-list\">
  174.                                                     <label>Prénom <span class=\"registerEntreprice d-none\" >du gestionnaire  de réservation  </span> <span class=\"required\">*</span></label>
  175.                                                      ";
  176.         // line 110
  177.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'110$this->source); })()), "firstName", [], "any"falsefalsefalse110), 'widget');
  178.         echo "
  179.                                                    </div>
  180.                                                
  181.                                                 </div>
  182.                                            
  183.                                             
  184.                                        
  185.                                              <div class=\"col-lg-6  col-sm-12\" >
  186.                                                   <div class=\"checkout-form-list\">
  187.                                                     <label>Genre <span class=\"required\">*</span></label>
  188.                                                      ";
  189.         // line 121
  190.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'121$this->source); })()), "gender", [], "any"falsefalsefalse121), 'widget');
  191.         echo 
  192.                                                    </div>
  193.                                                  
  194.                                                  
  195.                                                  </div>
  196.                                         
  197.                                                   
  198.                                             <div class=\"col-lg-6  col-sm-12\" >
  199.                                                     <div class=\"checkout-form-list\">
  200.                                                     <label>Adresse <span class=\"required\">*</span></label>
  201.                                                      ";
  202.         // line 131
  203.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'131$this->source); })()), "address", [], "any"falsefalsefalse131), 'widget');
  204.         echo "
  205.                                                       
  206.                                                    </div>
  207.                                                </div>
  208.                                           
  209.                                             <div class=\"col-lg-6  col-sm-12\" >";
  210.         // line 137
  211.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'137$this->source); })()), "addressIndication", [], "any"falsefalsefalse137), 'row');
  212.         echo "</div>
  213.                                               <div class=\"col-lg-6  col-sm-12\" >
  214.                                                 <div class=\"checkout-form-list\">
  215.                                                     <label>Ville <span class=\"required\">*</span></label>
  216.                                                     ";
  217.         // line 142
  218.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'142$this->source); })()), "city", [], "any"falsefalsefalse142), 'errors');
  219.         echo "
  220.                                                      ";
  221.         // line 143
  222.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'143$this->source); })()), "city", [], "any"falsefalsefalse143), 'widget');
  223.         echo "
  224.                                                    </div>
  225.                                                </div>
  226.                                             <div class=\"col-lg-6  col-sm-12\" >
  227.                                                   <div class=\"checkout-form-list\">
  228.                                                     <label>Téléphone <span class=\"required\">*</span></label>
  229.                                                     ";
  230.         // line 150
  231.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'150$this->source); })()), "phone", [], "any"falsefalsefalse150), 'errors');
  232.         echo "
  233.                                                      ";
  234.         // line 151
  235.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'151$this->source); })()), "phone", [], "any"falsefalsefalse151), 'widget');
  236.         echo "
  237.                                                    </div>
  238.                                             
  239.                                                 
  240.                                                 </div>
  241.                                              <div class=\"col-lg-6  col-sm-12\" >";
  242.         // line 156
  243.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'156$this->source); })()), "dateOfBirth", [], "any"falsefalsefalse156), 'row');
  244.         echo "</div>
  245.                                             
  246.                                             
  247.                                              <div class=\"col-lg-6  col-sm-12\" >
  248.                                                   <div class=\"checkout-form-list\">
  249.                                                     <label>Code Postal <span class=\"required\">*</span></label>
  250.                                                     ";
  251.         // line 163
  252.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'163$this->source); })()), "postCode", [], "any"falsefalsefalse163), 'errors');
  253.         echo "
  254.                                                      ";
  255.         // line 164
  256.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'164$this->source); })()), "postCode", [], "any"falsefalsefalse164), 'widget');
  257.         echo "
  258.                                                    </div>
  259.                                             
  260.                                                 
  261.                                                 </div>
  262.                                             
  263.                                             
  264.                                              
  265.                                              
  266.                                               <div class=\"col-lg-6  col-sm-12   \" >
  267.                                                   <div class=\"checkout-form-list\">
  268.                                                     <label>Image CIN Recto <span class=\"registerEntreprice d-none\" >du gérant </span>  <span class=\"required\">*</span></label>
  269.                                                     
  270.                                                      ";
  271.         // line 179
  272.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'179$this->source); })()), "imageCinRecto", [], "any"falsefalsefalse179), 'widget');
  273.         echo "
  274.                                                    </div>
  275.                                             
  276.                                                 
  277.                                                 </div>
  278.                                               <div class=\"col-lg-6  col-sm-12   \" >
  279.                                                   <div class=\"checkout-form-list\">
  280.                                                     <label>Image CIN Verso <span class=\"registerEntreprice d-none\" >du gérant </span>   <span class=\"required\">*</span></label>
  281.                                                     
  282.                                                      ";
  283.         // line 190
  284.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'190$this->source); })()), "imageCinVerso", [], "any"falsefalsefalse190), 'widget');
  285.         echo "
  286.                                                    </div>
  287.                                             
  288.                                                 
  289.                                                 </div>
  290.                                              <div class=\"col-lg-6  col-sm-12 \" >
  291.                                                   <div class=\"checkout-form-list\">
  292.                                                     <label>Secteur d’activité  <span class=\"required\"></span></label>
  293.                                                     
  294.                                                      ";
  295.         // line 201
  296.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'201$this->source); })()), "sector_activity", [], "any"falsefalsefalse201), 'widget');
  297.         echo "
  298.                                                    </div>
  299.                                             
  300.                                                 
  301.                                                 </div>
  302.                                                   <div class=\"col-lg-6  col-sm-12 \" >
  303.                                                   <div class=\"checkout-form-list\">
  304.                                                     <label>Poste  <span class=\"required\"></span></label>
  305.                                                     
  306.                                                      ";
  307.         // line 212
  308.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'212$this->source); })()), "job", [], "any"falsefalsefalse212), 'widget');
  309.         echo "
  310.                                                    </div>
  311.                                             
  312.                                                 
  313.                                                 </div>
  314.                                 
  315.                                            
  316.                                             <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  317.                                                   <div class=\"checkout-form-list\">
  318.                                                     <label>Registre du Commerce <span class=\"required\">*</span></label>
  319.                                                     
  320.                                                      ";
  321.         // line 224
  322.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'224$this->source); })()), "imageRCFile", [], "any"falsefalsefalse224), 'widget');
  323.         echo "
  324.                                                    </div>
  325.                                             
  326.                                                 
  327.                                                 </div>
  328.                                                 <div class=\"col-lg-6  col-sm-12  d-none\" >
  329.                                                   <div class=\"checkout-form-list\">
  330.                                                     <label>Identifiant Fiscale <span class=\"required\"></span></label>
  331.                                                     
  332.                                                      ";
  333.         // line 235
  334.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'235$this->source); })()), "imageIFFile", [], "any"falsefalsefalse235), 'widget');
  335.         echo "
  336.                                                    </div>
  337.                                             
  338.                                                 
  339.                                                 </div>
  340.                                                 
  341.                                           <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  342.                                               <div class=\"checkout-form-list\">
  343.                                                     <label>ICE <span class=\"required\">*</span>  </label>
  344.                                                      ";
  345.         // line 245
  346.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'245$this->source); })()), "Ice", [], "any"falsefalsefalse245), 'widget');
  347.         echo "
  348.                                                    </div>
  349.                                                
  350.                                                 </div>
  351.                                                  <div class=\"col-lg-6  col-sm-12\" >
  352.                                                 <div class=\"checkout-form-list\">
  353.                                                     <label>Email <span class=\"required\">*</span></label>
  354.                                                     ";
  355.         // line 253
  356.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'253$this->source); })()), "email", [], "any"falsefalsefalse253), 'errors');
  357.         echo "
  358.                                                      ";
  359.         // line 254
  360.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'254$this->source); })()), "email", [], "any"falsefalsefalse254), 'widget');
  361.         echo "
  362.                                                    </div>
  363.                                                </div>
  364.                                             <div class=\"col-lg-6  col-sm-12\" >
  365.                                                 <div class=\"checkout-form-list\">
  366.                                                     <label>Mot de passe <span class=\"required\">*</span></label>
  367.                                                      ";
  368.         // line 260
  369.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'260$this->source); })()), "user", [], "any"falsefalsefalse260), "password", [], "any"falsefalsefalse260), 'widget');
  370.         echo "
  371.                                                    </div>
  372.                                                 </div> 
  373.                                                    <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  374.                                               <div class=\"checkout-form-list\"> 
  375.                                                <label>Contact de facturation <span class=\"required\">*</span></label>
  376.                                                       <select id=\"select-contact\"  name=\"\" class=\"form-select\">
  377.                                                         <option value=\"moi\">Moi-même </option>
  378.                                                         <option value=\"Autre\">Autre</option>
  379.                                                         </select>
  380.                                                   </div>
  381.                                                </div>
  382.                                                 <div class=\"col-lg-6  col-sm-12 registerContact  d-none\" >
  383.                                               <div class=\"checkout-form-list\">
  384.                                                     <label>Raison sociale </label>
  385.                                                      ";
  386.         // line 276
  387.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'276$this->source); })()), "Raison_sociale", [], "any"falsefalsefalse276), 'widget');
  388.         echo "
  389.                                                    </div>
  390.                                                
  391.                                                 </div>
  392.                                                 
  393.                                                  <div class=\"col-lg-6  col-sm-12  registerContact d-none\" >
  394.                                               <div class=\"checkout-form-list\">
  395.                                                     <label>Adresse </label>
  396.                                                      ";
  397.         // line 284
  398.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'284$this->source); })()), "Adresse", [], "any"falsefalsefalse284), 'widget');
  399.         echo "
  400.                                                    </div>
  401.                                                
  402.                                                 </div>
  403.                                         
  404.                                              
  405.                                              
  406.                                           
  407.                                             <div class=\"col-lg-12  col-sm-12\">
  408.                                             <div class=\"checkout-form-list\">
  409.                                                     <label>Souhaitez-vous recevoir nos offres par mail ? (Promotions, événements, ...)  </label>
  410.                                                      ";
  411.         // line 296
  412.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'296$this->source); })()), "canReceiveMails", [], "any"falsefalsefalse296), 'widget');
  413.         echo "
  414.                                                 </div>
  415.                                                 
  416.                                                   <div class=\"checkout-form-list\">
  417.                                                     <label>Rejoignez la communauté Cowork&live ! Vos informations (nom, prénom, secteur d’activité, poste et adresse e-mail) seront partagées avec les autres membres pour favoriser les échanges et dynamiser votre activité.
  418.                                                        ";
  419.         // line 301
  420.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'301$this->source); })()), "can_accept_community", [], "any"falsefalsefalse301), 'widget');
  421.         echo "
  422.                                                 </div>
  423.                                                   
  424.                                                               <div class=\"col-lg-6  col-sm-12\" >
  425.                                          <div class=\"checkout-form-list\">
  426.                                                <label>   <input type=\"checkbox\" id=\"registration_customer_form_agreeTerms\" name=\"registration_customer_form[agreeTerms]\" required=\"required\" class=\"form-check-input\" value=\"1\">  Je soussigne avoir lu et approuvé les <small><a href=\"";
  427.         // line 306
  428.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/cgvVFinale.docx.pdf"), "html"nulltrue);
  429.         echo "\" target=\"_blank\">CGV</a>  et  <a href=\"";
  430.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/GRILLETARIFAIREVFinale.pdf"), "html"nulltrue);
  431.         echo "\" target=\"_blank\">LA GRILLE TARIFAIRE *</a> </small>  <span class=\"required\">*</span><br>
  432.                                                 </label>
  433.                                                     
  434.                                                  
  435.                                              <div class=\"signature-pad\" >
  436.                                               <canvas class=\"signature-field\" required  style=\"box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;width:75%\"></canvas>
  437.                                           </div>
  438.                                           <button id=\"clear-signature\" class=\"btn btn-dark mt-1\" style=\"font-size: 11px;\">Effacer</button>
  439.                                                    </div>
  440.                                            
  441.                                            
  442.                       <!--<div class=\"checkout-form-list\">
  443.                                                     <label>Code Parrainage </label>
  444.                                                      ";
  445.         // line 319
  446.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'319$this->source); })()), "sponsorshipCode", [], "any"falsefalsefalse319), 'widget');
  447.         echo "
  448.                                                 </div>-->
  449.                                                 
  450.                                             </div>
  451.                                          
  452.                                             
  453.                                            
  454.                                                 
  455.                                                 <!--<div class=\"checkout-form-list\">
  456.                                                     <label>Vous souhaitez recevoir des nouvelles par SMS ? </label>
  457.                                                      ";
  458.         // line 329
  459.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'329$this->source); })()), "canReceiveSms", [], "any"falsefalsefalse329), 'widget');
  460.         echo "
  461.                                                 </div>-->
  462.                                                   <!-- <div class=\"checkout-form-list\">
  463.                                                   
  464.                                                     <label> ";
  465.         // line 333
  466.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'333$this->source); })()), "agreeTerms", [], "any"falsefalsefalse333), 'widget');
  467.         echo "   </label>
  468.                                                     
  469.                                                    </div>-->
  470.                                                    <div class=\"checkout-form-list\" style=\"text-align: center;\">
  471.                                                     <label>Déja inscris?  <a href=\"";
  472.         // line 338
  473.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_register");
  474.         echo "\"> Connectez-vous!</a>   </label>
  475.                                                     
  476.                                                    </div>
  477.                                                    
  478.                                                </div>
  479.                                             
  480.                                         </div>
  481.                                         ";
  482.         // line 353
  483.         echo "
  484.                                         ";
  485.         // line 354
  486.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'354$this->source); })()), 'rest');
  487.         echo "
  488.                                             <div class=\"text-center\">
  489.                                             <button  type=\"submit\" class=\"save-button btn btn-dark mt-0\" id=\"submitForm\" style=\"text-align: center;\">Créer mon compte !</button>
  490.                                             </div>
  491.                                             
  492.                                             <!-- Popup -->
  493.                                         <div id=\"popupCommunity\" class=\"popup\" style=\"display: none;\">
  494.                                             <div class=\"popup-content-2 checkout-form-list  d-flex flex-column \">
  495.                                                  <div>
  496.                                                     <label class=\"mt-4 mb-4\">
  497.                                                   Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.
  498.                                                   </label>
  499.                                                   </div>
  500.                                                 <div class=\"popup-actions\">
  501.                                                     <button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"acceptCommunity\">Oui j’accepte</button>
  502.                                                     <button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"proceedWithoutCommunity\">Poursuivre sans accepter</button>
  503.                                                 </div>
  504.                                             </div>
  505.                                         </div>
  506.                                         
  507.                                         ";
  508.         // line 375
  509.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationCustomerForm"]) || array_key_exists("registrationCustomerForm"$context) ? $context["registrationCustomerForm"] : (function () { throw new RuntimeError('Variable "registrationCustomerForm" does not exist.'375$this->source); })()), 'form_end');
  510.         echo "
  511.                                             </div>
  512.  
  513.                                                    
  514.                             </div>
  515.                             
  516.                         </div>
  517.                     </div>
  518.                 </div>
  519.             </div>
  520.             <!-- Se connecter Content Area End Here -->
  521.         </div>
  522.         <!-- Body Wrapper End Here -->
  523. ";
  524.         
  525.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  526.         
  527.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  528.     }
  529.     // line 396
  530.     public function block_javascripts($context, array $blocks = [])
  531.     {
  532.         $macros $this->macros;
  533.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  534.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  535.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  536.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  537.         // line 397
  538.         echo "
  539. ";
  540.         // line 398
  541.         $this->displayParentBlock("javascripts"$context$blocks);
  542.         echo "
  543.   <script src=\"https://cdnjs.cloudflare.com/ajax/libs/signature_pad/1.3.4/signature_pad.js\"></script>
  544.  <script>
  545.  document.addEventListener(\"DOMContentLoaded\", function() {
  546.     var canvas = document.querySelector(\".signature-field\");
  547.     var form = document.querySelector(\"form\");
  548.     form.addEventListener(\"submit\", function(event) {
  549.         if (!isCanvasEmpty(canvas)) {
  550.             // Signature effectuée, le formulaire peut être soumis
  551.             return true;
  552.         } else {
  553.             // La signature est manquante, empêche la soumission du formulaire
  554.             event.preventDefault();
  555.             canvas.classList.add(\"empty\");
  556.             alert(\"Veuillez signer avant de soumettre le formulaire.\");
  557.             return false;
  558.         }
  559.     });
  560.     canvas.addEventListener(\"input\", function() {
  561.         if (!isCanvasEmpty(canvas)) {
  562.             canvas.classList.remove(\"empty\"); // Supprime la classe \"empty\" si le canvas n'est plus vide
  563.         }
  564.     });
  565.     function isCanvasEmpty(canvas) {
  566.         var ctx = canvas.getContext(\"2d\");
  567.         var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
  568.         for (var i = 0; i < imageData.data.length; i++) {
  569.             if (imageData.data[i] !== 0) {
  570.                 return false;
  571.             }
  572.         }
  573.         return true;
  574.     }
  575. });
  576.         // Initialiser la bibliothèque de signature
  577.         var canvas = document.querySelector('.signature-field');
  578.         var signaturePad = new SignaturePad(canvas);
  579.             document.getElementById('clear-signature').addEventListener('click', function (event) {
  580.         event.preventDefault(); // Empêche le comportement par défaut du bouton
  581.         signaturePad.clear();
  582.     });
  583.     
  584.     
  585.   </script>
  586. <script>
  587. function isMobileDevice() {
  588.   return /Mobi/i.test(navigator.userAgent);
  589. }
  590.   function isAndroid() {
  591.   return /Android/i.test(navigator.userAgent);
  592. }
  593. function isiOS() {
  594.   return /iPhone|iPad|iPod/i.test(navigator.userAgent);
  595. }
  596. // Usage
  597. ";
  598.         // line 465
  599.         if (array_key_exists("order"$context)) {
  600.             // line 466
  601.             echo "
  602. ";
  603.             // line 467
  604.             if ((twig_get_attribute($this->env$this->source, (isset($context["order"]) || array_key_exists("order"$context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.'467$this->source); })()), "source", [], "any"falsefalsefalse467) == "mobile")) {
  605.                 // line 468
  606.                 echo "if (isMobileDevice()) {
  607. // Example usage
  608. if (isAndroid()) {
  609.    window.location.href = \"";
  610.                 // line 475
  611.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'475$this->source); })()), "get", [], "any"falsefalsefalse475), "mobileAppSchemeAndroid", [], "any"falsefalsefalse475), "html"nulltrue);
  612.                 echo "?path=/myaccount/successUpdatePassword\";
  613.   window.close();
  614. } else if (isiOS()) {
  615.    window.location.href = \"";
  616.                 // line 478
  617.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'478$this->source); })()), "get", [], "any"falsefalsefalse478), "mobileAppSchemeIOS", [], "any"falsefalsefalse478), "html"nulltrue);
  618.                 echo "?path=/myaccount/successUpdatePassword\";
  619.   window.close();
  620. }
  621.  
  622. ";
  623.             }
  624.             // line 486
  625.             echo "
  626. ";
  627.         }
  628.         // line 488
  629.         echo "
  630. </script>
  631. <script>
  632.     \$(document).ready(function()
  633.     {
  634.         
  635.         const checkbox = \$(\"#registration_customer_form_can_accept_community\");
  636.     const popup = \$(\"#popupCommunity\");
  637.     const form = \$(\"form[name='registration_customer_form']\");
  638.     const canvas = \$(\".signature-field\")[0]; // Récupère le canvas en jQuery
  639.     
  640.         // Fonction pour vérifier si la signature est vide
  641.         function isCanvasEmpty(canvas) {
  642.             const context = canvas.getContext(\"2d\");
  643.             const pixelBuffer = new Uint32Array(
  644.                 context.getImageData(0, 0, canvas.width, canvas.height).data.buffer
  645.             );
  646.             return !pixelBuffer.some(color => color !== 0);
  647.         }
  648.     
  649.         // Gestion du clic sur le bouton Soumettre
  650.         \$(\"#submitForm\").on(\"click\", function (e) {
  651.             e.preventDefault(); // Empêche la soumission par défaut
  652.     
  653.             // Vérifier si le formulaire est valide
  654.             if (!form[0].checkValidity()) {
  655.                 form[0].reportValidity(); // Affiche les messages d'erreur HTML5
  656.                 return; // Arrête l'exécution si le formulaire est invalide
  657.             }
  658.     
  659.     
  660.             // Vérifier si la signature est manquante
  661.             if (isCanvasEmpty(canvas)) {
  662.                 alert(\"Veuillez signer avant de soumettre le formulaire.\");
  663.                 \$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreur
  664.                 return; // Arrête l'exécution si la signature est manquante
  665.             }
  666.     
  667.             // Si le formulaire est valide, vérifier la case can_accept_community
  668.             if (!checkbox.is(\":checked\")) {
  669.                 popup.show(); // Afficher le popup si la case n'est pas cochée
  670.             } else {
  671.                 form.submit(); // Soumettre directement si la case est cochée
  672.             }
  673.         });
  674.     
  675.         // Gestion du bouton \"Oui j'accepte\"
  676.         \$(\"#acceptCommunity\").on(\"click\", function () {
  677.             checkbox.prop(\"checked\", true); // Cocher la case
  678.             popup.hide(); // Masquer le popup
  679.             form.submit(); // Soumettre le formulaire
  680.         });
  681.     
  682.         // Gestion du bouton \"Poursuivre sans accepter\"
  683.         \$(\"#proceedWithoutCommunity\").on(\"click\", function () {
  684.             popup.hide(); // Masquer le popup
  685.             form.submit(); // Soumettre le formulaire sans cocher la case
  686.         });
  687.   
  688.         \$(\"#select-account\").change(function(){
  689.             var selectedAccount = \$(this).val();
  690.             //alert(selectedAccount);
  691.        if(selectedAccount == \"Entreprise\"){
  692.            
  693.               \$(\".registerEntreprice\").removeClass(\"d-none\");
  694.                \$(\".registerParticulier\").addClass(\"d-none\");
  695.         }else if(selectedAccount == \"Particulier\"){
  696.            \$(\".registerParticulier\").removeClass(\"d-none\");
  697.          \$(\".registerEntreprice\").addClass(\"d-none\");
  698.         }
  699.              
  700.             
  701.         });
  702.         
  703.          \$(\"#select-contact\").change(function(){
  704.              var selected = \$(this).val();
  705.                if(selected == \"Autre\"){
  706.                \$(\".registerContact\").removeClass(\"d-none\");
  707.               
  708.                }else {
  709.                  \$(\".registerContact\").addClass(\"d-none\");
  710.               }
  711.        
  712.               });
  713.               
  714.     });
  715. </script>
  716. ";
  717.         
  718.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  719.         
  720.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  721.     }
  722.     public function getTemplateName()
  723.     {
  724.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig";
  725.     }
  726.     public function isTraitable()
  727.     {
  728.         return false;
  729.     }
  730.     public function getDebugInfo()
  731.     {
  732.         return array (  714 => 488,  710 => 486,  699 => 478,  693 => 475,  684 => 468,  682 => 467,  679 => 466,  677 => 465,  607 => 398,  604 => 397,  594 => 396,  564 => 375,  540 => 354,  537 => 353,  526 => 338,  518 => 333,  511 => 329,  498 => 319,  480 => 306,  472 => 301,  464 => 296,  449 => 284,  438 => 276,  419 => 260,  410 => 254,  406 => 253,  395 => 245,  382 => 235,  368 => 224,  353 => 212,  339 => 201,  325 => 190,  311 => 179,  293 => 164,  289 => 163,  279 => 156,  271 => 151,  267 => 150,  257 => 143,  253 => 142,  245 => 137,  236 => 131,  223 => 121,  209 => 110,  198 => 102,  187 => 94,  179 => 88,  161 => 72,  126 => 39,  116 => 38,  70 => 3,  60 => 2,  37 => 1,);
  733.     }
  734.     public function getSourceContext()
  735.     {
  736.         return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}
  737. {% block stylesheets %}
  738. \t{{parent()}}
  739. \t
  740. \t <style>
  741.  div#popup-reg {
  742.     display: none;
  743. }
  744.   .popup {
  745.     position: fixed;
  746.     top: 0;
  747.     left: 0;
  748.     width: 100%;
  749.     height: 100%;
  750.     background: rgba(0, 0, 0, 0.6);
  751.     display: flex;
  752.     justify-content: center;
  753.     align-items: center;
  754. }
  755. .popup-content-2 {
  756.     background: #fff;
  757.     padding: 20px;
  758.     border-radius: 5px;
  759.     text-align: center;
  760. }
  761. .popup-actions button {
  762.     margin: 10px;
  763.     padding: 10px 20px;
  764.     cursor: pointer;
  765. }
  766.   </style>
  767.   
  768.   <meta name=\"turbo-visit-control\" content=\"reload\">
  769.   {% endblock   %}
  770. {% block body %}
  771.  
  772.         <!-- Begin Body Wrapper -->
  773.         <div class=\"body-wrapper mt-4 mb-4\">
  774.   
  775.             
  776.             <!-- Begin Se connecter Content Area -->
  777.             <div class=\"page-section mb-60\">
  778.                 <div class=\"container  col-sm-9\" style=\"padding: 23px 51px !important\" >
  779.                     <div class=\"row  col-sm-12 \" >
  780.                         
  781.                   <div class=\"col-sm-12 col-md-12 col-lg-12 col-xs-12\">
  782.                             <div class=\"p-4\">
  783.                             
  784.                             <h4 class=\"login-title\" style=\"text-align: center;\" >Inscrivez-vous </h4>
  785.                              <p style=\"text-align: center;\">
  786.                                Rejoignez Cowork&Live et accédez à un espace de coworking inspirant. Remplissez le formulaire ci-dessous pour devenir membre de notre communauté dynamique.
  787.                                Nous avons hâte de vous accueillir !
  788.                               
  789.                                 </p>
  790.                             
  791.                             <br> 
  792.                              
  793.                         
  794.                                      <div id=\"registerCustomer\" class=\"registerForm\">
  795.                                         {{ form_start(registrationCustomerForm,{attr:{\"data-turbo\":\"false\"}}) }}
  796.                                         <div class=\"row\">
  797.                              <div class=\"checkout-form-list col-lg-12  col-sm-12\">
  798.                                 <label>Choisissez un Compte à créer <span class=\"required\">*</span></label>
  799.                                <select id=\"select-account\"  name=\"type\"   class=\"form-select\" >
  800.                                 <option value=\"Particulier\" >Compte Particulier</option>
  801.                                 <option value=\"Entreprise\" >Compte Entreprise</option>
  802.                             
  803.                             </select>
  804.                               </div>
  805.                                         <div class=\"col-12\" >
  806.                                                 <div class=\"checkout-form-list\">
  807.                                                     
  808.                                                       {#{{ form_widget(registrationCustomerForm.customerGroup) }}#}
  809.                                                    </div>
  810.                                                
  811.                                                 </div>
  812.                                                <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  813.                                                 <div class=\"checkout-form-list\">
  814.                                                     <label>Raison sociale de l’entreprise <span class=\"required\">*</span> </label>
  815.                                                  {{ form_widget(registrationCustomerForm.companyName) }}
  816.                                                 </div> 
  817.                                                 
  818.                                             </div>
  819.                                           
  820.                                             <div class=\"col-lg-6  col-sm-12\" >
  821.                                                 <div class=\"checkout-form-list\">
  822.                                                     <label>Nom  <span class=\"registerEntreprice d-none\">du gestionnaire  de réservation  </span> <span class=\"required\">*</span></label>
  823.                                                      {{ form_widget(registrationCustomerForm.lastName) }}
  824.                                                    </div>
  825.                                                </div>
  826.                                              
  827.                                              
  828.                                                <div class=\"col-lg-6  col-sm-12\" >
  829.                                                 <div class=\"checkout-form-list\">
  830.                                                     <label>Prénom <span class=\"registerEntreprice d-none\" >du gestionnaire  de réservation  </span> <span class=\"required\">*</span></label>
  831.                                                      {{ form_widget(registrationCustomerForm.firstName) }}
  832.                                                    </div>
  833.                                                
  834.                                                 </div>
  835.                                            
  836.                                             
  837.                                        
  838.                                              <div class=\"col-lg-6  col-sm-12\" >
  839.                                                   <div class=\"checkout-form-list\">
  840.                                                     <label>Genre <span class=\"required\">*</span></label>
  841.                                                      {{ form_widget(registrationCustomerForm.gender) }} 
  842.                                                    </div>
  843.                                                  
  844.                                                  
  845.                                                  </div>
  846.                                         
  847.                                                   
  848.                                             <div class=\"col-lg-6  col-sm-12\" >
  849.                                                     <div class=\"checkout-form-list\">
  850.                                                     <label>Adresse <span class=\"required\">*</span></label>
  851.                                                      {{ form_widget(registrationCustomerForm.address) }}
  852.                                                       
  853.                                                    </div>
  854.                                                </div>
  855.                                           
  856.                                             <div class=\"col-lg-6  col-sm-12\" >{{ form_row(registrationCustomerForm.addressIndication) }}</div>
  857.                                               <div class=\"col-lg-6  col-sm-12\" >
  858.                                                 <div class=\"checkout-form-list\">
  859.                                                     <label>Ville <span class=\"required\">*</span></label>
  860.                                                     {{ form_errors(registrationCustomerForm.city) }}
  861.                                                      {{ form_widget(registrationCustomerForm.city) }}
  862.                                                    </div>
  863.                                                </div>
  864.                                             <div class=\"col-lg-6  col-sm-12\" >
  865.                                                   <div class=\"checkout-form-list\">
  866.                                                     <label>Téléphone <span class=\"required\">*</span></label>
  867.                                                     {{ form_errors(registrationCustomerForm.phone) }}
  868.                                                      {{ form_widget(registrationCustomerForm.phone) }}
  869.                                                    </div>
  870.                                             
  871.                                                 
  872.                                                 </div>
  873.                                              <div class=\"col-lg-6  col-sm-12\" >{{ form_row(registrationCustomerForm.dateOfBirth) }}</div>
  874.                                             
  875.                                             
  876.                                              <div class=\"col-lg-6  col-sm-12\" >
  877.                                                   <div class=\"checkout-form-list\">
  878.                                                     <label>Code Postal <span class=\"required\">*</span></label>
  879.                                                     {{ form_errors(registrationCustomerForm.postCode) }}
  880.                                                      {{ form_widget(registrationCustomerForm.postCode) }}
  881.                                                    </div>
  882.                                             
  883.                                                 
  884.                                                 </div>
  885.                                             
  886.                                             
  887.                                              
  888.                                              
  889.                                               <div class=\"col-lg-6  col-sm-12   \" >
  890.                                                   <div class=\"checkout-form-list\">
  891.                                                     <label>Image CIN Recto <span class=\"registerEntreprice d-none\" >du gérant </span>  <span class=\"required\">*</span></label>
  892.                                                     
  893.                                                      {{ form_widget(registrationCustomerForm.imageCinRecto) }}
  894.                                                    </div>
  895.                                             
  896.                                                 
  897.                                                 </div>
  898.                                               <div class=\"col-lg-6  col-sm-12   \" >
  899.                                                   <div class=\"checkout-form-list\">
  900.                                                     <label>Image CIN Verso <span class=\"registerEntreprice d-none\" >du gérant </span>   <span class=\"required\">*</span></label>
  901.                                                     
  902.                                                      {{ form_widget(registrationCustomerForm.imageCinVerso) }}
  903.                                                    </div>
  904.                                             
  905.                                                 
  906.                                                 </div>
  907.                                              <div class=\"col-lg-6  col-sm-12 \" >
  908.                                                   <div class=\"checkout-form-list\">
  909.                                                     <label>Secteur d’activité  <span class=\"required\"></span></label>
  910.                                                     
  911.                                                      {{ form_widget(registrationCustomerForm.sector_activity) }}
  912.                                                    </div>
  913.                                             
  914.                                                 
  915.                                                 </div>
  916.                                                   <div class=\"col-lg-6  col-sm-12 \" >
  917.                                                   <div class=\"checkout-form-list\">
  918.                                                     <label>Poste  <span class=\"required\"></span></label>
  919.                                                     
  920.                                                      {{ form_widget(registrationCustomerForm.job) }}
  921.                                                    </div>
  922.                                             
  923.                                                 
  924.                                                 </div>
  925.                                 
  926.                                            
  927.                                             <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  928.                                                   <div class=\"checkout-form-list\">
  929.                                                     <label>Registre du Commerce <span class=\"required\">*</span></label>
  930.                                                     
  931.                                                      {{ form_widget(registrationCustomerForm.imageRCFile) }}
  932.                                                    </div>
  933.                                             
  934.                                                 
  935.                                                 </div>
  936.                                                 <div class=\"col-lg-6  col-sm-12  d-none\" >
  937.                                                   <div class=\"checkout-form-list\">
  938.                                                     <label>Identifiant Fiscale <span class=\"required\"></span></label>
  939.                                                     
  940.                                                      {{ form_widget(registrationCustomerForm.imageIFFile) }}
  941.                                                    </div>
  942.                                             
  943.                                                 
  944.                                                 </div>
  945.                                                 
  946.                                           <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  947.                                               <div class=\"checkout-form-list\">
  948.                                                     <label>ICE <span class=\"required\">*</span>  </label>
  949.                                                      {{ form_widget(registrationCustomerForm.Ice) }}
  950.                                                    </div>
  951.                                                
  952.                                                 </div>
  953.                                                  <div class=\"col-lg-6  col-sm-12\" >
  954.                                                 <div class=\"checkout-form-list\">
  955.                                                     <label>Email <span class=\"required\">*</span></label>
  956.                                                     {{ form_errors(registrationCustomerForm.email) }}
  957.                                                      {{ form_widget(registrationCustomerForm.email) }}
  958.                                                    </div>
  959.                                                </div>
  960.                                             <div class=\"col-lg-6  col-sm-12\" >
  961.                                                 <div class=\"checkout-form-list\">
  962.                                                     <label>Mot de passe <span class=\"required\">*</span></label>
  963.                                                      {{ form_widget(registrationCustomerForm.user.password) }}
  964.                                                    </div>
  965.                                                 </div> 
  966.                                                    <div class=\"col-lg-6  col-sm-12 registerEntreprice d-none\" >
  967.                                               <div class=\"checkout-form-list\"> 
  968.                                                <label>Contact de facturation <span class=\"required\">*</span></label>
  969.                                                       <select id=\"select-contact\"  name=\"\" class=\"form-select\">
  970.                                                         <option value=\"moi\">Moi-même </option>
  971.                                                         <option value=\"Autre\">Autre</option>
  972.                                                         </select>
  973.                                                   </div>
  974.                                                </div>
  975.                                                 <div class=\"col-lg-6  col-sm-12 registerContact  d-none\" >
  976.                                               <div class=\"checkout-form-list\">
  977.                                                     <label>Raison sociale </label>
  978.                                                      {{ form_widget(registrationCustomerForm.Raison_sociale) }}
  979.                                                    </div>
  980.                                                
  981.                                                 </div>
  982.                                                 
  983.                                                  <div class=\"col-lg-6  col-sm-12  registerContact d-none\" >
  984.                                               <div class=\"checkout-form-list\">
  985.                                                     <label>Adresse </label>
  986.                                                      {{ form_widget(registrationCustomerForm.Adresse) }}
  987.                                                    </div>
  988.                                                
  989.                                                 </div>
  990.                                         
  991.                                              
  992.                                              
  993.                                           
  994.                                             <div class=\"col-lg-12  col-sm-12\">
  995.                                             <div class=\"checkout-form-list\">
  996.                                                     <label>Souhaitez-vous recevoir nos offres par mail ? (Promotions, événements, ...)  </label>
  997.                                                      {{ form_widget(registrationCustomerForm.canReceiveMails) }}
  998.                                                 </div>
  999.                                                 
  1000.                                                   <div class=\"checkout-form-list\">
  1001.                                                     <label>Rejoignez la communauté Cowork&live ! Vos informations (nom, prénom, secteur d’activité, poste et adresse e-mail) seront partagées avec les autres membres pour favoriser les échanges et dynamiser votre activité.
  1002.                                                        {{ form_widget(registrationCustomerForm.can_accept_community) }}
  1003.                                                 </div>
  1004.                                                   
  1005.                                                               <div class=\"col-lg-6  col-sm-12\" >
  1006.                                          <div class=\"checkout-form-list\">
  1007.                                                <label>   <input type=\"checkbox\" id=\"registration_customer_form_agreeTerms\" name=\"registration_customer_form[agreeTerms]\" required=\"required\" class=\"form-check-input\" value=\"1\">  Je soussigne avoir lu et approuvé les <small><a href=\"{{asset('themes/coworking/cgvVFinale.docx.pdf')}}\" target=\"_blank\">CGV</a>  et  <a href=\"{{asset('themes/coworking/GRILLETARIFAIREVFinale.pdf')}}\" target=\"_blank\">LA GRILLE TARIFAIRE *</a> </small>  <span class=\"required\">*</span><br>
  1008.                                                 </label>
  1009.                                                     
  1010.                                                  
  1011.                                              <div class=\"signature-pad\" >
  1012.                                               <canvas class=\"signature-field\" required  style=\"box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;width:75%\"></canvas>
  1013.                                           </div>
  1014.                                           <button id=\"clear-signature\" class=\"btn btn-dark mt-1\" style=\"font-size: 11px;\">Effacer</button>
  1015.                                                    </div>
  1016.                                            
  1017.                                            
  1018.                       <!--<div class=\"checkout-form-list\">
  1019.                                                     <label>Code Parrainage </label>
  1020.                                                      {{ form_widget(registrationCustomerForm.sponsorshipCode) }}
  1021.                                                 </div>-->
  1022.                                                 
  1023.                                             </div>
  1024.                                          
  1025.                                             
  1026.                                            
  1027.                                                 
  1028.                                                 <!--<div class=\"checkout-form-list\">
  1029.                                                     <label>Vous souhaitez recevoir des nouvelles par SMS ? </label>
  1030.                                                      {{ form_widget(registrationCustomerForm.canReceiveSms) }}
  1031.                                                 </div>-->
  1032.                                                   <!-- <div class=\"checkout-form-list\">
  1033.                                                   
  1034.                                                     <label> {{ form_widget(registrationCustomerForm.agreeTerms) }}   </label>
  1035.                                                     
  1036.                                                    </div>-->
  1037.                                                    <div class=\"checkout-form-list\" style=\"text-align: center;\">
  1038.                                                     <label>Déja inscris?  <a href=\"{{path(\"login_register\")}}\"> Connectez-vous!</a>   </label>
  1039.                                                     
  1040.                                                    </div>
  1041.                                                    
  1042.                                                </div>
  1043.                                             
  1044.                                         </div>
  1045.                                         {#
  1046.                                             {{ form_row(registrationForm.username) }}
  1047.                                             {{ form_row(registrationForm.plainPassword, {
  1048.                                                 label: 'Password'
  1049.                                             }) }}
  1050.                                             {{ form_row(registrationForm.agreeTerms) }}
  1051.                                         #}
  1052.                                         {{ form_rest(registrationCustomerForm) }}
  1053.                                             <div class=\"text-center\">
  1054.                                             <button  type=\"submit\" class=\"save-button btn btn-dark mt-0\" id=\"submitForm\" style=\"text-align: center;\">Créer mon compte !</button>
  1055.                                             </div>
  1056.                                             
  1057.                                             <!-- Popup -->
  1058.                                         <div id=\"popupCommunity\" class=\"popup\" style=\"display: none;\">
  1059.                                             <div class=\"popup-content-2 checkout-form-list  d-flex flex-column \">
  1060.                                                  <div>
  1061.                                                     <label class=\"mt-4 mb-4\">
  1062.                                                   Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.
  1063.                                                   </label>
  1064.                                                   </div>
  1065.                                                 <div class=\"popup-actions\">
  1066.                                                     <button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"acceptCommunity\">Oui j’accepte</button>
  1067.                                                     <button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"proceedWithoutCommunity\">Poursuivre sans accepter</button>
  1068.                                                 </div>
  1069.                                             </div>
  1070.                                         </div>
  1071.                                         
  1072.                                         {{ form_end(registrationCustomerForm) }}
  1073.                                             </div>
  1074.  
  1075.                                                    
  1076.                             </div>
  1077.                             
  1078.                         </div>
  1079.                     </div>
  1080.                 </div>
  1081.             </div>
  1082.             <!-- Se connecter Content Area End Here -->
  1083.         </div>
  1084.         <!-- Body Wrapper End Here -->
  1085. {% endblock %}
  1086. {% block javascripts %}
  1087. {{parent()}}
  1088.   <script src=\"https://cdnjs.cloudflare.com/ajax/libs/signature_pad/1.3.4/signature_pad.js\"></script>
  1089.  <script>
  1090.  document.addEventListener(\"DOMContentLoaded\", function() {
  1091.     var canvas = document.querySelector(\".signature-field\");
  1092.     var form = document.querySelector(\"form\");
  1093.     form.addEventListener(\"submit\", function(event) {
  1094.         if (!isCanvasEmpty(canvas)) {
  1095.             // Signature effectuée, le formulaire peut être soumis
  1096.             return true;
  1097.         } else {
  1098.             // La signature est manquante, empêche la soumission du formulaire
  1099.             event.preventDefault();
  1100.             canvas.classList.add(\"empty\");
  1101.             alert(\"Veuillez signer avant de soumettre le formulaire.\");
  1102.             return false;
  1103.         }
  1104.     });
  1105.     canvas.addEventListener(\"input\", function() {
  1106.         if (!isCanvasEmpty(canvas)) {
  1107.             canvas.classList.remove(\"empty\"); // Supprime la classe \"empty\" si le canvas n'est plus vide
  1108.         }
  1109.     });
  1110.     function isCanvasEmpty(canvas) {
  1111.         var ctx = canvas.getContext(\"2d\");
  1112.         var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
  1113.         for (var i = 0; i < imageData.data.length; i++) {
  1114.             if (imageData.data[i] !== 0) {
  1115.                 return false;
  1116.             }
  1117.         }
  1118.         return true;
  1119.     }
  1120. });
  1121.         // Initialiser la bibliothèque de signature
  1122.         var canvas = document.querySelector('.signature-field');
  1123.         var signaturePad = new SignaturePad(canvas);
  1124.             document.getElementById('clear-signature').addEventListener('click', function (event) {
  1125.         event.preventDefault(); // Empêche le comportement par défaut du bouton
  1126.         signaturePad.clear();
  1127.     });
  1128.     
  1129.     
  1130.   </script>
  1131. <script>
  1132. function isMobileDevice() {
  1133.   return /Mobi/i.test(navigator.userAgent);
  1134. }
  1135.   function isAndroid() {
  1136.   return /Android/i.test(navigator.userAgent);
  1137. }
  1138. function isiOS() {
  1139.   return /iPhone|iPad|iPod/i.test(navigator.userAgent);
  1140. }
  1141. // Usage
  1142. {% if order is defined %}
  1143. {% if order.source == \"mobile\" %}
  1144. if (isMobileDevice()) {
  1145. // Example usage
  1146. if (isAndroid()) {
  1147.    window.location.href = \"{{settings.get.mobileAppSchemeAndroid}}?path=/myaccount/successUpdatePassword\";
  1148.   window.close();
  1149. } else if (isiOS()) {
  1150.    window.location.href = \"{{settings.get.mobileAppSchemeIOS}}?path=/myaccount/successUpdatePassword\";
  1151.   window.close();
  1152. }
  1153.  
  1154. {% endif %}
  1155. {% endif %}
  1156. </script>
  1157. <script>
  1158.     \$(document).ready(function()
  1159.     {
  1160.         
  1161.         const checkbox = \$(\"#registration_customer_form_can_accept_community\");
  1162.     const popup = \$(\"#popupCommunity\");
  1163.     const form = \$(\"form[name='registration_customer_form']\");
  1164.     const canvas = \$(\".signature-field\")[0]; // Récupère le canvas en jQuery
  1165.     
  1166.         // Fonction pour vérifier si la signature est vide
  1167.         function isCanvasEmpty(canvas) {
  1168.             const context = canvas.getContext(\"2d\");
  1169.             const pixelBuffer = new Uint32Array(
  1170.                 context.getImageData(0, 0, canvas.width, canvas.height).data.buffer
  1171.             );
  1172.             return !pixelBuffer.some(color => color !== 0);
  1173.         }
  1174.     
  1175.         // Gestion du clic sur le bouton Soumettre
  1176.         \$(\"#submitForm\").on(\"click\", function (e) {
  1177.             e.preventDefault(); // Empêche la soumission par défaut
  1178.     
  1179.             // Vérifier si le formulaire est valide
  1180.             if (!form[0].checkValidity()) {
  1181.                 form[0].reportValidity(); // Affiche les messages d'erreur HTML5
  1182.                 return; // Arrête l'exécution si le formulaire est invalide
  1183.             }
  1184.     
  1185.     
  1186.             // Vérifier si la signature est manquante
  1187.             if (isCanvasEmpty(canvas)) {
  1188.                 alert(\"Veuillez signer avant de soumettre le formulaire.\");
  1189.                 \$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreur
  1190.                 return; // Arrête l'exécution si la signature est manquante
  1191.             }
  1192.     
  1193.             // Si le formulaire est valide, vérifier la case can_accept_community
  1194.             if (!checkbox.is(\":checked\")) {
  1195.                 popup.show(); // Afficher le popup si la case n'est pas cochée
  1196.             } else {
  1197.                 form.submit(); // Soumettre directement si la case est cochée
  1198.             }
  1199.         });
  1200.     
  1201.         // Gestion du bouton \"Oui j'accepte\"
  1202.         \$(\"#acceptCommunity\").on(\"click\", function () {
  1203.             checkbox.prop(\"checked\", true); // Cocher la case
  1204.             popup.hide(); // Masquer le popup
  1205.             form.submit(); // Soumettre le formulaire
  1206.         });
  1207.     
  1208.         // Gestion du bouton \"Poursuivre sans accepter\"
  1209.         \$(\"#proceedWithoutCommunity\").on(\"click\", function () {
  1210.             popup.hide(); // Masquer le popup
  1211.             form.submit(); // Soumettre le formulaire sans cocher la case
  1212.         });
  1213.   
  1214.         \$(\"#select-account\").change(function(){
  1215.             var selectedAccount = \$(this).val();
  1216.             //alert(selectedAccount);
  1217.        if(selectedAccount == \"Entreprise\"){
  1218.            
  1219.               \$(\".registerEntreprice\").removeClass(\"d-none\");
  1220.                \$(\".registerParticulier\").addClass(\"d-none\");
  1221.         }else if(selectedAccount == \"Particulier\"){
  1222.            \$(\".registerParticulier\").removeClass(\"d-none\");
  1223.          \$(\".registerEntreprice\").addClass(\"d-none\");
  1224.         }
  1225.              
  1226.             
  1227.         });
  1228.         
  1229.          \$(\"#select-contact\").change(function(){
  1230.              var selected = \$(this).val();
  1231.                if(selected == \"Autre\"){
  1232.                \$(\".registerContact\").removeClass(\"d-none\");
  1233.               
  1234.                }else {
  1235.                  \$(\".registerContact\").addClass(\"d-none\");
  1236.               }
  1237.        
  1238.               });
  1239.               
  1240.     });
  1241. </script>
  1242. {% endblock %}""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig""/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig");
  1243.     }
  1244. }