var/cache/dev/twig/5f/5f95a625d8b9526e0ddc97d4b8fc25dd.php line 40
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* @Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig */class __TwigTemplate_002c9ba47486837dd6a9ce03ec486512 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['stylesheets' => [$this, 'block_stylesheets'],'body' => [$this, 'block_body'],'javascripts' => [$this, 'block_javascripts'],];}protected function doGetParent(array $context){// line 1return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig"));$this->parent = $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig", "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 2public function block_stylesheets($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));// line 3echo "\t";$this->displayParentBlock("stylesheets", $context, $blocks);echo "\t\t <style>div#popup-reg {display: none;}.popup {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.6);display: flex;justify-content: center;align-items: center;}.popup-content-2 {background: #fff;padding: 20px;border-radius: 5px;text-align: center;}.popup-actions button {margin: 10px;padding: 10px 20px;cursor: pointer;}</style><meta name=\"turbo-visit-control\" content=\"reload\">";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 38public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 39echo "<!-- Begin Body Wrapper --><div class=\"body-wrapper mt-4 mb-4\"><!-- Begin Se connecter Content Area --><div class=\"page-section mb-60\"><div class=\"container col-sm-9\" style=\"padding: 23px 51px !important\" ><div class=\"row col-sm-12 \" ><div class=\"col-sm-12 col-md-12 col-lg-12 col-xs-12\"><div class=\"p-4\"><h4 class=\"login-title\" style=\"text-align: center;\" >Inscrivez-vous </h4><p style=\"text-align: center;\">Rejoignez Cowork&Live et accédez à un espace de coworking inspirant. Remplissez le formulaire ci-dessous pour devenir membre de notre communauté dynamique.Nous avons hâte de vous accueillir !</p><br><div id=\"registerCustomer\" class=\"registerForm\">";// line 72echo $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"]]);echo "<div class=\"row\"><div class=\"checkout-form-list col-lg-12 col-sm-12\"><label>Choisissez un Compte à créer <span class=\"required\">*</span></label><select id=\"select-account\" name=\"type\" class=\"form-select\" ><option value=\"Particulier\" >Compte Particulier</option><option value=\"Entreprise\" >Compte Entreprise</option></select></div><div class=\"col-12\" ><div class=\"checkout-form-list\">";// line 88echo " </div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Raison sociale de l’entreprise <span class=\"required\">*</span> </label>";// line 94echo $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", false, false, false, 94), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Nom <span class=\"registerEntreprice d-none\">du gestionnaire de réservation </span> <span class=\"required\">*</span></label>";// line 102echo $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", false, false, false, 102), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Prénom <span class=\"registerEntreprice d-none\" >du gestionnaire de réservation </span> <span class=\"required\">*</span></label>";// line 110echo $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", false, false, false, 110), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Genre <span class=\"required\">*</span></label>";// line 121echo $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", false, false, false, 121), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Adresse <span class=\"required\">*</span></label>";// line 131echo $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", false, false, false, 131), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" >";// line 137echo $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", false, false, false, 137), 'row');echo "</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Ville <span class=\"required\">*</span></label>";// line 142echo $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", false, false, false, 142), 'errors');echo "";// line 143echo $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", false, false, false, 143), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Téléphone <span class=\"required\">*</span></label>";// line 150echo $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", false, false, false, 150), 'errors');echo "";// line 151echo $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", false, false, false, 151), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" >";// line 156echo $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", false, false, false, 156), 'row');echo "</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Code Postal <span class=\"required\">*</span></label>";// line 163echo $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", false, false, false, 163), 'errors');echo "";// line 164echo $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", false, false, false, 164), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Image CIN Recto <span class=\"registerEntreprice d-none\" >du gérant </span> <span class=\"required\">*</span></label>";// line 179echo $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", false, false, false, 179), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Image CIN Verso <span class=\"registerEntreprice d-none\" >du gérant </span> <span class=\"required\">*</span></label>";// line 190echo $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", false, false, false, 190), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Secteur d’activité <span class=\"required\"></span></label>";// line 201echo $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", false, false, false, 201), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Poste <span class=\"required\"></span></label>";// line 212echo $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", false, false, false, 212), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Registre du Commerce <span class=\"required\">*</span></label>";// line 224echo $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", false, false, false, 224), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 d-none\" ><div class=\"checkout-form-list\"><label>Identifiant Fiscale <span class=\"required\"></span></label>";// line 235echo $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", false, false, false, 235), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>ICE <span class=\"required\">*</span> </label>";// line 245echo $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", false, false, false, 245), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Email <span class=\"required\">*</span></label>";// line 253echo $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", false, false, false, 253), 'errors');echo "";// line 254echo $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", false, false, false, 254), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Mot de passe <span class=\"required\">*</span></label>";// line 260echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 260, $this->source); })()), "user", [], "any", false, false, false, 260), "password", [], "any", false, false, false, 260), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Contact de facturation <span class=\"required\">*</span></label><select id=\"select-contact\" name=\"\" class=\"form-select\"><option value=\"moi\">Moi-même </option><option value=\"Autre\">Autre</option></select></div></div><div class=\"col-lg-6 col-sm-12 registerContact d-none\" ><div class=\"checkout-form-list\"><label>Raison sociale </label>";// line 276echo $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", false, false, false, 276), 'widget');echo "</div></div><div class=\"col-lg-6 col-sm-12 registerContact d-none\" ><div class=\"checkout-form-list\"><label>Adresse </label>";// line 284echo $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", false, false, false, 284), 'widget');echo "</div></div><div class=\"col-lg-12 col-sm-12\"><div class=\"checkout-form-list\"><label>Souhaitez-vous recevoir nos offres par mail ? (Promotions, événements, ...) </label>";// line 296echo $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", false, false, false, 296), 'widget');echo "</div><div class=\"checkout-form-list\"><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é.";// line 301echo $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", false, false, false, 301), 'widget');echo "</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><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=\"";// line 306echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/cgvVFinale.docx.pdf"), "html", null, true);echo "\" target=\"_blank\">CGV</a> et <a href=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/GRILLETARIFAIREVFinale.pdf"), "html", null, true);echo "\" target=\"_blank\">LA GRILLE TARIFAIRE *</a> </small> <span class=\"required\">*</span><br></label><div class=\"signature-pad\" ><canvas class=\"signature-field\" required style=\"box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;width:75%\"></canvas></div><button id=\"clear-signature\" class=\"btn btn-dark mt-1\" style=\"font-size: 11px;\">Effacer</button></div><!--<div class=\"checkout-form-list\"><label>Code Parrainage </label>";// line 319echo $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", false, false, false, 319), 'widget');echo "</div>--></div><!--<div class=\"checkout-form-list\"><label>Vous souhaitez recevoir des nouvelles par SMS ? </label>";// line 329echo $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", false, false, false, 329), 'widget');echo "</div>--><!-- <div class=\"checkout-form-list\"><label> ";// line 333echo $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", false, false, false, 333), 'widget');echo " </label></div>--><div class=\"checkout-form-list\" style=\"text-align: center;\"><label>Déja inscris? <a href=\"";// line 338echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_register");echo "\"> Connectez-vous!</a> </label></div></div></div>";// line 353echo "";// line 354echo $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');echo "<div class=\"text-center\"><button type=\"submit\" class=\"save-button btn btn-dark mt-0\" id=\"submitForm\" style=\"text-align: center;\">Créer mon compte !</button></div><!-- Popup --><div id=\"popupCommunity\" class=\"popup\" style=\"display: none;\"><div class=\"popup-content-2 checkout-form-list d-flex flex-column \"><div><label class=\"mt-4 mb-4\">Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.</label></div><div class=\"popup-actions\"><button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"acceptCommunity\">Oui j’accepte</button><button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"proceedWithoutCommunity\">Poursuivre sans accepter</button></div></div></div>";// line 375echo $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');echo "</div></div></div></div></div></div><!-- Se connecter Content Area End Here --></div><!-- Body Wrapper End Here -->";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 396public function block_javascripts($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));// line 397echo "";// line 398$this->displayParentBlock("javascripts", $context, $blocks);echo "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/signature_pad/1.3.4/signature_pad.js\"></script><script>document.addEventListener(\"DOMContentLoaded\", function() {var canvas = document.querySelector(\".signature-field\");var form = document.querySelector(\"form\");form.addEventListener(\"submit\", function(event) {if (!isCanvasEmpty(canvas)) {// Signature effectuée, le formulaire peut être soumisreturn true;} else {// La signature est manquante, empêche la soumission du formulaireevent.preventDefault();canvas.classList.add(\"empty\");alert(\"Veuillez signer avant de soumettre le formulaire.\");return false;}});canvas.addEventListener(\"input\", function() {if (!isCanvasEmpty(canvas)) {canvas.classList.remove(\"empty\"); // Supprime la classe \"empty\" si le canvas n'est plus vide}});function isCanvasEmpty(canvas) {var ctx = canvas.getContext(\"2d\");var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);for (var i = 0; i < imageData.data.length; i++) {if (imageData.data[i] !== 0) {return false;}}return true;}});// Initialiser la bibliothèque de signaturevar canvas = document.querySelector('.signature-field');var signaturePad = new SignaturePad(canvas);document.getElementById('clear-signature').addEventListener('click', function (event) {event.preventDefault(); // Empêche le comportement par défaut du boutonsignaturePad.clear();});</script><script>function isMobileDevice() {return /Mobi/i.test(navigator.userAgent);}function isAndroid() {return /Android/i.test(navigator.userAgent);}function isiOS() {return /iPhone|iPad|iPod/i.test(navigator.userAgent);}// Usage";// line 465if (array_key_exists("order", $context)) {// line 466echo "";// line 467if ((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", false, false, false, 467) == "mobile")) {// line 468echo "if (isMobileDevice()) {// Example usageif (isAndroid()) {window.location.href = \"";// line 475echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 475), "mobileAppSchemeAndroid", [], "any", false, false, false, 475), "html", null, true);echo "?path=/myaccount/successUpdatePassword\";window.close();} else if (isiOS()) {window.location.href = \"";// line 478echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 478), "mobileAppSchemeIOS", [], "any", false, false, false, 478), "html", null, true);echo "?path=/myaccount/successUpdatePassword\";window.close();}}";}// line 486echo "";}// line 488echo "</script><script>\$(document).ready(function(){const checkbox = \$(\"#registration_customer_form_can_accept_community\");const popup = \$(\"#popupCommunity\");const form = \$(\"form[name='registration_customer_form']\");const canvas = \$(\".signature-field\")[0]; // Récupère le canvas en jQuery// Fonction pour vérifier si la signature est videfunction isCanvasEmpty(canvas) {const context = canvas.getContext(\"2d\");const pixelBuffer = new Uint32Array(context.getImageData(0, 0, canvas.width, canvas.height).data.buffer);return !pixelBuffer.some(color => color !== 0);}// Gestion du clic sur le bouton Soumettre\$(\"#submitForm\").on(\"click\", function (e) {e.preventDefault(); // Empêche la soumission par défaut// Vérifier si le formulaire est valideif (!form[0].checkValidity()) {form[0].reportValidity(); // Affiche les messages d'erreur HTML5return; // Arrête l'exécution si le formulaire est invalide}// Vérifier si la signature est manquanteif (isCanvasEmpty(canvas)) {alert(\"Veuillez signer avant de soumettre le formulaire.\");\$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreurreturn; // Arrête l'exécution si la signature est manquante}// Si le formulaire est valide, vérifier la case can_accept_communityif (!checkbox.is(\":checked\")) {popup.show(); // Afficher le popup si la case n'est pas cochée} else {form.submit(); // Soumettre directement si la case est cochée}});// Gestion du bouton \"Oui j'accepte\"\$(\"#acceptCommunity\").on(\"click\", function () {checkbox.prop(\"checked\", true); // Cocher la casepopup.hide(); // Masquer le popupform.submit(); // Soumettre le formulaire});// Gestion du bouton \"Poursuivre sans accepter\"\$(\"#proceedWithoutCommunity\").on(\"click\", function () {popup.hide(); // Masquer le popupform.submit(); // Soumettre le formulaire sans cocher la case});\$(\"#select-account\").change(function(){var selectedAccount = \$(this).val();//alert(selectedAccount);if(selectedAccount == \"Entreprise\"){\$(\".registerEntreprice\").removeClass(\"d-none\");\$(\".registerParticulier\").addClass(\"d-none\");}else if(selectedAccount == \"Particulier\"){\$(\".registerParticulier\").removeClass(\"d-none\");\$(\".registerEntreprice\").addClass(\"d-none\");}});\$(\"#select-contact\").change(function(){var selected = \$(this).val();if(selected == \"Autre\"){\$(\".registerContact\").removeClass(\"d-none\");}else {\$(\".registerContact\").addClass(\"d-none\");}});});</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/register.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){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,);}public function getSourceContext(){return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}{% block stylesheets %}\t{{parent()}}\t\t <style>div#popup-reg {display: none;}.popup {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.6);display: flex;justify-content: center;align-items: center;}.popup-content-2 {background: #fff;padding: 20px;border-radius: 5px;text-align: center;}.popup-actions button {margin: 10px;padding: 10px 20px;cursor: pointer;}</style><meta name=\"turbo-visit-control\" content=\"reload\">{% endblock %}{% block body %}<!-- Begin Body Wrapper --><div class=\"body-wrapper mt-4 mb-4\"><!-- Begin Se connecter Content Area --><div class=\"page-section mb-60\"><div class=\"container col-sm-9\" style=\"padding: 23px 51px !important\" ><div class=\"row col-sm-12 \" ><div class=\"col-sm-12 col-md-12 col-lg-12 col-xs-12\"><div class=\"p-4\"><h4 class=\"login-title\" style=\"text-align: center;\" >Inscrivez-vous </h4><p style=\"text-align: center;\">Rejoignez Cowork&Live et accédez à un espace de coworking inspirant. Remplissez le formulaire ci-dessous pour devenir membre de notre communauté dynamique.Nous avons hâte de vous accueillir !</p><br><div id=\"registerCustomer\" class=\"registerForm\">{{ form_start(registrationCustomerForm,{attr:{\"data-turbo\":\"false\"}}) }}<div class=\"row\"><div class=\"checkout-form-list col-lg-12 col-sm-12\"><label>Choisissez un Compte à créer <span class=\"required\">*</span></label><select id=\"select-account\" name=\"type\" class=\"form-select\" ><option value=\"Particulier\" >Compte Particulier</option><option value=\"Entreprise\" >Compte Entreprise</option></select></div><div class=\"col-12\" ><div class=\"checkout-form-list\">{#{{ form_widget(registrationCustomerForm.customerGroup) }}#}</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Raison sociale de l’entreprise <span class=\"required\">*</span> </label>{{ form_widget(registrationCustomerForm.companyName) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Nom <span class=\"registerEntreprice d-none\">du gestionnaire de réservation </span> <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.lastName) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Prénom <span class=\"registerEntreprice d-none\" >du gestionnaire de réservation </span> <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.firstName) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Genre <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.gender) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Adresse <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.address) }}</div></div><div class=\"col-lg-6 col-sm-12\" >{{ form_row(registrationCustomerForm.addressIndication) }}</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Ville <span class=\"required\">*</span></label>{{ form_errors(registrationCustomerForm.city) }}{{ form_widget(registrationCustomerForm.city) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Téléphone <span class=\"required\">*</span></label>{{ form_errors(registrationCustomerForm.phone) }}{{ form_widget(registrationCustomerForm.phone) }}</div></div><div class=\"col-lg-6 col-sm-12\" >{{ form_row(registrationCustomerForm.dateOfBirth) }}</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Code Postal <span class=\"required\">*</span></label>{{ form_errors(registrationCustomerForm.postCode) }}{{ form_widget(registrationCustomerForm.postCode) }}</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Image CIN Recto <span class=\"registerEntreprice d-none\" >du gérant </span> <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.imageCinRecto) }}</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Image CIN Verso <span class=\"registerEntreprice d-none\" >du gérant </span> <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.imageCinVerso) }}</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Secteur d’activité <span class=\"required\"></span></label>{{ form_widget(registrationCustomerForm.sector_activity) }}</div></div><div class=\"col-lg-6 col-sm-12 \" ><div class=\"checkout-form-list\"><label>Poste <span class=\"required\"></span></label>{{ form_widget(registrationCustomerForm.job) }}</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Registre du Commerce <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.imageRCFile) }}</div></div><div class=\"col-lg-6 col-sm-12 d-none\" ><div class=\"checkout-form-list\"><label>Identifiant Fiscale <span class=\"required\"></span></label>{{ form_widget(registrationCustomerForm.imageIFFile) }}</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>ICE <span class=\"required\">*</span> </label>{{ form_widget(registrationCustomerForm.Ice) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Email <span class=\"required\">*</span></label>{{ form_errors(registrationCustomerForm.email) }}{{ form_widget(registrationCustomerForm.email) }}</div></div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><label>Mot de passe <span class=\"required\">*</span></label>{{ form_widget(registrationCustomerForm.user.password) }}</div></div><div class=\"col-lg-6 col-sm-12 registerEntreprice d-none\" ><div class=\"checkout-form-list\"><label>Contact de facturation <span class=\"required\">*</span></label><select id=\"select-contact\" name=\"\" class=\"form-select\"><option value=\"moi\">Moi-même </option><option value=\"Autre\">Autre</option></select></div></div><div class=\"col-lg-6 col-sm-12 registerContact d-none\" ><div class=\"checkout-form-list\"><label>Raison sociale </label>{{ form_widget(registrationCustomerForm.Raison_sociale) }}</div></div><div class=\"col-lg-6 col-sm-12 registerContact d-none\" ><div class=\"checkout-form-list\"><label>Adresse </label>{{ form_widget(registrationCustomerForm.Adresse) }}</div></div><div class=\"col-lg-12 col-sm-12\"><div class=\"checkout-form-list\"><label>Souhaitez-vous recevoir nos offres par mail ? (Promotions, événements, ...) </label>{{ form_widget(registrationCustomerForm.canReceiveMails) }}</div><div class=\"checkout-form-list\"><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é.{{ form_widget(registrationCustomerForm.can_accept_community) }}</div><div class=\"col-lg-6 col-sm-12\" ><div class=\"checkout-form-list\"><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></label><div class=\"signature-pad\" ><canvas class=\"signature-field\" required style=\"box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;width:75%\"></canvas></div><button id=\"clear-signature\" class=\"btn btn-dark mt-1\" style=\"font-size: 11px;\">Effacer</button></div><!--<div class=\"checkout-form-list\"><label>Code Parrainage </label>{{ form_widget(registrationCustomerForm.sponsorshipCode) }}</div>--></div><!--<div class=\"checkout-form-list\"><label>Vous souhaitez recevoir des nouvelles par SMS ? </label>{{ form_widget(registrationCustomerForm.canReceiveSms) }}</div>--><!-- <div class=\"checkout-form-list\"><label> {{ form_widget(registrationCustomerForm.agreeTerms) }} </label></div>--><div class=\"checkout-form-list\" style=\"text-align: center;\"><label>Déja inscris? <a href=\"{{path(\"login_register\")}}\"> Connectez-vous!</a> </label></div></div></div>{#{{ form_row(registrationForm.username) }}{{ form_row(registrationForm.plainPassword, {label: 'Password'}) }}{{ form_row(registrationForm.agreeTerms) }}#}{{ form_rest(registrationCustomerForm) }}<div class=\"text-center\"><button type=\"submit\" class=\"save-button btn btn-dark mt-0\" id=\"submitForm\" style=\"text-align: center;\">Créer mon compte !</button></div><!-- Popup --><div id=\"popupCommunity\" class=\"popup\" style=\"display: none;\"><div class=\"popup-content-2 checkout-form-list d-flex flex-column \"><div><label class=\"mt-4 mb-4\">Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.</label></div><div class=\"popup-actions\"><button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"acceptCommunity\">Oui j’accepte</button><button type=\"button\" class=\"save-button btn btn-dark mt-0\" id=\"proceedWithoutCommunity\">Poursuivre sans accepter</button></div></div></div>{{ form_end(registrationCustomerForm) }}</div></div></div></div></div></div><!-- Se connecter Content Area End Here --></div><!-- Body Wrapper End Here -->{% endblock %}{% block javascripts %}{{parent()}}<script src=\"https://cdnjs.cloudflare.com/ajax/libs/signature_pad/1.3.4/signature_pad.js\"></script><script>document.addEventListener(\"DOMContentLoaded\", function() {var canvas = document.querySelector(\".signature-field\");var form = document.querySelector(\"form\");form.addEventListener(\"submit\", function(event) {if (!isCanvasEmpty(canvas)) {// Signature effectuée, le formulaire peut être soumisreturn true;} else {// La signature est manquante, empêche la soumission du formulaireevent.preventDefault();canvas.classList.add(\"empty\");alert(\"Veuillez signer avant de soumettre le formulaire.\");return false;}});canvas.addEventListener(\"input\", function() {if (!isCanvasEmpty(canvas)) {canvas.classList.remove(\"empty\"); // Supprime la classe \"empty\" si le canvas n'est plus vide}});function isCanvasEmpty(canvas) {var ctx = canvas.getContext(\"2d\");var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);for (var i = 0; i < imageData.data.length; i++) {if (imageData.data[i] !== 0) {return false;}}return true;}});// Initialiser la bibliothèque de signaturevar canvas = document.querySelector('.signature-field');var signaturePad = new SignaturePad(canvas);document.getElementById('clear-signature').addEventListener('click', function (event) {event.preventDefault(); // Empêche le comportement par défaut du boutonsignaturePad.clear();});</script><script>function isMobileDevice() {return /Mobi/i.test(navigator.userAgent);}function isAndroid() {return /Android/i.test(navigator.userAgent);}function isiOS() {return /iPhone|iPad|iPod/i.test(navigator.userAgent);}// Usage{% if order is defined %}{% if order.source == \"mobile\" %}if (isMobileDevice()) {// Example usageif (isAndroid()) {window.location.href = \"{{settings.get.mobileAppSchemeAndroid}}?path=/myaccount/successUpdatePassword\";window.close();} else if (isiOS()) {window.location.href = \"{{settings.get.mobileAppSchemeIOS}}?path=/myaccount/successUpdatePassword\";window.close();}}{% endif %}{% endif %}</script><script>\$(document).ready(function(){const checkbox = \$(\"#registration_customer_form_can_accept_community\");const popup = \$(\"#popupCommunity\");const form = \$(\"form[name='registration_customer_form']\");const canvas = \$(\".signature-field\")[0]; // Récupère le canvas en jQuery// Fonction pour vérifier si la signature est videfunction isCanvasEmpty(canvas) {const context = canvas.getContext(\"2d\");const pixelBuffer = new Uint32Array(context.getImageData(0, 0, canvas.width, canvas.height).data.buffer);return !pixelBuffer.some(color => color !== 0);}// Gestion du clic sur le bouton Soumettre\$(\"#submitForm\").on(\"click\", function (e) {e.preventDefault(); // Empêche la soumission par défaut// Vérifier si le formulaire est valideif (!form[0].checkValidity()) {form[0].reportValidity(); // Affiche les messages d'erreur HTML5return; // Arrête l'exécution si le formulaire est invalide}// Vérifier si la signature est manquanteif (isCanvasEmpty(canvas)) {alert(\"Veuillez signer avant de soumettre le formulaire.\");\$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreurreturn; // Arrête l'exécution si la signature est manquante}// Si le formulaire est valide, vérifier la case can_accept_communityif (!checkbox.is(\":checked\")) {popup.show(); // Afficher le popup si la case n'est pas cochée} else {form.submit(); // Soumettre directement si la case est cochée}});// Gestion du bouton \"Oui j'accepte\"\$(\"#acceptCommunity\").on(\"click\", function () {checkbox.prop(\"checked\", true); // Cocher la casepopup.hide(); // Masquer le popupform.submit(); // Soumettre le formulaire});// Gestion du bouton \"Poursuivre sans accepter\"\$(\"#proceedWithoutCommunity\").on(\"click\", function () {popup.hide(); // Masquer le popupform.submit(); // Soumettre le formulaire sans cocher la case});\$(\"#select-account\").change(function(){var selectedAccount = \$(this).val();//alert(selectedAccount);if(selectedAccount == \"Entreprise\"){\$(\".registerEntreprice\").removeClass(\"d-none\");\$(\".registerParticulier\").addClass(\"d-none\");}else if(selectedAccount == \"Particulier\"){\$(\".registerParticulier\").removeClass(\"d-none\");\$(\".registerEntreprice\").addClass(\"d-none\");}});\$(\"#select-contact\").change(function(){var selected = \$(this).val();if(selected == \"Autre\"){\$(\".registerContact\").removeClass(\"d-none\");}else {\$(\".registerContact\").addClass(\"d-none\");}});});</script>{% 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");}}