var/cache/dev/twig/5f/5f95a625d8b9526e0ddc97d4b8fc25dd.php line 50
<?php
use 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 1
return "@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 2
public 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 3
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t
\t <style>
.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 {
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 35
public 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 36
echo "
<!-- 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 69
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"]]);
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 84
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", false, false, false, 84), 'widget');
echo "
</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 91
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", false, false, false, 91), '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 99
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", false, false, false, 99), '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 107
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", false, false, false, 107), '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 118
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", false, false, false, 118), '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 128
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", false, false, false, 128), 'widget');
echo "
</div>
</div>
<div class=\"col-lg-6 col-sm-12\" >";
// line 134
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", false, false, false, 134), 'row');
echo "</div>
<div class=\"col-lg-6 col-sm-12\" >
<div class=\"checkout-form-list\">
<label>Ville <span class=\"required\">*</span></label>
";
// line 139
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", false, false, false, 139), 'errors');
echo "
";
// line 140
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", false, false, false, 140), '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 147
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", false, false, false, 147), 'errors');
echo "
";
// line 148
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", false, false, false, 148), 'widget');
echo "
</div>
</div>
<div class=\"col-lg-6 col-sm-12\" >";
// line 153
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", false, false, false, 153), '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 160
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", false, false, false, 160), 'errors');
echo "
";
// line 161
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", false, false, false, 161), '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 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.', 176, $this->source); })()), "imageCinRecto", [], "any", false, false, false, 176), '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 187
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", false, false, false, 187), '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 198
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", false, false, false, 198), '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 209
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", false, false, false, 209), '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 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.', 221, $this->source); })()), "imageRCFile", [], "any", false, false, false, 221), '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 232
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", false, false, false, 232), '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 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.', 242, $this->source); })()), "Ice", [], "any", false, false, false, 242), '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 250
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", false, false, false, 250), 'errors');
echo "
";
// line 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.', 251, $this->source); })()), "email", [], "any", false, false, false, 251), '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 257
echo $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.', 257, $this->source); })()), "user", [], "any", false, false, false, 257), "password", [], "any", false, false, false, 257), '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 273
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", false, false, false, 273), 'widget');
echo "
</div>
</div>
<div class=\"col-lg-6 col-sm-12 registerContact d-none\" >
<div class=\"checkout-form-list\">
<label>Adresse </label>
";
// line 281
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", false, false, false, 281), '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 293
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", false, false, false, 293), '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 298
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", false, false, false, 298), '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 303
echo 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 316
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", false, false, false, 316), 'widget');
echo "
</div>-->
</div>
<!--<div class=\"checkout-form-list\">
<label>Vous souhaitez recevoir des nouvelles par SMS ? </label>
";
// line 326
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", false, false, false, 326), 'widget');
echo "
</div>-->
<!-- <div class=\"checkout-form-list\">
<label> ";
// line 330
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", false, false, false, 330), 'widget');
echo " </label>
</div>-->
<div class=\"checkout-form-list\" style=\"text-align: center;\">
<label>Déja inscris? <a href=\"";
// line 335
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_register");
echo "\"> Connectez-vous!</a> </label>
</div>
</div>
</div>
";
// line 350
echo "
";
// line 351
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');
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 checkout-form-list\">
<label class=\"mt-4 mb-4\">
Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.
</label>
<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 371
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');
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 392
public 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 393
echo "
";
// line 394
$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 soumis
return true;
} else {
// La signature est manquante, empêche la soumission du formulaire
event.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 signature
var 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 bouton
signaturePad.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 461
if (array_key_exists("order", $context)) {
// line 462
echo "
";
// line 463
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", false, false, false, 463) == "mobile")) {
// line 464
echo "if (isMobileDevice()) {
// Example usage
if (isAndroid()) {
window.location.href = \"";
// line 471
echo 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.', 471, $this->source); })()), "get", [], "any", false, false, false, 471), "mobileAppSchemeAndroid", [], "any", false, false, false, 471), "html", null, true);
echo "?path=/myaccount/successUpdatePassword\";
window.close();
} else if (isiOS()) {
window.location.href = \"";
// line 474
echo 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.', 474, $this->source); })()), "get", [], "any", false, false, false, 474), "mobileAppSchemeIOS", [], "any", false, false, false, 474), "html", null, true);
echo "?path=/myaccount/successUpdatePassword\";
window.close();
}
}
";
}
// line 482
echo "
";
}
// line 484
echo "
</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 vide
function 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 valide
if (!form[0].checkValidity()) {
form[0].reportValidity(); // Affiche les messages d'erreur HTML5
return; // Arrête l'exécution si le formulaire est invalide
}
// Vérifier si la signature est manquante
if (isCanvasEmpty(canvas)) {
alert(\"Veuillez signer avant de soumettre le formulaire.\");
\$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreur
return; // Arrête l'exécution si la signature est manquante
}
// Si le formulaire est valide, vérifier la case can_accept_community
if (!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 case
popup.hide(); // Masquer le popup
form.submit(); // Soumettre le formulaire
});
// Gestion du bouton \"Poursuivre sans accepter\"
\$(\"#proceedWithoutCommunity\").on(\"click\", function () {
popup.hide(); // Masquer le popup
form.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 ( 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,);
}
public function getSourceContext()
{
return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}
{% block stylesheets %}
\t{{parent()}}
\t
\t <style>
.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 {
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 checkout-form-list\">
<label class=\"mt-4 mb-4\">
Malheureusement, vous n’aurez pas accès à notre communauté Cowork&Live.
</label>
<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 soumis
return true;
} else {
// La signature est manquante, empêche la soumission du formulaire
event.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 signature
var 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 bouton
signaturePad.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 usage
if (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 vide
function 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 valide
if (!form[0].checkValidity()) {
form[0].reportValidity(); // Affiche les messages d'erreur HTML5
return; // Arrête l'exécution si le formulaire est invalide
}
// Vérifier si la signature est manquante
if (isCanvasEmpty(canvas)) {
alert(\"Veuillez signer avant de soumettre le formulaire.\");
\$(canvas).addClass(\"empty\"); // Ajoute une classe pour le style d'erreur
return; // Arrête l'exécution si la signature est manquante
}
// Si le formulaire est valide, vérifier la case can_accept_community
if (!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 case
popup.hide(); // Masquer le popup
form.submit(); // Soumettre le formulaire
});
// Gestion du bouton \"Poursuivre sans accepter\"
\$(\"#proceedWithoutCommunity\").on(\"click\", function () {
popup.hide(); // Masquer le popup
form.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");
}
}