<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* registration/register.html.twig */
class __TwigTemplate_6c97996b08aa1c566cdac7c7ff20b3d3 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("base.html.twig", 1);
}
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->load("base.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"));
yield "Créer mon compte";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 6
yield " ";
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("register-style");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 9
/**
* @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 10
yield " ";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 10, $this->source); })()), 'form_start');
yield "
<div class=\"banner is-register\">
<div class=\"container h-100\">
<div class=\"row\">
<div class=\"col-lg-6 col-xl-7 mx-auto\">
<div class=\"card my-5 border-0 rounded-3 shadow-lg\">
<div class=\"card-body p-4 p-sm-5\">
";
// line 17
if ((($tmp = 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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 18
yield " <div class=\"mb-3\">
Vous êtes déjà connecté avec le compte de
<strong>";
// line 20
yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, 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.', 20, $this->source); })()), "user", [], "any", false, false, false, 20), "lastname", [], "any", false, false, false, 20) . " ") . CoreExtension::getAttribute($this->env, $this->source, 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.', 20, $this->source); })()), "user", [], "any", false, false, false, 20), "firstname", [], "any", false, false, false, 20)), "html", null, true);
yield "</strong>,
<a href=\"";
// line 21
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout", ["_csrf_token" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("logout")]), "html", null, true);
yield "\">Déconnexion</a>
</div>
";
}
// line 24
yield "
<div class=\"mb-3\">
<div class=\"row\">
<div class=\"col-12 col-lg-6 d-flex justify-content-center justify-content-lg-start\">
<h1 class=\"h3\"><strong>Créer mon compte</strong></h1>
</div>
</div>
</div>
";
// line 33
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 33, $this->source); })()), "email", [], "any", false, false, false, 33), "vars", [], "any", false, false, false, 33), "errors", [], "any", false, false, false, 33))) {
// line 34
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 34, $this->source); })()), "email", [], "any", false, false, false, 34), "vars", [], "any", false, false, false, 34), "errors", [], "any", false, false, false, 34));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 35
yield " ";
if (($this->extensions['App\Twig\ClassExtension']->getObjectClass(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["error"], "cause", [], "any", false, false, false, 35), "constraint", [], "any", false, false, false, 35)) == "UniqueUserEmail")) {
// line 36
yield " <div id=\"message-popup-wrapper\" class=\"message-popup-wrapper\" style=\"display: block\">
<div class=\"message-popup\">
<i class=\"fas fa-exclamation-circle\"></i>
<p class=\"popup-title\">
<b>
Attention :
<strong>Votre email est déjà présent dans notre base.</strong>
</b>
</p>
<p class=\"popup-content\">
Vous ne pouvez créer qu’un seul compte sur la plateforme Zinvaziv. Merci d’utiliser
une autre adresse email.
</p>
<a href=\"";
// line 53
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
yield "\" class=\"btn btn-outline-orange\" type=\"submit\">
M\x27inscrire avec une autre adresse email
</a>
</div>
</div>
";
}
// line 59
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 60
yield " ";
}
// line 61
yield "
<div class=\"row\">
<div class=\"col-lg-12 mt-2\">
";
// line 64
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 64, $this->source); })()), "email", [], "any", false, false, false, 64), 'row');
yield "
</div>
<div class=\"col-lg-6 mt-4\">
";
// line 68
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 68, $this->source); })()), "password", [], "any", false, false, false, 68), "first", [], "any", false, false, false, 68), 'row');
yield "
</div>
<div class=\"col-lg-6 mt-4\">
";
// line 71
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 71, $this->source); })()), "password", [], "any", false, false, false, 71), "second", [], "any", false, false, false, 71), 'row');
yield "
</div>
</div>
<div class=\"mt-4 d-flex justify-content-center\">
<button class=\"btn btn-orange text-start\" type=\"submit\">
S\x27enregistrer
</button>
</div>
<p class=\"mention-legal text-muted mt-3\">
Vous affirmez avoir pris connaissance de notre
<a href=\"";
// line 82
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_politique_de_confidentialite.pdf"), "html", null, true);
yield "\">Politique de confidentialité</a>
nos <a href=\"";
// line 83
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_CGU.pdf"), "html", null, true);
yield "\">Conditions générales d\x27utilisation</a>
et nos <a href=\"";
// line 84
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_CGS.pdf"), "html", null, true);
yield "\" target=\"_blank\">Conditions générales des services</a>.
Conformément à la Loi Informatique et Libertés, vous disposez d’un droit d’accès,
de rectification et d’opposition aux données vous concernant,
que vous pouvez exercer en adressant une demande par email à <a href=\"mailto:contact.zinvaziv@orange.fr\">contact.zinvaziv@orange.fr</a>.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 95
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registration_form"]) || array_key_exists("registration_form", $context) ? $context["registration_form"] : (function () { throw new RuntimeError('Variable "registration_form" does not exist.', 95, $this->source); })()), 'form_end');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "registration/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 273 => 95, 259 => 84, 255 => 83, 251 => 82, 237 => 71, 231 => 68, 224 => 64, 219 => 61, 216 => 60, 209 => 59, 200 => 53, 181 => 36, 178 => 35, 173 => 34, 171 => 33, 160 => 24, 154 => 21, 150 => 20, 146 => 18, 144 => 17, 133 => 10, 120 => 9, 106 => 6, 93 => 5, 70 => 3, 47 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block title %}Créer mon compte{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags(\x27register-style\x27) }}
{% endblock %}
{% block body %}
{{ form_start(registration_form) }}
<div class=\"banner is-register\">
<div class=\"container h-100\">
<div class=\"row\">
<div class=\"col-lg-6 col-xl-7 mx-auto\">
<div class=\"card my-5 border-0 rounded-3 shadow-lg\">
<div class=\"card-body p-4 p-sm-5\">
{% if app.user %}
<div class=\"mb-3\">
Vous êtes déjà connecté avec le compte de
<strong>{{ app.user.lastname ~ \x27 \x27 ~ app.user.firstname }}</strong>,
<a href=\"{{ path(\x27logout\x27, {_csrf_token: csrf_token(\x27logout\x27)}) }}\">Déconnexion</a>
</div>
{% endif %}
<div class=\"mb-3\">
<div class=\"row\">
<div class=\"col-12 col-lg-6 d-flex justify-content-center justify-content-lg-start\">
<h1 class=\"h3\"><strong>Créer mon compte</strong></h1>
</div>
</div>
</div>
{% if registration_form.email.vars.errors is not empty %}
{% for error in registration_form.email.vars.errors %}
{% if get_object_class(error.cause.constraint) == \"UniqueUserEmail\" %}
<div id=\"message-popup-wrapper\" class=\"message-popup-wrapper\" style=\"display: block\">
<div class=\"message-popup\">
<i class=\"fas fa-exclamation-circle\"></i>
<p class=\"popup-title\">
<b>
Attention :
<strong>Votre email est déjà présent dans notre base.</strong>
</b>
</p>
<p class=\"popup-content\">
Vous ne pouvez créer qu’un seul compte sur la plateforme Zinvaziv. Merci d’utiliser
une autre adresse email.
</p>
<a href=\"{{ path(\x27register\x27) }}\" class=\"btn btn-outline-orange\" type=\"submit\">
M\x27inscrire avec une autre adresse email
</a>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
<div class=\"row\">
<div class=\"col-lg-12 mt-2\">
{{ form_row(registration_form.email) }}
</div>
<div class=\"col-lg-6 mt-4\">
{{ form_row(registration_form.password.first) }}
</div>
<div class=\"col-lg-6 mt-4\">
{{ form_row(registration_form.password.second) }}
</div>
</div>
<div class=\"mt-4 d-flex justify-content-center\">
<button class=\"btn btn-orange text-start\" type=\"submit\">
S\x27enregistrer
</button>
</div>
<p class=\"mention-legal text-muted mt-3\">
Vous affirmez avoir pris connaissance de notre
<a href=\"{{ asset(\x27files/zinvaziv_politique_de_confidentialite.pdf\x27) }}\">Politique de confidentialité</a>
nos <a href=\"{{ asset(\x27files/zinvaziv_CGU.pdf\x27) }}\">Conditions générales d\x27utilisation</a>
et nos <a href=\"{{ asset(\x27files/zinvaziv_CGS.pdf\x27) }}\" target=\"_blank\">Conditions générales des services</a>.
Conformément à la Loi Informatique et Libertés, vous disposez d’un droit d’accès,
de rectification et d’opposition aux données vous concernant,
que vous pouvez exercer en adressant une demande par email à <a href=\"mailto:contact.zinvaziv@orange.fr\">contact.zinvaziv@orange.fr</a>.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
{{ form_end(registration_form) }}
{% endblock %}
", "registration/register.html.twig", "/home/www-dev/dev/zinvaziv.re/app/templates/registration/register.html.twig");
}
}