var/cache/dev/twig/3a/3a8a1117dfcdb4d429df160dd9b81c41c8b0228cf68e322c5314af8579442374.php line 56

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/register.html.twig */
  14. class __TwigTemplate_48a73c4aa010131cb5b438d25153e2a82d7286333c68f0da06fbd056e0d50139 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'banner' => [$this'block_banner'],
  24.             'title' => [$this'block_title'],
  25.             'metatags' => [$this'block_metatags'],
  26.             'content' => [$this'block_content'],
  27.             'breadcrumb' => [$this'block_breadcrumb'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "@SyliusShop/layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/register.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/register.html.twig"));
  43.         // line 8
  44.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'8$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  45.         // line 1
  46.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/register.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_banner($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  61.         // line 4
  62.         echo "    ";
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.     }
  68.     // line 10
  69.     public function block_title($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  76.         echo "Inscription
  77. ";
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     // line 14
  84.     public function block_metatags($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  91.         // line 15
  92.         echo "\t<meta name=\"description\" content=\"Créer un nouveau compte\">
  93. ";
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.     }
  99.     // line 19
  100.     public function block_content($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  107.         // line 20
  108.         echo "
  109.     ";
  110.         // line 21
  111.         $this->displayBlock('breadcrumb'$context$blocks);
  112.         // line 28
  113.         echo "
  114.     ";
  115.         // line 30
  116.         $context["destination"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "query", [], "any"falsefalsefalse30), "get", [=> "destination"], "method"falsefalsefalse30);
  117.         // line 31
  118.         echo "    ";
  119.         if (((isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'31$this->source); })()) == "")) {
  120.             // line 32
  121.             echo "        ";
  122.             $context["destination"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "request", [], "any"falsefalsefalse32), "request", [], "any"falsefalsefalse32), "get", [=> "destination"], "method"falsefalsefalse32);
  123.             // line 33
  124.             echo "    ";
  125.         }
  126.         echo "    
  127.     ";
  128.         // line 34
  129.         if ((((((isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'34$this->source); })()) == "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "session", [], "any"falsefalsefalse34))) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "session", [], "any"falsefalsefalse34), "started", [], "any"falsefalsefalse34)) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "session", [], "any"falsefalsefalse34), "get", [=> "_sylius.cart.Mons"], "method"falsefalsefalse34)))) {
  130.             // line 35
  131.             echo "        ";
  132.             $context["destination"] = "cart";
  133.             // line 36
  134.             echo "    ";
  135.         }
  136.         // line 37
  137.         echo "    
  138. \t<div class=\"ui hidden divider\"></div>
  139. \t<div class=\"ui two column stackable grid\">
  140. \t\t<div class=\"column\">
  141.             <h1 class=\"page__title\">
  142.                 <span class=\"page__tagline\">
  143.                     ";
  144.         // line 45
  145.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.shop"), "html"nulltrue);
  146.         echo "
  147.                 </span>
  148.                 ";
  149.         // line 47
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html"nulltrue);
  151.         echo "
  152.             </h1>
  153. \t\t</div>
  154. \t</div>
  155. \t";
  156.         // line 55
  157.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.after_content_header");
  158.         echo "
  159. \t<div class=\"ui hidden divider\"></div>
  160.     <div class=\"register\">
  161.         ";
  162.         // line 59
  163.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.before_form");
  164.         echo "
  165.         ";
  166.         // line 61
  167.         if ((twig_in_filter("go_to"twig_get_array_keys_filter((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'61$this->source); })()))) || ((isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'61$this->source); })()) == "cart"))) {
  168.             // line 62
  169.             echo "            ";
  170.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'62$this->source); })()), 'form_start', ["action" => ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_register") . "?destination=cart"), "attr" => ["class" => "ui loadable form""novalidate" => "novalidate"]]);
  171.             echo "
  172.         ";
  173.         } else {
  174.             // line 64
  175.             echo "            ";
  176.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'64$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_register"), "attr" => ["class" => "ui loadable form""novalidate" => "novalidate"]]);
  177.             echo "        
  178.         ";
  179.         }
  180.         // line 66
  181.         echo "
  182.         <h4 class=\"header-underline\">
  183.             <i class=\"fas fa-user\"></i> &nbsp;";
  184.         // line 68
  185.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.account_credentials"), "html"nulltrue);
  186.         echo "
  187.             <span class=\"italic\">
  188.                 (<span style=\"color: red;\">*</span>";
  189.         // line 70
  190.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.champs_obligatoires"), "html"nulltrue);
  191.         echo ")
  192.             </span>
  193.         </h4>
  194.         <div class=\"two fields\">
  195.             ";
  196.         // line 75
  197.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'75$this->source); })()), "email", [], "any"falsefalsefalse75), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("email"));
  198.         echo "
  199.         </div>
  200.         <div class=\"two fields\">
  201.             ";
  202.         // line 78
  203.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'78$this->source); })()), "user", [], "any"falsefalsefalse78), "plainPassword", [], "any"falsefalsefalse78), "first", [], "any"falsefalsefalse78), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("password-first"));
  204.         echo "
  205.             ";
  206.         // line 79
  207.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($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); })()), "user", [], "any"falsefalsefalse79), "plainPassword", [], "any"falsefalsefalse79), "second", [], "any"falsefalsefalse79), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("password-second"));
  208.         echo "
  209.         </div>
  210.         <div class=\"help_pass\">";
  211.         // line 81
  212.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.help_password"), "html"nulltrue);
  213.         echo "</div>
  214.        
  215.         <br><br>
  216.         <h4 class=\"header-underline\">
  217.             <i class=\"fas fa-user\"></i> &nbsp;";
  218.         // line 87
  219.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.personal_information"), "html"nulltrue);
  220.         echo "
  221.             <span class=\"italic\">
  222.                 (<span style=\"color: red;\">*</span>";
  223.         // line 89
  224.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.champs_obligatoires"), "html"nulltrue);
  225.         echo ")
  226.             </span>
  227.         </h4>
  228.         <div class=\"two fields\">
  229.             ";
  230.         // line 97
  231.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'97$this->source); })()), "gender", [], "any"falsefalsefalse97), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("gender"));
  232.         echo "
  233.             ";
  234.         // line 98
  235.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'98$this->source); })()), "firstName", [], "any"falsefalsefalse98), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("first-name"));
  236.         echo "
  237.         </div>
  238.         <div class=\"two fields\">
  239.             ";
  240.         // line 102
  241.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'102$this->source); })()), "lastName", [], "any"falsefalsefalse102), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("last-name"));
  242.         echo "
  243.             ";
  244.         // line 103
  245.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'103$this->source); })()), "birthday", [], "any"falsefalsefalse103), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("birthday"));
  246.         echo "
  247.         </div>
  248.         ";
  249.         // line 107
  250.         echo "        ";
  251.         // line 112
  252.         echo "
  253.         ";
  254.         // line 114
  255.         echo "
  256.         ";
  257.         // line 116
  258.         echo "
  259.         ";
  260.         // line 117
  261.         if ((twig_in_filter("go_to"twig_get_array_keys_filter((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'117$this->source); })()))) || ((isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'117$this->source); })()) == "cart"))) {
  262.             // line 118
  263.             echo "            ";
  264.             // line 119
  265.             echo "            <input type=\"hidden\" value=\"cart\" name=\"destination\"/>
  266.             <input type=\"hidden\" value=\"";
  267.             // line 120
  268.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_cart_summary");
  269.             echo "\" name=\"go_to\"/>
  270.         ";
  271.         }
  272.         // line 122
  273.         echo "
  274.         ";
  275.         // line 123
  276.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.form", ["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'123$this->source); })())]);
  277.         echo "
  278.         <div class=\"ui hidden divider\"></div>
  279.         <div class=\"ui grid\"></div>
  280.         <br>
  281.         <div class=\"text-right\">
  282.             <button type=\"submit\" class=\"button button--secondary\" ";
  283.         // line 128
  284.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("register-button");
  285.         echo ">
  286.                 ";
  287.         // line 129
  288.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html"nulltrue);
  289.         echo "
  290.             </button>
  291.         </div>
  292.         ";
  293.         // line 132
  294.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'132$this->source); })()), "_token", [], "any"falsefalsefalse132), 'row');
  295.         echo "
  296.         ";
  297.         // line 133
  298.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'133$this->source); })()), 'form_end', ["render_rest" => false]);
  299.         echo "
  300.     </div>
  301. \t<div class=\"ui hidden divider\"></div>
  302.     <div class=\"citation\" data-aos=\"fade-up\">
  303.         <div class=\"container\">
  304.             <p>\t«&nbsp;\t";
  305.         // line 139
  306.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.text_register"), "html"nulltrue);
  307.         echo "&nbsp;»</p>
  308.             ";
  309.         // line 140
  310.         if ((twig_in_filter("go_to"twig_get_array_keys_filter((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'140$this->source); })()))) || ((isset($context["destination"]) || array_key_exists("destination"$context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.'140$this->source); })()) == "cart"))) {
  311.             // line 141
  312.             echo "                <a href=\"";
  313.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  314.             echo "\" class=\"button button--secondary button--medium\">";
  315.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in_here"), "html"nulltrue);
  316.             echo "</a>
  317.             ";
  318.         } else {
  319.             // line 142
  320.             echo "            
  321.                 <a href=\"";
  322.             // line 143
  323.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  324.             echo "?destination=cart\" class=\"button button--secondary button--medium\">";
  325.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in_here"), "html"nulltrue);
  326.             echo "</a>            
  327.             ";
  328.         }
  329.         // line 144
  330.         echo "            
  331.         </div>
  332.     </div>
  333. ";
  334.         
  335.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  336.         
  337.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  338.     }
  339.     // line 21
  340.     public function block_breadcrumb($context, array $blocks = [])
  341.     {
  342.         $macros $this->macros;
  343.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  344.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  346.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  347.         // line 22
  348.         echo "        <div class=\"ui breadcrumb\">
  349.             <a href=\"";
  350.         // line 23
  351.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  352.         echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  353.             <div class=\"divider\"> / </div>
  354.             <div class=\"active section\">";
  355.         // line 25
  356.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.nouvelutilisateur"), "html"nulltrue);
  357.         echo "</div>
  358.         </div>
  359.     ";
  360.         
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  362.         
  363.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  364.     }
  365.     // line 152
  366.     public function block_javascripts($context, array $blocks = [])
  367.     {
  368.         $macros $this->macros;
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  370.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  372.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  373.         // line 153
  374.         echo "\t";
  375.         $this->displayParentBlock("javascripts"$context$blocks);
  376.         echo "
  377. \t<script type=\"text/javascript\">
  378. \t\tconst group = \$('#sylius_customer_registration_gender .grouped.fields');
  379. group.removeClass('grouped').addClass('inline').removeClass('required');
  380. \$('.toggle.checkbox', group).removeClass('toggle').addClass('radio');
  381. \t</script>
  382. ";
  383.         
  384.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  385.         
  386.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  387.     }
  388.     public function getTemplateName()
  389.     {
  390.         return "@SyliusShop/register.html.twig";
  391.     }
  392.     public function isTraitable()
  393.     {
  394.         return false;
  395.     }
  396.     public function getDebugInfo()
  397.     {
  398.         return array (  435 => 153,  425 => 152,  412 => 25,  407 => 23,  404 => 22,  394 => 21,  378 => 144,  371 => 143,  368 => 142,  360 => 141,  358 => 140,  354 => 139,  345 => 133,  341 => 132,  335 => 129,  331 => 128,  323 => 123,  320 => 122,  315 => 120,  312 => 119,  310 => 118,  308 => 117,  305 => 116,  302 => 114,  299 => 112,  297 => 107,  291 => 103,  287 => 102,  280 => 98,  276 => 97,  265 => 89,  260 => 87,  251 => 81,  246 => 79,  242 => 78,  236 => 75,  228 => 70,  223 => 68,  219 => 66,  213 => 64,  207 => 62,  205 => 61,  200 => 59,  193 => 55,  182 => 47,  177 => 45,  167 => 37,  164 => 36,  161 => 35,  159 => 34,  154 => 33,  151 => 32,  148 => 31,  146 => 30,  142 => 28,  140 => 21,  137 => 20,  127 => 19,  116 => 15,  106 => 14,  86 => 10,  76 => 4,  66 => 3,  55 => 1,  53 => 8,  40 => 1,);
  399.     }
  400.     public function getSourceContext()
  401.     {
  402.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  403. {% block banner %}
  404.     {# render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) #}
  405. {% endblock %}
  406. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  407. {% block title %}Inscription
  408. {% endblock %}
  409. {% block metatags %}
  410. \t<meta name=\"description\" content=\"Créer un nouveau compte\">
  411. {% endblock %}
  412. {% block content %}
  413.     {% block breadcrumb %}
  414.         <div class=\"ui breadcrumb\">
  415.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  416.             <div class=\"divider\"> / </div>
  417.             <div class=\"active section\">{{ 'sylius.ui.nouvelutilisateur'|trans }}</div>
  418.         </div>
  419.     {% endblock %}
  420.     {% set destination = app.request.query.get(\"destination\") %}
  421.     {% if (destination == \"\") %}
  422.         {% set destination =  app.request.request.get(\"destination\") %}
  423.     {% endif %}    
  424.     {% if destination == \"\" and app.session is not null and app.session.started and app.session.get(\"_sylius.cart.Mons\")  is not null %}
  425.         {% set destination = \"cart\" %}
  426.     {% endif %}
  427.     
  428. \t<div class=\"ui hidden divider\"></div>
  429. \t<div class=\"ui two column stackable grid\">
  430. \t\t<div class=\"column\">
  431.             <h1 class=\"page__title\">
  432.                 <span class=\"page__tagline\">
  433.                     {{ 'sylius.ui.shop'|trans }}
  434.                 </span>
  435.                 {{ 'sylius.ui.create_an_account'|trans }}
  436.             </h1>
  437. \t\t</div>
  438. \t</div>
  439. \t{{ sylius_template_event('sylius.shop.register.after_content_header') }}
  440. \t<div class=\"ui hidden divider\"></div>
  441.     <div class=\"register\">
  442.         {{ sylius_template_event('sylius.shop.register.before_form') }}
  443.         {% if 'go_to' in form|keys or destination == \"cart\" %}
  444.             {{ form_start(form, {'action': path('sylius_shop_register') ~ '?destination=cart', 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }}
  445.         {% else %}
  446.             {{ form_start(form, {'action': path('sylius_shop_register'), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }}        
  447.         {% endif %}
  448.         <h4 class=\"header-underline\">
  449.             <i class=\"fas fa-user\"></i> &nbsp;{{ 'sylius.ui.account_credentials'|trans }}
  450.             <span class=\"italic\">
  451.                 (<span style=\"color: red;\">*</span>{{ 'sylius.ui.champs_obligatoires'|trans }})
  452.             </span>
  453.         </h4>
  454.         <div class=\"two fields\">
  455.             {{ form_row(form.email, sylius_test_form_attribute('email')) }}
  456.         </div>
  457.         <div class=\"two fields\">
  458.             {{ form_row(form.user.plainPassword.first, sylius_test_form_attribute('password-first')) }}
  459.             {{ form_row(form.user.plainPassword.second, sylius_test_form_attribute('password-second')) }}
  460.         </div>
  461.         <div class=\"help_pass\">{{ 'sylius.ui.help_password'|trans }}</div>
  462.        
  463.         <br><br>
  464.         <h4 class=\"header-underline\">
  465.             <i class=\"fas fa-user\"></i> &nbsp;{{ 'sylius.ui.personal_information'|trans }}
  466.             <span class=\"italic\">
  467.                 (<span style=\"color: red;\">*</span>{{ 'sylius.ui.champs_obligatoires'|trans }})
  468.             </span>
  469.         </h4>
  470.         <div class=\"two fields\">
  471.             {{ form_row(form.gender, sylius_test_form_attribute('gender')) }}
  472.             {{ form_row(form.firstName, sylius_test_form_attribute('first-name')) }}
  473.         </div>
  474.         <div class=\"two fields\">
  475.             {{ form_row(form.lastName, sylius_test_form_attribute('last-name')) }}
  476.             {{ form_row(form.birthday, sylius_test_form_attribute('birthday')) }}
  477.         </div>
  478.         {# TODO Luc a réactiver si nécéssaire mais alors faire le contrôle de validatié de carte - complexe car on a pas validé ici l'email et la date de naissance #}
  479.         {# if  fidelium_his_activate   %}        
  480.         <div class=\"two fields\">
  481.             {{ form_row(form.fideliumcard, sylius_test_form_attribute('fideliumcard')) }}
  482.         </div>
  483.         {% endif #}
  484.         {# form_row(form.phoneNumber, sylius_test_form_attribute('phone-number')) #}
  485.         {# form_row(form.subscribedToNewsletter, sylius_test_form_attribute('subscribed-to-newsletter')) #}
  486.         {% if 'go_to' in form|keys or destination == \"cart\" %}
  487.             {# form_row(form.go_to, { 'value':  path('sylius_shop_cart_summary')  }) #}
  488.             <input type=\"hidden\" value=\"cart\" name=\"destination\"/>
  489.             <input type=\"hidden\" value=\"{{ path('sylius_shop_cart_summary') }}\" name=\"go_to\"/>
  490.         {% endif %}
  491.         {{ sylius_template_event('sylius.shop.register.form', {'form': form}) }}
  492.         <div class=\"ui hidden divider\"></div>
  493.         <div class=\"ui grid\"></div>
  494.         <br>
  495.         <div class=\"text-right\">
  496.             <button type=\"submit\" class=\"button button--secondary\" {{ sylius_test_html_attribute('register-button') }}>
  497.                 {{ 'sylius.ui.create_an_account'|trans }}
  498.             </button>
  499.         </div>
  500.         {{ form_row(form._token) }}
  501.         {{ form_end(form, {'render_rest': false}) }}
  502.     </div>
  503. \t<div class=\"ui hidden divider\"></div>
  504.     <div class=\"citation\" data-aos=\"fade-up\">
  505.         <div class=\"container\">
  506.             <p>\t«&nbsp;\t{{ 'sylius.ui.text_register'|trans }}&nbsp;»</p>
  507.             {% if 'go_to' in form|keys or destination == \"cart\" %}
  508.                 <a href=\"{{ path('sylius_shop_login') }}\" class=\"button button--secondary button--medium\">{{ 'sylius.ui.sign_in_here'|trans }}</a>
  509.             {% else %}            
  510.                 <a href=\"{{ path('sylius_shop_login') }}?destination=cart\" class=\"button button--secondary button--medium\">{{ 'sylius.ui.sign_in_here'|trans }}</a>            
  511.             {% endif %}            
  512.         </div>
  513.     </div>
  514. {% endblock %}
  515. {% block javascripts %}
  516. \t{{ parent() }}
  517. \t<script type=\"text/javascript\">
  518. \t\tconst group = \$('#sylius_customer_registration_gender .grouped.fields');
  519. group.removeClass('grouped').addClass('inline').removeClass('required');
  520. \$('.toggle.checkbox', group).removeClass('toggle').addClass('radio');
  521. \t</script>
  522. {% endblock %}
  523. ""@SyliusShop/register.html.twig""/home/mons/site/www/templates/bundles/SyliusShopBundle/register.html.twig");
  524.     }
  525. }