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

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