var/cache/dev/twig/e9/e9f95e25c40df8f984751db9582d626e35b4b58acf37570fb4536a01d6ade7cd.php line 95

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* user/register.html.twig */
  16. class __TwigTemplate_3fa23fabbe1d833bde6722824af8a446d39c58443c0faaf75ff034c02e9575bb extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'fos_user_title' => [$this'block_fos_user_title'],
  29.             'fos_user_content' => [$this'block_fos_user_content'],
  30.             'fos_user_script' => [$this'block_fos_user_script'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "base_security.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/register.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/register.html.twig"));
  45.         $this->parent $this->loadTemplate("base_security.html.twig""user/register.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 3
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_fos_user_title(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_title"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_title"));
  63.         // line 4
  64.         yield "  <h4 class=\"auth-header\">";
  65.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title.new_user_account"), "html"nulltrue);
  66.         yield "</h4>
  67. ";
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.         
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  72.         yield from [];
  73.     }
  74.     // line 7
  75.     /**
  76.      * @return iterable<null|scalar|\Stringable>
  77.      */
  78.     public function block_fos_user_content(array $context, array $blocks = []): iterable
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  85.         // line 8
  86.         yield "    ";
  87.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'8$this->source); })()), "session", [], "any"falsefalsefalse8), "flashBag", [], "any"falsefalsefalse8), "has", ["danger"], "method"falsefalsefalse8) == true)) {
  88.             // line 9
  89.             yield "        <div class=\"alert alert-danger\" role=\"alert\" stype=\"font-size: 10px\">
  90.             ";
  91.             // line 10
  92.             $context['_parent'] = $context;
  93.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "session", [], "any"falsefalsefalse10), "flashbag", [], "any"falsefalsefalse10), "get", ["danger"], "method"falsefalsefalse10));
  94.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  95.                 // line 11
  96.                 yield "                <p class=\"text-center w-100 mb-0\">";
  97.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  98.                 yield "</p>
  99.             ";
  100.             }
  101.             $_parent $context['_parent'];
  102.             unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  103.             $context array_intersect_key($context$_parent) + $_parent;
  104.             // line 13
  105.             yield "        </div>
  106.     ";
  107.         }
  108.         // line 15
  109.         yield "
  110.     <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  111.         // line 16
  112.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'16$this->source); })()), 'errors');
  113.         yield "</div>
  114.     <form id=\"form-register\" action=\"";
  115.         // line 17
  116.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_create_account");
  117.         yield "\" method=\"post\">
  118.       ";
  119.         // line 18
  120.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'18$this->source); })()), "_token", [], "any"falsefalsefalse18), 'widget');
  121.         yield "
  122.       <div class=\"form-group\">
  123.         <label for=\"\">";
  124.         // line 20
  125.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.user_type"), "html"nulltrue);
  126.         yield "</label>
  127.         ";
  128.         // line 21
  129.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), "typePerson", [], "any"falsefalsefalse21), 'widget');
  130.         yield "
  131.       </div>
  132.       <div id=\"diaspora\" class=\"form-group\">
  133.         <div class=\"col-sm-12 form-check diaspora d-flex justify-content-end\">
  134.           <label for=\"\">diaspora: </label>
  135.           ";
  136.         // line 26
  137.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'26$this->source); })()), "diaspora", [], "any"falsefalsefalse26), 'widget');
  138.         yield "
  139.           <div class=\"slider round\">
  140.             <span class=\"non\">";
  141.         // line 28
  142.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.no"), "html"nulltrue);
  143.         yield "</span>
  144.             <span class=\"oui\">";
  145.         // line 29
  146.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.yes"), "html"nulltrue);
  147.         yield "</span>
  148.           </div>
  149.           <div class=\"help-block form-text with-errors form-control-feedback\">";
  150.         // line 31
  151.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "diaspora", [], "any"falsefalsefalse31), 'errors');
  152.         yield "</div>
  153.         </div>
  154.       </div>
  155.       <div class=\"form-group\">
  156.         ";
  157.         // line 35
  158.         if (((isset($context["struct_province_country_city"]) || array_key_exists("struct_province_country_city"$context) ? $context["struct_province_country_city"] : (function () { throw new RuntimeError('Variable "struct_province_country_city" does not exist.'35$this->source); })()) == "true")) {
  159.             // line 36
  160.             yield "          <label for=\"\">   ";
  161.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.region"), "html"nulltrue);
  162.             yield " </label>
  163.           ";
  164.             // line 38
  165.             yield $this->extensions['App\Twig\AppExention']->createTranslatedSelect(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'38$this->source); })()), "region", [], "any"falsefalsefalse38));
  166.             yield "
  167. ";
  168.             // line 40
  169.             yield "          <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  170.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  171.             // line 41
  172.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'41$this->source); })()), "region", [], "any"falsefalsefalse41), 'errors');
  173.             yield "</div>
  174.         ";
  175.         } else {
  176.             // line 44
  177.             yield "          <label for=\"\">   ";
  178.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.country"), "html"nulltrue);
  179.             yield " </label>
  180.           ";
  181.             // line 45
  182.             yield $this->extensions['App\Twig\AppExention']->createTranslatedSelect(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'45$this->source); })()), "country", [], "any"falsefalsefalse45));
  183.             yield "
  184. ";
  185.             // line 47
  186.             yield "          <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  187.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  188.             // line 48
  189.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'48$this->source); })()), "country", [], "any"falsefalsefalse48), 'errors');
  190.             yield "</div>
  191.         ";
  192.         }
  193.         // line 51
  194.         yield "      </div>
  195.       <div id=\"residenceCountry\" class=\"form-group\" style=\"display: none\">
  196.         <label for=\"\">   ";
  197.         // line 53
  198.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.residence_country"), "html"nulltrue);
  199.         yield " </label>
  200.         ";
  201.         // line 54
  202.         if (((isset($context["struct_province_country_city"]) || array_key_exists("struct_province_country_city"$context) ? $context["struct_province_country_city"] : (function () { throw new RuntimeError('Variable "struct_province_country_city" does not exist.'54$this->source); })()) == "true")) {
  203.             // line 55
  204.             yield "          ";
  205.             yield $this->extensions['App\Twig\AppExention']->createTranslatedSelect(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'55$this->source); })()), "residenceRegion", [], "any"falsefalsefalse55));
  206.             yield "
  207. ";
  208.             // line 57
  209.             yield "          <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  210.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  211.             // line 58
  212.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'58$this->source); })()), "region", [], "any"falsefalsefalse58), 'errors');
  213.             yield "</div>
  214.         ";
  215.         } else {
  216.             // line 60
  217.             yield "          ";
  218.             yield $this->extensions['App\Twig\AppExention']->createTranslatedSelect(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'60$this->source); })()), "residenceCountry", [], "any"falsefalsefalse60));
  219.             yield "
  220. ";
  221.             // line 62
  222.             yield "          <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  223.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  224.             // line 63
  225.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'63$this->source); })()), "country", [], "any"falsefalsefalse63), 'errors');
  226.             yield "</div>
  227.         ";
  228.         }
  229.         // line 65
  230.         yield "      </div>
  231.       <div class=\"form-group\">
  232.         <label for=\"\"> ";
  233.         // line 67
  234.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.phone"), "html"nulltrue);
  235.         yield " : ";
  236.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.phone_indicator"), "html"nulltrue);
  237.         yield " (<span id=\"phone_code\"></span> ) + N°</label>
  238.         ";
  239.         // line 68
  240.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'68$this->source); })()), "phone", [], "any"falsefalsefalse68), 'widget');
  241.         yield "
  242.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  243.         <div class=\"help-block form-text with-errors text-danger form-control-feedback\">";
  244.         // line 70
  245.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'70$this->source); })()), "phone", [], "any"falsefalsefalse70), 'errors');
  246.         yield "</div>
  247.       </div>
  248.       <div class=\"form-group\" style=\"display: none\">
  249.         <label for=\"\"> Pseudo (Optionnel)</label>
  250.         ";
  251.         // line 74
  252.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'74$this->source); })()), "username", [], "any"falsefalsefalse74), 'widget');
  253.         yield "
  254.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  255.       </div>
  256.       <div class=\"form-group\" style=\"display: none\">
  257.         <label for=\"\"> Email address (Optionnel)</label>
  258.         ";
  259.         // line 79
  260.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "email", [], "any"falsefalsefalse79), 'widget');
  261.         yield "
  262.         <div class=\"pre-icon os-icon os-icon-email-2-at2\"></div>
  263.       </div>
  264.       <div class=\"row\">
  265.         <div class=\"col-sm-6\">
  266.           <div class=\"form-group\">
  267.             <label for=\"\"> ";
  268.         // line 85
  269.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.password"), "html"nulltrue);
  270.         yield "</label>
  271.             ";
  272.         // line 86
  273.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'86$this->source); })()), "plainPassword", [], "any"falsefalsefalse86), "first", [], "any"falsefalsefalse86), 'widget');
  274.         yield "
  275.             <div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
  276.           </div>
  277.         </div>
  278.         <div class=\"col-sm-6\">
  279.           <div class=\"form-group\">
  280.             <label for=\"\">";
  281.         // line 92
  282.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.confirm"), "html"nulltrue);
  283.         yield "</label>
  284.             ";
  285.         // line 93
  286.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'93$this->source); })()), "plainPassword", [], "any"falsefalsefalse93), "second", [], "any"falsefalsefalse93), 'widget');
  287.         yield "
  288.           </div>
  289.         </div>
  290.       </div>
  291.     ";
  292.         // line 98
  293.         yield "      <div class=\"row form-group\">
  294.         <div class=\"col-xs-6 buttons-w\">
  295.           <button class=\"btn btn-primary\" id=\"submitRegister\"> ";
  296.         // line 100
  297.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.validate"), "html"nulltrue);
  298.         yield " </button>
  299.         </div>
  300.         <div class=\"col-xs-6 buttons-w\">
  301.           <a class=\"btn btn-primary\" href=\"";
  302.         // line 103
  303.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
  304.         yield "\">";
  305.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.cancel"), "html"nulltrue);
  306.         yield "</a>
  307.         </div>
  308.       </div>
  309.       <div class=\"row form-group footer_register\">
  310.         <span>";
  311.         // line 107
  312.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("footer.dev_by"), "html"nulltrue);
  313.         yield "</span>
  314.         <p><a target=\"_blank\" href=\"https://ifef.francophonie.org/\"><img style=\"width: 80px; height: auto\" id=\"logo_ifef\" src=\"";
  315.         // line 108
  316.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/pinsuprem/logo_ifef.jpg"), "html"nulltrue);
  317.         yield "\"></a></p>
  318.         <p><a target=\"_blank\" href=\"https://www.francophonie.org/\"><img style=\"width: 80px; height: auto\"  id=\"logo_oif\" src=\"";
  319.         // line 109
  320.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/pinsuprem/logo_oif.jpg"), "html"nulltrue);
  321.         yield "\"></a></p>
  322.       </div>
  323.     </form>
  324.     <select hidden id=\"indTel\">
  325.       ";
  326.         // line 113
  327.         $context['_parent'] = $context;
  328.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["allCountries"]) || array_key_exists("allCountries"$context) ? $context["allCountries"] : (function () { throw new RuntimeError('Variable "allCountries" does not exist.'113$this->source); })()));
  329.         foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  330.             // line 114
  331.             yield "        <option value=\"";
  332.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "id", [], "any"falsefalsefalse114), "html"nulltrue);
  333.             yield "\">";
  334.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "phoneCode", [], "any"falsefalsefalse114), "html"nulltrue);
  335.             yield "</option>
  336.       ";
  337.         }
  338.         $_parent $context['_parent'];
  339.         unset($context['_seq'], $context['_key'], $context['country'], $context['_parent']);
  340.         $context array_intersect_key($context$_parent) + $_parent;
  341.         // line 116
  342.         yield "    </select>
  343. ";
  344.         
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  346.         
  347.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  348.         yield from [];
  349.     }
  350.     // line 118
  351.     /**
  352.      * @return iterable<null|scalar|\Stringable>
  353.      */
  354.     public function block_fos_user_script(array $context, array $blocks = []): iterable
  355.     {
  356.         $macros $this->macros;
  357.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_script"));
  359.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_script"));
  361.         // line 119
  362.         yield "<script>
  363.    \$( document ).ready(function() {
  364.       \$('#diaspora').hide();
  365.       if (\$('#userbundle_user_typePerson option:selected').val() == 'ROLE_DIPLOME' ) {
  366.          \$('#diaspora').show();
  367.          showResidenceCountry ();
  368.       }
  369.    })
  370.    // \$(idSelect).removeAttr('required');
  371.    \$('userbundle_user_residenceCountry').prop(\"required\", false);
  372.    \$('userbundle_user_residenceRegion').prop(\"required\", false);
  373.    // console.log(\"test\", \$('userbundle_user_residenceCountry').attr(\"required\"))
  374.    \$('#userbundle_user_typePerson').on('change', function (e) {
  375.       if (\$('#userbundle_user_typePerson option:selected').val() != 'ROLE_DIPLOME' ) {
  376.          \$('#userbundle_user_diaspora').prop('checked',false);
  377.          \$('#diaspora').hide();
  378.          showResidenceCountry ();
  379.       } else {
  380.          \$('#diaspora').show();
  381.       }
  382.    })
  383.    \$('#userbundle_user_diaspora').on('change', function (e) {
  384.       showResidenceCountry ();
  385.       let selectedCountry = null;
  386.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  387.          selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  388.       } else {
  389.          selectedCountry = \$('#userbundle_user_country option:selected').val();
  390.       }
  391.       getIndTel(selectedCountry);
  392.    })
  393.    function showResidenceCountry () {
  394.       if (\$('#userbundle_user_diaspora').is(':checked')) {
  395.          \$('#residenceCountry').show();
  396.       } else {
  397.          \$('#residenceCountry').hide();
  398.       }
  399.    }
  400.    // \$(document).ready(function () {
  401.    // const allCountryOptions = \$('#userbundle_user_country').html();
  402.    \$('#userbundle_user_country').on('change', function (e) {
  403.       let selectedCountry = null;
  404.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  405.          selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  406.          // Supprimer le pays selectionné dans la liste des pays de residence
  407.          // \$(\"#userbundle_user_residenceCountry\").html(allCountryOptions);
  408.          \$(\"#userbundle_user_residenceCountry\").find(\"option\").each(function() {
  409.             const optionValue = \$(this).val();
  410.             if (optionValue === e.target.value) {
  411.                \$(this).remove();
  412.             }
  413.          });
  414.       } else {
  415.          selectedCountry = \$('#userbundle_user_country option:selected').val();
  416.       }
  417.       getIndTel(selectedCountry);
  418.    })
  419.    \$('#userbundle_user_residenceCountry').on('change', function (e) {
  420.       let selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  421.       getIndTel(selectedCountry);
  422.    })
  423.    // adaptation for DBTA
  424.    \$('#userbundle_user_region').on('change', function (e) {
  425.       let selectedCountry = null;
  426.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  427.          selectedCountry = \$('#userbundle_user_residenceRegion option:selected').val();
  428.           // Supprimer le pays selectionné dans la liste des pays de residence
  429.           \$(\"#userbundle_user_residenceRegion\").find(\"option\").each(function() {
  430.               const optionValue = \$(this).val();
  431.               if (optionValue === e.target.value) {
  432.                   \$(this).remove();
  433.               }
  434.           });
  435.       } else {
  436.          selectedCountry = \$('#userbundle_user_region option:selected').val();
  437.       }
  438.       getIndTel(selectedCountry);
  439.    })
  440.    \$('#userbundle_user_residenceRegion').on('change', function (e) {
  441.       let selectedCountry = \$('#userbundle_user_residenceRegion option:selected').val();
  442.       getIndTel(selectedCountry);
  443.    })
  444.    //Fin adaptation DBTA
  445.    function getIndTel(selectedCountry) {
  446.       if (selectedCountry) {
  447.           let phoneCode = '+' + \$('#indTel option[value=' +selectedCountry+ ']').text();
  448.           \$('#phone_code').html('+' + \$('#indTel option[value=' +selectedCountry+ ']').text());
  449.           \$('#userbundle_user_phone').attr('placeholder', phoneCode  + '  + Numéro de Téléphone' );
  450.           \$('#userbundle_user_phone').val(phoneCode);
  451.       }
  452.    }
  453.    // \$('#submitRegister').on('click', function (e) {
  454.    //    e.preventDefault();
  455.    //
  456.    //    // setTimeout(function() {
  457.    //    \$('form').submit()
  458.    //    // , 5000});
  459.    //
  460.    // })
  461.    // })
  462. </script>
  463. ";
  464.         
  465.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  466.         
  467.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  468.         yield from [];
  469.     }
  470.     /**
  471.      * @codeCoverageIgnore
  472.      */
  473.     public function getTemplateName(): string
  474.     {
  475.         return "user/register.html.twig";
  476.     }
  477.     /**
  478.      * @codeCoverageIgnore
  479.      */
  480.     public function isTraitable(): bool
  481.     {
  482.         return false;
  483.     }
  484.     /**
  485.      * @codeCoverageIgnore
  486.      */
  487.     public function getDebugInfo(): array
  488.     {
  489.         return array (  389 => 119,  376 => 118,  364 => 116,  353 => 114,  349 => 113,  342 => 109,  338 => 108,  334 => 107,  325 => 103,  319 => 100,  315 => 98,  308 => 93,  304 => 92,  295 => 86,  291 => 85,  282 => 79,  274 => 74,  267 => 70,  262 => 68,  256 => 67,  252 => 65,  247 => 63,  244 => 62,  239 => 60,  234 => 58,  231 => 57,  226 => 55,  224 => 54,  220 => 53,  216 => 51,  210 => 48,  207 => 47,  203 => 45,  198 => 44,  192 => 41,  189 => 40,  185 => 38,  179 => 36,  177 => 35,  170 => 31,  165 => 29,  161 => 28,  156 => 26,  148 => 21,  144 => 20,  139 => 18,  135 => 17,  131 => 16,  128 => 15,  124 => 13,  115 => 11,  111 => 10,  108 => 9,  105 => 8,  92 => 7,  78 => 4,  65 => 3,  42 => 1,);
  490.     }
  491.     public function getSourceContext(): Source
  492.     {
  493.         return new Source("{% extends \"base_security.html.twig\" %}
  494. {% block fos_user_title %}
  495.   <h4 class=\"auth-header\">{{ 'title.new_user_account' | trans }}</h4>
  496. {% endblock fos_user_title %}
  497. {% block fos_user_content %}
  498.     {%  if app.session.flashBag.has('danger') == true %}
  499.         <div class=\"alert alert-danger\" role=\"alert\" stype=\"font-size: 10px\">
  500.             {% for message in app.session.flashbag.get('danger') %}
  501.                 <p class=\"text-center w-100 mb-0\">{{ message }}</p>
  502.             {% endfor %}
  503.         </div>
  504.     {% endif %}
  505.     <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form) | raw }}</div>
  506.     <form id=\"form-register\" action=\"{{ path('register_create_account') }}\" method=\"post\">
  507.       {{ form_widget(form._token) }}
  508.       <div class=\"form-group\">
  509.         <label for=\"\">{{ \"menu.user_type\" | trans }}</label>
  510.         {{ form_widget(form.typePerson) }}
  511.       </div>
  512.       <div id=\"diaspora\" class=\"form-group\">
  513.         <div class=\"col-sm-12 form-check diaspora d-flex justify-content-end\">
  514.           <label for=\"\">diaspora: </label>
  515.           {{ form_widget(form.diaspora) }}
  516.           <div class=\"slider round\">
  517.             <span class=\"non\">{{ 'menu.no' | trans }}</span>
  518.             <span class=\"oui\">{{ 'menu.yes' | trans }}</span>
  519.           </div>
  520.           <div class=\"help-block form-text with-errors form-control-feedback\">{{ form_errors(form.diaspora) }}</div>
  521.         </div>
  522.       </div>
  523.       <div class=\"form-group\">
  524.         {% if struct_province_country_city == \"true\" %}
  525.           <label for=\"\">   {{ 'menu.region' | trans }} </label>
  526.           {{ create_translated_select(form.region) }}
  527. {#          {{ form_widget(form.region) }}#}
  528.           <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  529.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form.region) }}</div>
  530.         {% else %}
  531.           <label for=\"\">   {{ 'menu.country' | trans }} </label>
  532.           {{ create_translated_select(form.country) }}
  533. {#          {{ form_widget(form.country) }}#}
  534.           <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  535.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form.country) }}</div>
  536.         {% endif %}
  537.       </div>
  538.       <div id=\"residenceCountry\" class=\"form-group\" style=\"display: none\">
  539.         <label for=\"\">   {{ 'menu.residence_country' | trans }} </label>
  540.         {% if struct_province_country_city == \"true\" %}
  541.           {{ create_translated_select(form.residenceRegion) }}
  542. {#          {{ form_widget(form.residenceRegion) }}#}
  543.           <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  544.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form.region) }}</div>
  545.         {% else %}
  546.           {{ create_translated_select(form.residenceCountry) }}
  547. {#          {{ form_widget(form.residenceCountry) }}#}
  548.           <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  549.           <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form.country) }}</div>
  550.         {% endif %}
  551.       </div>
  552.       <div class=\"form-group\">
  553.         <label for=\"\"> {{ 'menu.phone' | trans }} : {{ 'menu.phone_indicator' | trans }} (<span id=\"phone_code\"></span> ) + N°</label>
  554.         {{ form_widget(form.phone) }}
  555.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  556.         <div class=\"help-block form-text with-errors text-danger form-control-feedback\">{{ form_errors(form.phone) }}</div>
  557.       </div>
  558.       <div class=\"form-group\" style=\"display: none\">
  559.         <label for=\"\"> Pseudo (Optionnel)</label>
  560.         {{ form_widget(form.username) }}
  561.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  562.       </div>
  563.       <div class=\"form-group\" style=\"display: none\">
  564.         <label for=\"\"> Email address (Optionnel)</label>
  565.         {{ form_widget(form.email) }}
  566.         <div class=\"pre-icon os-icon os-icon-email-2-at2\"></div>
  567.       </div>
  568.       <div class=\"row\">
  569.         <div class=\"col-sm-6\">
  570.           <div class=\"form-group\">
  571.             <label for=\"\"> {{ \"menu.password\" | trans }}</label>
  572.             {{ form_widget(form.plainPassword.first) }}
  573.             <div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
  574.           </div>
  575.         </div>
  576.         <div class=\"col-sm-6\">
  577.           <div class=\"form-group\">
  578.             <label for=\"\">{{ \"menu.confirm\" | trans }}</label>
  579.             {{ form_widget(form.plainPassword.second) }}
  580.           </div>
  581.         </div>
  582.       </div>
  583.     {#</form>#}
  584.       <div class=\"row form-group\">
  585.         <div class=\"col-xs-6 buttons-w\">
  586.           <button class=\"btn btn-primary\" id=\"submitRegister\"> {{ 'menu.validate' | trans }} </button>
  587.         </div>
  588.         <div class=\"col-xs-6 buttons-w\">
  589.           <a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">{{ 'menu.cancel' | trans }}</a>
  590.         </div>
  591.       </div>
  592.       <div class=\"row form-group footer_register\">
  593.         <span>{{ \"footer.dev_by\" | trans }}</span>
  594.         <p><a target=\"_blank\" href=\"https://ifef.francophonie.org/\"><img style=\"width: 80px; height: auto\" id=\"logo_ifef\" src=\"{{ asset('build/images/pinsuprem/logo_ifef.jpg') }}\"></a></p>
  595.         <p><a target=\"_blank\" href=\"https://www.francophonie.org/\"><img style=\"width: 80px; height: auto\"  id=\"logo_oif\" src=\"{{ asset('build/images/pinsuprem/logo_oif.jpg') }}\"></a></p>
  596.       </div>
  597.     </form>
  598.     <select hidden id=\"indTel\">
  599.       {% for country in allCountries %}
  600.         <option value=\"{{ country.id }}\">{{ country.phoneCode }}</option>
  601.       {% endfor %}
  602.     </select>
  603. {% endblock fos_user_content %}
  604. {% block fos_user_script %}
  605. <script>
  606.    \$( document ).ready(function() {
  607.       \$('#diaspora').hide();
  608.       if (\$('#userbundle_user_typePerson option:selected').val() == 'ROLE_DIPLOME' ) {
  609.          \$('#diaspora').show();
  610.          showResidenceCountry ();
  611.       }
  612.    })
  613.    // \$(idSelect).removeAttr('required');
  614.    \$('userbundle_user_residenceCountry').prop(\"required\", false);
  615.    \$('userbundle_user_residenceRegion').prop(\"required\", false);
  616.    // console.log(\"test\", \$('userbundle_user_residenceCountry').attr(\"required\"))
  617.    \$('#userbundle_user_typePerson').on('change', function (e) {
  618.       if (\$('#userbundle_user_typePerson option:selected').val() != 'ROLE_DIPLOME' ) {
  619.          \$('#userbundle_user_diaspora').prop('checked',false);
  620.          \$('#diaspora').hide();
  621.          showResidenceCountry ();
  622.       } else {
  623.          \$('#diaspora').show();
  624.       }
  625.    })
  626.    \$('#userbundle_user_diaspora').on('change', function (e) {
  627.       showResidenceCountry ();
  628.       let selectedCountry = null;
  629.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  630.          selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  631.       } else {
  632.          selectedCountry = \$('#userbundle_user_country option:selected').val();
  633.       }
  634.       getIndTel(selectedCountry);
  635.    })
  636.    function showResidenceCountry () {
  637.       if (\$('#userbundle_user_diaspora').is(':checked')) {
  638.          \$('#residenceCountry').show();
  639.       } else {
  640.          \$('#residenceCountry').hide();
  641.       }
  642.    }
  643.    // \$(document).ready(function () {
  644.    // const allCountryOptions = \$('#userbundle_user_country').html();
  645.    \$('#userbundle_user_country').on('change', function (e) {
  646.       let selectedCountry = null;
  647.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  648.          selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  649.          // Supprimer le pays selectionné dans la liste des pays de residence
  650.          // \$(\"#userbundle_user_residenceCountry\").html(allCountryOptions);
  651.          \$(\"#userbundle_user_residenceCountry\").find(\"option\").each(function() {
  652.             const optionValue = \$(this).val();
  653.             if (optionValue === e.target.value) {
  654.                \$(this).remove();
  655.             }
  656.          });
  657.       } else {
  658.          selectedCountry = \$('#userbundle_user_country option:selected').val();
  659.       }
  660.       getIndTel(selectedCountry);
  661.    })
  662.    \$('#userbundle_user_residenceCountry').on('change', function (e) {
  663.       let selectedCountry = \$('#userbundle_user_residenceCountry option:selected').val();
  664.       getIndTel(selectedCountry);
  665.    })
  666.    // adaptation for DBTA
  667.    \$('#userbundle_user_region').on('change', function (e) {
  668.       let selectedCountry = null;
  669.       if(\$('#userbundle_user_diaspora').is(':checked')) {
  670.          selectedCountry = \$('#userbundle_user_residenceRegion option:selected').val();
  671.           // Supprimer le pays selectionné dans la liste des pays de residence
  672.           \$(\"#userbundle_user_residenceRegion\").find(\"option\").each(function() {
  673.               const optionValue = \$(this).val();
  674.               if (optionValue === e.target.value) {
  675.                   \$(this).remove();
  676.               }
  677.           });
  678.       } else {
  679.          selectedCountry = \$('#userbundle_user_region option:selected').val();
  680.       }
  681.       getIndTel(selectedCountry);
  682.    })
  683.    \$('#userbundle_user_residenceRegion').on('change', function (e) {
  684.       let selectedCountry = \$('#userbundle_user_residenceRegion option:selected').val();
  685.       getIndTel(selectedCountry);
  686.    })
  687.    //Fin adaptation DBTA
  688.    function getIndTel(selectedCountry) {
  689.       if (selectedCountry) {
  690.           let phoneCode = '+' + \$('#indTel option[value=' +selectedCountry+ ']').text();
  691.           \$('#phone_code').html('+' + \$('#indTel option[value=' +selectedCountry+ ']').text());
  692.           \$('#userbundle_user_phone').attr('placeholder', phoneCode  + '  + Numéro de Téléphone' );
  693.           \$('#userbundle_user_phone').val(phoneCode);
  694.       }
  695.    }
  696.    // \$('#submitRegister').on('click', function (e) {
  697.    //    e.preventDefault();
  698.    //
  699.    //    // setTimeout(function() {
  700.    //    \$('form').submit()
  701.    //    // , 5000});
  702.    //
  703.    // })
  704.    // })
  705. </script>
  706. {% endblock fos_user_script %}
  707. ""user/register.html.twig""/var/www/html/inserjeune/templates/user/register.html.twig");
  708.     }
  709. }