<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* registration/register.html.twig */
class __TwigTemplate_e20bdafa6880fc8262feba535bd56e35 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "registration/register.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
yield " Créer un compte
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 8
yield " ";
$context["fontcolor"] = (((isset($context["backgroundmode"]) || array_key_exists("backgroundmode", $context) ? $context["backgroundmode"] : (function () { throw new RuntimeError('Variable "backgroundmode" does not exist.', 8, $this->source); })())) ? ("ft-dark") : ("ft-white"));
// line 9
yield " <section class=\"flex-center h-90-vh\">
<div class=\"theme-form border w-max-m w-100\">
<div class=\"\">
<h1 class=\"txt-center b-b p-05 ";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 12, $this->source); })()), "html", null, true);
yield "\">Créer un compte</h1>
</div>
<div class=\"p-1\">
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "flashes", ["verify_email_error"], "method", false, false, false, 15));
foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
// line 16
yield " <div class=\"alert alert-danger\" role=\"alert\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
yield "
";
// line 19
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 19, $this->source); })()), 'form_start', ["attr" => ["class" => ""]]);
yield "
<label for=\"\" class=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 20, $this->source); })()), "html", null, true);
yield "\">Email</label>
";
// line 21
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 21, $this->source); })()), "email", [], "any", false, false, false, 21), 'row');
yield "
<label for=\"\" class=\"";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 22, $this->source); })()), "html", null, true);
yield "\">Nom d'utilisateur</label>
";
// line 23
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 23, $this->source); })()), "userName", [], "any", false, false, false, 23), 'row');
yield "
";
// line 26
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 26, $this->source); })()), "plainPassword", [], "any", false, false, false, 26), 'label', ["label_attr" => ["class" => (isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 26, $this->source); })())], "label" => "Mot de passe"]);
yield "
<div class=\"flex-row w-100 flex-center rel ";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 27, $this->source); })()), "html", null, true);
yield "\">
";
// line 28
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 28, $this->source); })()), "plainPassword", [], "any", false, false, false, 28), 'widget');
yield "
<div onclick=\"togglePasswordVisibility()\" data-toggle=\"btn-bg-4 ft-white\" class=\"pointer flex-center abs top-0 bottom-0 right-0\" id=\"togglePassword\" style=\"border-top-left-radius: 0;border-bottom-left-radius: 0\">
<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z\" />
<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\" />
</svg>
</div>
</div>
<label class=\"check-visible flex-row ";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["fontcolor"]) || array_key_exists("fontcolor", $context) ? $context["fontcolor"] : (function () { throw new RuntimeError('Variable "fontcolor" does not exist.', 37, $this->source); })()), "html", null, true);
yield "\" for=\"\">
<div class=\"flex-row wrap txt-xxs\">
<div class=\"minc p-1\">";
// line 39
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 39, $this->source); })()), "agreeTerms", [], "any", false, false, false, 39), 'row');
yield "</div><span>J'accepte les</span>
<a class=\"m-l-1 m-r-1 inline\" target=\"_blank\" href=\"";
// line 40
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_mentions");
yield "\">Conditions générales d'utilisation</a>
<p class=\"txt-xxs\">et comprends que mes informations ne seront en aucun cas cédées à un tiers sans mon consentement préalable.</p>
</div>
</label>
<button type=\"submit\" style=\"margin-left: auto;\" class=\"trans-2 pointer ft-white bnone btn-2 btn-bg-4 rad1\">Créer un compte</button>
";
// line 47
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 47, $this->source); })()), 'form_end');
yield "
</div>
</div>
</section>
<script src=\"/js/togglePassword.js\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "registration/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 192 => 47, 182 => 40, 178 => 39, 173 => 37, 161 => 28, 157 => 27, 152 => 26, 148 => 23, 144 => 22, 140 => 21, 136 => 20, 132 => 19, 129 => 18, 120 => 16, 116 => 15, 110 => 12, 105 => 9, 102 => 8, 89 => 7, 77 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}
Créer un compte
{% endblock %}
{% block body %}
{% set fontcolor = backgroundmode ? 'ft-dark' : 'ft-white' %}
<section class=\"flex-center h-90-vh\">
<div class=\"theme-form border w-max-m w-100\">
<div class=\"\">
<h1 class=\"txt-center b-b p-05 {{ fontcolor }}\">Créer un compte</h1>
</div>
<div class=\"p-1\">
{% for flash_error in app.flashes('verify_email_error') %}
<div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
{% endfor %}
{{ form_start(registrationForm, { attr: { class: '' } }) }}
<label for=\"\" class=\"{{ fontcolor }}\">Email</label>
{{ form_row(registrationForm.email) }}
<label for=\"\" class=\"{{ fontcolor }}\">Nom d'utilisateur</label>
{{ form_row(registrationForm.userName) }}
{# <label for=\"\">Numéro de téléphone</label>
{{ form_row(registrationForm.telephone) }} #}
{{ form_label(registrationForm.plainPassword, 'Mot de passe', { label_attr: { class: fontcolor } }) }}
<div class=\"flex-row w-100 flex-center rel {{ fontcolor }}\">
{{ form_widget(registrationForm.plainPassword) }}
<div onclick=\"togglePasswordVisibility()\" data-toggle=\"btn-bg-4 ft-white\" class=\"pointer flex-center abs top-0 bottom-0 right-0\" id=\"togglePassword\" style=\"border-top-left-radius: 0;border-bottom-left-radius: 0\">
<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z\" />
<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\" />
</svg>
</div>
</div>
<label class=\"check-visible flex-row {{ fontcolor }}\" for=\"\">
<div class=\"flex-row wrap txt-xxs\">
<div class=\"minc p-1\">{{ form_row(registrationForm.agreeTerms) }}</div><span>J'accepte les</span>
<a class=\"m-l-1 m-r-1 inline\" target=\"_blank\" href=\"{{ path('app_mentions') }}\">Conditions générales d'utilisation</a>
<p class=\"txt-xxs\">et comprends que mes informations ne seront en aucun cas cédées à un tiers sans mon consentement préalable.</p>
</div>
</label>
<button type=\"submit\" style=\"margin-left: auto;\" class=\"trans-2 pointer ft-white bnone btn-2 btn-bg-4 rad1\">Créer un compte</button>
{{ form_end(registrationForm) }}
</div>
</div>
</section>
<script src=\"/js/togglePassword.js\"></script>
{% endblock %}
", "registration/register.html.twig", "/home/u677714286/domains/kapilko.com/public_html/templates/registration/register.html.twig");
}
}