var/cache/dev/twig/40/4003809a2482309fb359f28c76fcecc7.php line 132

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\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* registration/register.html.twig */
  16. class __TwigTemplate_e20bdafa6880fc8262feba535bd56e35 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""registration/register.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""registration/register.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""registration/register.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         // line 4
  63.         yield "  Créer un compte
  64. ";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         yield from [];
  70.     }
  71.     // line 7
  72.     /**
  73.      * @return iterable<null|scalar|\Stringable>
  74.      */
  75.     public function block_body(array $context, array $blocks = []): iterable
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         // line 8
  83.         yield "  ";
  84.         $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"));
  85.         // line 9
  86.         yield "  <section class=\"flex-center h-90-vh\">
  87.     <div class=\"theme-form border w-max-m w-100\">
  88.       <div class=\"\">
  89.         <h1 class=\"txt-center b-b p-05 ";
  90.         // line 12
  91.         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"nulltrue);
  92.         yield "\">Créer un compte</h1>
  93.       </div>
  94.       <div class=\"p-1\">
  95.         ";
  96.         // line 15
  97.         $context['_parent'] = $context;
  98.         $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"falsefalsefalse15));
  99.         foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  100.             // line 16
  101.             yield "          <div class=\"alert alert-danger\" role=\"alert\">";
  102.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html"nulltrue);
  103.             yield "</div>
  104.         ";
  105.         }
  106.         $_parent $context['_parent'];
  107.         unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
  108.         $context array_intersect_key($context$_parent) + $_parent;
  109.         // line 18
  110.         yield "
  111.         ";
  112.         // line 19
  113.         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" => ""]]);
  114.         yield "
  115.         <label for=\"\" class=\"";
  116.         // line 20
  117.         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"nulltrue);
  118.         yield "\">Email</label>
  119.         ";
  120.         // line 21
  121.         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"falsefalsefalse21), 'row');
  122.         yield "
  123.         <label for=\"\" class=\"";
  124.         // line 22
  125.         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"nulltrue);
  126.         yield "\">Nom d'utilisateur</label>
  127.         ";
  128.         // line 23
  129.         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"falsefalsefalse23), 'row');
  130.         yield "
  131.         ";
  132.         // line 26
  133.         yield "        ";
  134.         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"falsefalsefalse26), '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"]);
  135.         yield "
  136.         <div class=\"flex-row w-100 flex-center rel ";
  137.         // line 27
  138.         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"nulltrue);
  139.         yield "\">
  140.           ";
  141.         // line 28
  142.         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"falsefalsefalse28), 'widget');
  143.         yield "
  144.           <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\">
  145.             <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
  146.               <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\" />
  147.               <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\" />
  148.             </svg>
  149.           </div>
  150.         </div>
  151.         <label class=\"check-visible flex-row ";
  152.         // line 37
  153.         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"nulltrue);
  154.         yield "\" for=\"\">
  155.           <div class=\"flex-row wrap txt-xxs\">
  156.             <div class=\"minc p-1\">";
  157.         // line 39
  158.         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"falsefalsefalse39), 'row');
  159.         yield "</div><span>J'accepte les</span>
  160.             <a class=\"m-l-1 m-r-1 inline\" target=\"_blank\" href=\"";
  161.         // line 40
  162.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_mentions");
  163.         yield "\">Conditions générales d'utilisation</a>
  164.             <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>
  165.           </div>
  166.         </label>
  167.         <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>
  168.         ";
  169.         // line 47
  170.         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');
  171.         yield "
  172.       </div>
  173.     </div>
  174.   </section>
  175.   <script src=\"/js/togglePassword.js\"></script>
  176. ";
  177.         
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179.         
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  181.         yield from [];
  182.     }
  183.     /**
  184.      * @codeCoverageIgnore
  185.      */
  186.     public function getTemplateName(): string
  187.     {
  188.         return "registration/register.html.twig";
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function isTraitable(): bool
  194.     {
  195.         return false;
  196.     }
  197.     /**
  198.      * @codeCoverageIgnore
  199.      */
  200.     public function getDebugInfo(): array
  201.     {
  202.         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,);
  203.     }
  204.     public function getSourceContext(): Source
  205.     {
  206.         return new Source("{% extends 'base.html.twig' %}
  207. {% block title %}
  208.   Créer un compte
  209. {% endblock %}
  210. {% block body %}
  211.   {% set fontcolor = backgroundmode ? 'ft-dark' : 'ft-white' %}
  212.   <section class=\"flex-center h-90-vh\">
  213.     <div class=\"theme-form border w-max-m w-100\">
  214.       <div class=\"\">
  215.         <h1 class=\"txt-center b-b p-05 {{ fontcolor }}\">Créer un compte</h1>
  216.       </div>
  217.       <div class=\"p-1\">
  218.         {% for flash_error in app.flashes('verify_email_error') %}
  219.           <div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  220.         {% endfor %}
  221.         {{ form_start(registrationForm, { attr: { class: '' } }) }}
  222.         <label for=\"\" class=\"{{ fontcolor }}\">Email</label>
  223.         {{ form_row(registrationForm.email) }}
  224.         <label for=\"\" class=\"{{ fontcolor }}\">Nom d'utilisateur</label>
  225.         {{ form_row(registrationForm.userName) }}
  226.         {# <label for=\"\">Numéro de téléphone</label>
  227.         {{ form_row(registrationForm.telephone) }} #}
  228.         {{ form_label(registrationForm.plainPassword, 'Mot de passe', { label_attr: { class: fontcolor } }) }}
  229.         <div class=\"flex-row w-100 flex-center rel {{ fontcolor }}\">
  230.           {{ form_widget(registrationForm.plainPassword) }}
  231.           <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\">
  232.             <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
  233.               <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\" />
  234.               <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\" />
  235.             </svg>
  236.           </div>
  237.         </div>
  238.         <label class=\"check-visible flex-row {{ fontcolor }}\" for=\"\">
  239.           <div class=\"flex-row wrap txt-xxs\">
  240.             <div class=\"minc p-1\">{{ form_row(registrationForm.agreeTerms) }}</div><span>J'accepte les</span>
  241.             <a class=\"m-l-1 m-r-1 inline\" target=\"_blank\" href=\"{{ path('app_mentions') }}\">Conditions générales d'utilisation</a>
  242.             <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>
  243.           </div>
  244.         </label>
  245.         <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>
  246.         {{ form_end(registrationForm) }}
  247.       </div>
  248.     </div>
  249.   </section>
  250.   <script src=\"/js/togglePassword.js\"></script>
  251. {% endblock %}
  252. ""registration/register.html.twig""/home/u677714286/domains/kapilko.com/public_html/templates/registration/register.html.twig");
  253.     }
  254. }