var/cache/staging/twig/a6/a67a284d9e268b2928d4409d71f32081.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* registration/register.html.twig */
  18. class __TwigTemplate_6c97996b08aa1c566cdac7c7ff20b3d3 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'title' => [$this, 'block_title'],
  33. 'stylesheets' => [$this, 'block_stylesheets'],
  34. 'body' => [$this, 'block_body'],
  35. ];
  36. }
  37. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  38. {
  39. // line 1
  40. return $this->parent ??= $this->load("base.html.twig", 1);
  41. }
  42. protected function doDisplay(array $context, array $blocks = []): iterable
  43. {
  44. $macros = $this->macros;
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  49. $this->parent = $this->load("base.html.twig", 1);
  50. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53. }
  54. // line 3
  55. /**
  56. * @return iterable<null|scalar|\Stringable>
  57. */
  58. public function block_title(array $context, array $blocks = []): iterable
  59. {
  60. $macros = $this->macros;
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  65. yield "Créer mon compte";
  66. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68. return; yield;
  69. }
  70. // line 5
  71. /**
  72. * @return iterable<null|scalar|\Stringable>
  73. */
  74. public function block_stylesheets(array $context, array $blocks = []): iterable
  75. {
  76. $macros = $this->macros;
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  81. // line 6
  82. yield " ";
  83. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("register-style");
  84. yield "
  85. ";
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88. return; yield;
  89. }
  90. // line 9
  91. /**
  92. * @return iterable<null|scalar|\Stringable>
  93. */
  94. public function block_body(array $context, array $blocks = []): iterable
  95. {
  96. $macros = $this->macros;
  97. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  99. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  101. // line 10
  102. yield " ";
  103. 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');
  104. yield "
  105. <div class=\"banner is-register\">
  106. <div class=\"container h-100\">
  107. <div class=\"row\">
  108. <div class=\"col-lg-6 col-xl-7 mx-auto\">
  109. <div class=\"card my-5 border-0 rounded-3 shadow-lg\">
  110. <div class=\"card-body p-4 p-sm-5\">
  111. ";
  112. // line 17
  113. 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)) {
  114. // line 18
  115. yield " <div class=\"mb-3\">
  116. Vous êtes déjà connecté avec le compte de
  117. <strong>";
  118. // line 20
  119. 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);
  120. yield "</strong>,
  121. <a href=\"";
  122. // line 21
  123. 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);
  124. yield "\">Déconnexion</a>
  125. </div>
  126. ";
  127. }
  128. // line 24
  129. yield "
  130. <div class=\"mb-3\">
  131. <div class=\"row\">
  132. <div class=\"col-12 col-lg-6 d-flex justify-content-center justify-content-lg-start\">
  133. <h1 class=\"h3\"><strong>Créer mon compte</strong></h1>
  134. </div>
  135. </div>
  136. </div>
  137. ";
  138. // line 33
  139. 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))) {
  140. // line 34
  141. yield " ";
  142. $context['_parent'] = $context;
  143. $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));
  144. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  145. // line 35
  146. yield " ";
  147. 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")) {
  148. // line 36
  149. yield " <div id=\"message-popup-wrapper\" class=\"message-popup-wrapper\" style=\"display: block\">
  150. <div class=\"message-popup\">
  151. <i class=\"fas fa-exclamation-circle\"></i>
  152. <p class=\"popup-title\">
  153. <b>
  154. Attention :
  155. <strong>Votre email est déjà présent dans notre base.</strong>
  156. </b>
  157. </p>
  158. <p class=\"popup-content\">
  159. Vous ne pouvez créer qu’un seul compte sur la plateforme Zinvaziv. Merci d’utiliser
  160. une autre adresse email.
  161. </p>
  162. <a href=\"";
  163. // line 53
  164. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  165. yield "\" class=\"btn btn-outline-orange\" type=\"submit\">
  166. M\x27inscrire avec une autre adresse email
  167. </a>
  168. </div>
  169. </div>
  170. ";
  171. }
  172. // line 59
  173. yield " ";
  174. }
  175. $_parent = $context['_parent'];
  176. unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
  177. $context = array_intersect_key($context, $_parent);
  178. $context += $_parent;
  179. // line 60
  180. yield " ";
  181. }
  182. // line 61
  183. yield "
  184. <div class=\"row\">
  185. <div class=\"col-lg-12 mt-2\">
  186. ";
  187. // line 64
  188. 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');
  189. yield "
  190. </div>
  191. <div class=\"col-lg-6 mt-4\">
  192. ";
  193. // line 68
  194. 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');
  195. yield "
  196. </div>
  197. <div class=\"col-lg-6 mt-4\">
  198. ";
  199. // line 71
  200. 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');
  201. yield "
  202. </div>
  203. </div>
  204. <div class=\"mt-4 d-flex justify-content-center\">
  205. <button class=\"btn btn-orange text-start\" type=\"submit\">
  206. S\x27enregistrer
  207. </button>
  208. </div>
  209. <p class=\"mention-legal text-muted mt-3\">
  210. Vous affirmez avoir pris connaissance de notre
  211. <a href=\"";
  212. // line 82
  213. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_politique_de_confidentialite.pdf"), "html", null, true);
  214. yield "\">Politique de confidentialité</a>
  215. nos <a href=\"";
  216. // line 83
  217. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_CGU.pdf"), "html", null, true);
  218. yield "\">Conditions générales d\x27utilisation</a>
  219. et nos <a href=\"";
  220. // line 84
  221. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("files/zinvaziv_CGS.pdf"), "html", null, true);
  222. yield "\" target=\"_blank\">Conditions générales des services</a>.
  223. Conformément à la Loi Informatique et Libertés, vous disposez d’un droit d’accès,
  224. de rectification et d’opposition aux données vous concernant,
  225. que vous pouvez exercer en adressant une demande par email à <a href=\"mailto:contact.zinvaziv@orange.fr\">contact.zinvaziv@orange.fr</a>.
  226. </p>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. ";
  234. // line 95
  235. 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');
  236. yield "
  237. ";
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  239. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  240. return; yield;
  241. }
  242. /**
  243. * @codeCoverageIgnore
  244. */
  245. public function getTemplateName(): string
  246. {
  247. return "registration/register.html.twig";
  248. }
  249. /**
  250. * @codeCoverageIgnore
  251. */
  252. public function isTraitable(): bool
  253. {
  254. return false;
  255. }
  256. /**
  257. * @codeCoverageIgnore
  258. */
  259. public function getDefaultEscapeStrategy(): string|false
  260. {
  261. return "html";
  262. }
  263. /**
  264. * @codeCoverageIgnore
  265. */
  266. public function getDebugInfo(): array
  267. {
  268. 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,);
  269. }
  270. public function getSourceContext(): Source
  271. {
  272. return new Source("{% extends \x27base.html.twig\x27 %}
  273. {% block title %}Créer mon compte{% endblock %}
  274. {% block stylesheets %}
  275. {{ encore_entry_link_tags(\x27register-style\x27) }}
  276. {% endblock %}
  277. {% block body %}
  278. {{ form_start(registration_form) }}
  279. <div class=\"banner is-register\">
  280. <div class=\"container h-100\">
  281. <div class=\"row\">
  282. <div class=\"col-lg-6 col-xl-7 mx-auto\">
  283. <div class=\"card my-5 border-0 rounded-3 shadow-lg\">
  284. <div class=\"card-body p-4 p-sm-5\">
  285. {% if app.user %}
  286. <div class=\"mb-3\">
  287. Vous êtes déjà connecté avec le compte de
  288. <strong>{{ app.user.lastname ~ \x27 \x27 ~ app.user.firstname }}</strong>,
  289. <a href=\"{{ path(\x27logout\x27, {_csrf_token: csrf_token(\x27logout\x27)}) }}\">Déconnexion</a>
  290. </div>
  291. {% endif %}
  292. <div class=\"mb-3\">
  293. <div class=\"row\">
  294. <div class=\"col-12 col-lg-6 d-flex justify-content-center justify-content-lg-start\">
  295. <h1 class=\"h3\"><strong>Créer mon compte</strong></h1>
  296. </div>
  297. </div>
  298. </div>
  299. {% if registration_form.email.vars.errors is not empty %}
  300. {% for error in registration_form.email.vars.errors %}
  301. {% if get_object_class(error.cause.constraint) == \"UniqueUserEmail\" %}
  302. <div id=\"message-popup-wrapper\" class=\"message-popup-wrapper\" style=\"display: block\">
  303. <div class=\"message-popup\">
  304. <i class=\"fas fa-exclamation-circle\"></i>
  305. <p class=\"popup-title\">
  306. <b>
  307. Attention :
  308. <strong>Votre email est déjà présent dans notre base.</strong>
  309. </b>
  310. </p>
  311. <p class=\"popup-content\">
  312. Vous ne pouvez créer qu’un seul compte sur la plateforme Zinvaziv. Merci d’utiliser
  313. une autre adresse email.
  314. </p>
  315. <a href=\"{{ path(\x27register\x27) }}\" class=\"btn btn-outline-orange\" type=\"submit\">
  316. M\x27inscrire avec une autre adresse email
  317. </a>
  318. </div>
  319. </div>
  320. {% endif %}
  321. {% endfor %}
  322. {% endif %}
  323. <div class=\"row\">
  324. <div class=\"col-lg-12 mt-2\">
  325. {{ form_row(registration_form.email) }}
  326. </div>
  327. <div class=\"col-lg-6 mt-4\">
  328. {{ form_row(registration_form.password.first) }}
  329. </div>
  330. <div class=\"col-lg-6 mt-4\">
  331. {{ form_row(registration_form.password.second) }}
  332. </div>
  333. </div>
  334. <div class=\"mt-4 d-flex justify-content-center\">
  335. <button class=\"btn btn-orange text-start\" type=\"submit\">
  336. S\x27enregistrer
  337. </button>
  338. </div>
  339. <p class=\"mention-legal text-muted mt-3\">
  340. Vous affirmez avoir pris connaissance de notre
  341. <a href=\"{{ asset(\x27files/zinvaziv_politique_de_confidentialite.pdf\x27) }}\">Politique de confidentialité</a>
  342. nos <a href=\"{{ asset(\x27files/zinvaziv_CGU.pdf\x27) }}\">Conditions générales d\x27utilisation</a>
  343. et nos <a href=\"{{ asset(\x27files/zinvaziv_CGS.pdf\x27) }}\" target=\"_blank\">Conditions générales des services</a>.
  344. Conformément à la Loi Informatique et Libertés, vous disposez d’un droit d’accès,
  345. de rectification et d’opposition aux données vous concernant,
  346. que vous pouvez exercer en adressant une demande par email à <a href=\"mailto:contact.zinvaziv@orange.fr\">contact.zinvaziv@orange.fr</a>.
  347. </p>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. {{ form_end(registration_form) }}
  355. {% endblock %}
  356. ", "registration/register.html.twig", "/home/www-dev/dev/zinvaziv.re/app/templates/registration/register.html.twig");
  357. }
  358. }