<?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;
/* @SyliusShop/register.html.twig */
class __TwigTemplate_48a73c4aa010131cb5b438d25153e2a82d7286333c68f0da06fbd056e0d50139 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'banner' => [$this, 'block_banner'],
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'content' => [$this, 'block_content'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/register.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/register.html.twig"));
// line 8
$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); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/register.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
// line 4
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Inscription
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 15
echo "\t<meta name=\"description\" content=\"Créer un nouveau compte\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 20
echo "
";
// line 21
$this->displayBlock('breadcrumb', $context, $blocks);
// line 28
echo "
";
// line 30
$context["destination"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 30, $this->source); })()), "request", [], "any", false, false, false, 30), "query", [], "any", false, false, false, 30), "get", [0 => "destination"], "method", false, false, false, 30);
// line 31
echo " ";
if (((isset($context["destination"]) || array_key_exists("destination", $context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.', 31, $this->source); })()) == "")) {
// line 32
echo " ";
$context["destination"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "request", [], "any", false, false, false, 32), "get", [0 => "destination"], "method", false, false, false, 32);
// line 33
echo " ";
}
echo "
";
// line 34
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", false, false, false, 34))) && twig_get_attribute($this->env, $this->source, 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", false, false, false, 34), "started", [], "any", false, false, false, 34)) && !(null === twig_get_attribute($this->env, $this->source, 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", false, false, false, 34), "get", [0 => "_sylius.cart.Mons"], "method", false, false, false, 34)))) {
// line 35
echo " ";
$context["destination"] = "cart";
// line 36
echo " ";
}
// line 37
echo "
\t<div class=\"ui hidden divider\"></div>
\t<div class=\"ui two column stackable grid\">
\t\t<div class=\"column\">
<h1 class=\"page__title\">
<span class=\"page__tagline\">
";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.shop"), "html", null, true);
echo "
</span>
";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html", null, true);
echo "
</h1>
\t\t</div>
\t</div>
\t";
// line 55
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.after_content_header");
echo "
\t<div class=\"ui hidden divider\"></div>
<div class=\"register\">
";
// line 59
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.before_form");
echo "
";
// line 61
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"))) {
// line 62
echo " ";
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"]]);
echo "
";
} else {
// line 64
echo " ";
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"]]);
echo "
";
}
// line 66
echo "
<h4 class=\"header-underline\">
<i class=\"fas fa-user\"></i> ";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.account_credentials"), "html", null, true);
echo "
<span class=\"italic\">
(<span style=\"color: red;\">*</span>";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.champs_obligatoires"), "html", null, true);
echo ")
</span>
</h4>
<div class=\"two fields\">
";
// line 75
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", false, false, false, 75), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("email"));
echo "
</div>
<div class=\"two fields\">
";
// line 78
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 78, $this->source); })()), "user", [], "any", false, false, false, 78), "plainPassword", [], "any", false, false, false, 78), "first", [], "any", false, false, false, 78), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("password-first"));
echo "
";
// line 79
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 79, $this->source); })()), "user", [], "any", false, false, false, 79), "plainPassword", [], "any", false, false, false, 79), "second", [], "any", false, false, false, 79), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("password-second"));
echo "
</div>
<div class=\"help_pass\">";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.help_password"), "html", null, true);
echo "</div>
<br><br>
<h4 class=\"header-underline\">
<i class=\"fas fa-user\"></i> ";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.personal_information"), "html", null, true);
echo "
<span class=\"italic\">
(<span style=\"color: red;\">*</span>";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.champs_obligatoires"), "html", null, true);
echo ")
</span>
</h4>
<div class=\"two fields\">
";
// line 97
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", false, false, false, 97), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("gender"));
echo "
";
// line 98
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", false, false, false, 98), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("first-name"));
echo "
</div>
<div class=\"two fields\">
";
// line 102
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", false, false, false, 102), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("last-name"));
echo "
";
// line 103
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", false, false, false, 103), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("birthday"));
echo "
</div>
";
// line 107
echo " ";
// line 112
echo "
";
// line 114
echo "
";
// line 116
echo "
";
// line 117
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"))) {
// line 118
echo " ";
// line 119
echo " <input type=\"hidden\" value=\"cart\" name=\"destination\"/>
<input type=\"hidden\" value=\"";
// line 120
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_cart_summary");
echo "\" name=\"go_to\"/>
";
}
// line 122
echo "
";
// line 123
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); })())]);
echo "
<div class=\"ui hidden divider\"></div>
<div class=\"ui grid\"></div>
<br>
<div class=\"text-right\">
<button type=\"submit\" class=\"button button--secondary\" ";
// line 128
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("register-button");
echo ">
";
// line 129
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html", null, true);
echo "
</button>
</div>
";
// line 132
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", false, false, false, 132), 'row');
echo "
";
// line 133
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]);
echo "
</div>
\t<div class=\"ui hidden divider\"></div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>\t« \t";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.text_register"), "html", null, true);
echo " »</p>
";
// line 140
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"))) {
// line 141
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\" class=\"button button--secondary button--medium\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in_here"), "html", null, true);
echo "</a>
";
} else {
// line 142
echo "
<a href=\"";
// line 143
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "?destination=cart\" class=\"button button--secondary button--medium\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in_here"), "html", null, true);
echo "</a>
";
}
// line 144
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 22
echo " <div class=\"ui breadcrumb\">
<a href=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<div class=\"active section\">";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.nouvelutilisateur"), "html", null, true);
echo "</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 152
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 153
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t<script type=\"text/javascript\">
\t\tconst group = \$('#sylius_customer_registration_gender .grouped.fields');
group.removeClass('grouped').addClass('inline').removeClass('required');
\$('.toggle.checkbox', group).removeClass('toggle').addClass('radio');
\t</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/register.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block banner %}
{# render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) #}
{% endblock %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{% block title %}Inscription
{% endblock %}
{% block metatags %}
\t<meta name=\"description\" content=\"Créer un nouveau compte\">
{% endblock %}
{% block content %}
{% block breadcrumb %}
<div class=\"ui breadcrumb\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<div class=\"active section\">{{ 'sylius.ui.nouvelutilisateur'|trans }}</div>
</div>
{% endblock %}
{% set destination = app.request.query.get(\"destination\") %}
{% if (destination == \"\") %}
{% set destination = app.request.request.get(\"destination\") %}
{% endif %}
{% if destination == \"\" and app.session is not null and app.session.started and app.session.get(\"_sylius.cart.Mons\") is not null %}
{% set destination = \"cart\" %}
{% endif %}
\t<div class=\"ui hidden divider\"></div>
\t<div class=\"ui two column stackable grid\">
\t\t<div class=\"column\">
<h1 class=\"page__title\">
<span class=\"page__tagline\">
{{ 'sylius.ui.shop'|trans }}
</span>
{{ 'sylius.ui.create_an_account'|trans }}
</h1>
\t\t</div>
\t</div>
\t{{ sylius_template_event('sylius.shop.register.after_content_header') }}
\t<div class=\"ui hidden divider\"></div>
<div class=\"register\">
{{ sylius_template_event('sylius.shop.register.before_form') }}
{% if 'go_to' in form|keys or destination == \"cart\" %}
{{ form_start(form, {'action': path('sylius_shop_register') ~ '?destination=cart', 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }}
{% else %}
{{ form_start(form, {'action': path('sylius_shop_register'), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }}
{% endif %}
<h4 class=\"header-underline\">
<i class=\"fas fa-user\"></i> {{ 'sylius.ui.account_credentials'|trans }}
<span class=\"italic\">
(<span style=\"color: red;\">*</span>{{ 'sylius.ui.champs_obligatoires'|trans }})
</span>
</h4>
<div class=\"two fields\">
{{ form_row(form.email, sylius_test_form_attribute('email')) }}
</div>
<div class=\"two fields\">
{{ form_row(form.user.plainPassword.first, sylius_test_form_attribute('password-first')) }}
{{ form_row(form.user.plainPassword.second, sylius_test_form_attribute('password-second')) }}
</div>
<div class=\"help_pass\">{{ 'sylius.ui.help_password'|trans }}</div>
<br><br>
<h4 class=\"header-underline\">
<i class=\"fas fa-user\"></i> {{ 'sylius.ui.personal_information'|trans }}
<span class=\"italic\">
(<span style=\"color: red;\">*</span>{{ 'sylius.ui.champs_obligatoires'|trans }})
</span>
</h4>
<div class=\"two fields\">
{{ form_row(form.gender, sylius_test_form_attribute('gender')) }}
{{ form_row(form.firstName, sylius_test_form_attribute('first-name')) }}
</div>
<div class=\"two fields\">
{{ form_row(form.lastName, sylius_test_form_attribute('last-name')) }}
{{ form_row(form.birthday, sylius_test_form_attribute('birthday')) }}
</div>
{# 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 #}
{# if fidelium_his_activate %}
<div class=\"two fields\">
{{ form_row(form.fideliumcard, sylius_test_form_attribute('fideliumcard')) }}
</div>
{% endif #}
{# form_row(form.phoneNumber, sylius_test_form_attribute('phone-number')) #}
{# form_row(form.subscribedToNewsletter, sylius_test_form_attribute('subscribed-to-newsletter')) #}
{% if 'go_to' in form|keys or destination == \"cart\" %}
{# form_row(form.go_to, { 'value': path('sylius_shop_cart_summary') }) #}
<input type=\"hidden\" value=\"cart\" name=\"destination\"/>
<input type=\"hidden\" value=\"{{ path('sylius_shop_cart_summary') }}\" name=\"go_to\"/>
{% endif %}
{{ sylius_template_event('sylius.shop.register.form', {'form': form}) }}
<div class=\"ui hidden divider\"></div>
<div class=\"ui grid\"></div>
<br>
<div class=\"text-right\">
<button type=\"submit\" class=\"button button--secondary\" {{ sylius_test_html_attribute('register-button') }}>
{{ 'sylius.ui.create_an_account'|trans }}
</button>
</div>
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
</div>
\t<div class=\"ui hidden divider\"></div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>\t« \t{{ 'sylius.ui.text_register'|trans }} »</p>
{% if 'go_to' in form|keys or destination == \"cart\" %}
<a href=\"{{ path('sylius_shop_login') }}\" class=\"button button--secondary button--medium\">{{ 'sylius.ui.sign_in_here'|trans }}</a>
{% else %}
<a href=\"{{ path('sylius_shop_login') }}?destination=cart\" class=\"button button--secondary button--medium\">{{ 'sylius.ui.sign_in_here'|trans }}</a>
{% endif %}
</div>
</div>
{% endblock %}
{% block javascripts %}
\t{{ parent() }}
\t<script type=\"text/javascript\">
\t\tconst group = \$('#sylius_customer_registration_gender .grouped.fields');
group.removeClass('grouped').addClass('inline').removeClass('required');
\$('.toggle.checkbox', group).removeClass('toggle').addClass('radio');
\t</script>
{% endblock %}
", "@SyliusShop/register.html.twig", "/home/mons/site/www/templates/bundles/SyliusShopBundle/register.html.twig");
}
}