var/cache/review/twig/9c/9c0981d31ad102dcc0994ffa65ebee20.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* security/register.html.twig */
  14. class __TwigTemplate_f543fc60c2f2a018fa8f9ef66ff5dc5a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'mainContainer' => [$this'block_mainContainer'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "security/grid.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/register.html.twig"));
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/register.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/register.html.twig"));
  41.         $this->parent $this->loadTemplate("security/grid.html.twig""security/register.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  55.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         echo "Регистрация";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.         
  66.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  67.     }
  68.     // line 5
  69.     public function block_mainContainer($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  73.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  78.         // line 6
  79.         echo "    <div class=\"auth-page\">
  80.         <div class=\"auth-stack\">
  81.             ";
  82.         // line 8
  83.         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.'8$this->source); })()), 'form_start', ["attr" => ["class" => "auth-card auth-card--form auth-card--registration"]]);
  84.         echo "
  85.                 ";
  86.         // line 9
  87.         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.'9$this->source); })()), "accountType", [], "any"falsefalsefalse9), 'widget', ["value" => "advertiser"]);
  88.         echo "
  89.                 <h1 class=\"auth-card__title\">Регистрация рекламодателя</h1>
  90.                 ";
  91.         // line 12
  92.         $context["form_error"] = twig_join_filter(twig_array_map($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'12$this->source); })()), "vars", [], "any"falsefalsefalse12), "errors", [], "any"falsefalsefalse12), function ($__error__) use ($context$macros) { $context["error"] = $__error__; return twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'12$this->source); })()), "message", [], "any"falsefalsefalse12); }), " ");
  93.         // line 13
  94.         echo "                ";
  95.         if ((isset($context["form_error"]) || array_key_exists("form_error"$context) ? $context["form_error"] : (function () { throw new RuntimeError('Variable "form_error" does not exist.'13$this->source); })())) {
  96.             // line 14
  97.             echo "                    <p class=\"form-error\">";
  98.             echo twig_escape_filter($this->env, (isset($context["form_error"]) || array_key_exists("form_error"$context) ? $context["form_error"] : (function () { throw new RuntimeError('Variable "form_error" does not exist.'14$this->source); })()), "html"nulltrue);
  99.             echo "</p>
  100.                 ";
  101.         }
  102.         // line 16
  103.         echo "
  104.                 <div class=\"auth-card__fields\">
  105.                     ";
  106.         // line 18
  107.         $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"18)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->source,         // line 19
  108. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'19$this->source); })()), "email", [], "any"falsefalsefalse19), "icon" => "mail""placeholder" => "E-mail""autocomplete" => "email"]));
  109.         // line 24
  110.         echo "                    ";
  111.         $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"24)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->source,         // line 25
  112. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'25$this->source); })()), "nickName", [], "any"falsefalsefalse25), "placeholder" => "Никнейм""autocomplete" => "username"]));
  113.         // line 29
  114.         echo "                    ";
  115.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "country", [], "any"truetruefalse29)) {
  116.             // line 30
  117.             echo "                        ";
  118.             $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"30)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->source,             // line 31
  119. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "country", [], "any"falsefalsefalse31), "icon" => "city""placeholder" => "Страна""select" => true]));
  120.             // line 36
  121.             echo "                    ";
  122.         }
  123.         // line 37
  124.         echo "                    ";
  125.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "city", [], "any"truetruefalse37)) {
  126.             // line 38
  127.             echo "                        ";
  128.             $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"38)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->source,             // line 39
  129. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), "city", [], "any"falsefalsefalse39), "icon" => "city""placeholder" => "Город""select" => true]));
  130.             // line 44
  131.             echo "                    ";
  132.         }
  133.         // line 45
  134.         echo "                    ";
  135.         $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"45)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 46
  136. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'46$this->source); })()), "plainPassword", [], "any"falsefalsefalse46), "first", [], "any"falsefalsefalse46), "icon" => "key""placeholder" => "Пароль""password" => true"autocomplete" => "new-password"]));
  137.         // line 52
  138.         echo "                    ";
  139.         $this->loadTemplate("security/_auth_field.html.twig""security/register.html.twig"52)->display(twig_to_array(["field" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 53
  140. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'53$this->source); })()), "plainPassword", [], "any"falsefalsefalse53), "second", [], "any"falsefalsefalse53), "icon" => "key""placeholder" => "Повторите пароль""password" => true"autocomplete" => "new-password"]));
  141.         // line 59
  142.         echo "                    ";
  143.         $context["password_error"] = twig_join_filter(twig_array_map($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'59$this->source); })()), "plainPassword", [], "any"falsefalsefalse59), "vars", [], "any"falsefalsefalse59), "errors", [], "any"falsefalsefalse59), function ($__error__) use ($context$macros) { $context["error"] = $__error__; return twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'59$this->source); })()), "message", [], "any"falsefalsefalse59); }), " ");
  144.         // line 60
  145.         echo "                    ";
  146.         if ((isset($context["password_error"]) || array_key_exists("password_error"$context) ? $context["password_error"] : (function () { throw new RuntimeError('Variable "password_error" does not exist.'60$this->source); })())) {
  147.             // line 61
  148.             echo "                        <p class=\"form-error\">";
  149.             echo twig_escape_filter($this->env, (isset($context["password_error"]) || array_key_exists("password_error"$context) ? $context["password_error"] : (function () { throw new RuntimeError('Variable "password_error" does not exist.'61$this->source); })()), "html"nulltrue);
  150.             echo "</p>
  151.                     ";
  152.         }
  153.         // line 63
  154.         echo "                    ";
  155.         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "captcha", [], "any"truetruefalse63)) {
  156.             // line 64
  157.             echo "                        <div class=\"auth-card__captcha\">
  158.                             ";
  159.             // line 65
  160.             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.'65$this->source); })()), "captcha", [], "any"falsefalsefalse65), 'widget');
  161.             echo "
  162.                             ";
  163.             // line 66
  164.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'66$this->source); })()), "captcha", [], "any"falsefalsefalse66), "vars", [], "any"falsefalsefalse66), "errors", [], "any"falsefalsefalse66)) > 0)) {
  165.                 // line 67
  166.                 echo "                                <p class=\"form-error\">";
  167.                 echo twig_escape_filter($this->envtwig_join_filter(twig_array_map($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'67$this->source); })()), "captcha", [], "any"falsefalsefalse67), "vars", [], "any"falsefalsefalse67), "errors", [], "any"falsefalsefalse67), function ($__error__) use ($context$macros) { $context["error"] = $__error__; return twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'67$this->source); })()), "message", [], "any"falsefalsefalse67); }), " "), "html"nulltrue);
  168.                 echo "</p>
  169.                             ";
  170.             }
  171.             // line 69
  172.             echo "                        </div>
  173.                     ";
  174.         }
  175.         // line 71
  176.         echo "                </div>
  177.                 <button type=\"submit\" class=\"button button-full-width auth-card__submit\" formnovalidate>Зарегистрироваться</button>
  178.             ";
  179.         // line 74
  180.         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.'74$this->source); })()), 'form_end');
  181.         echo "
  182.         </div>
  183.     </div>
  184. ";
  185.         
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  187.         
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  189.         
  190.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  191.     }
  192.     /**
  193.      * @codeCoverageIgnore
  194.      */
  195.     public function getTemplateName()
  196.     {
  197.         return "security/register.html.twig";
  198.     }
  199.     /**
  200.      * @codeCoverageIgnore
  201.      */
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     /**
  207.      * @codeCoverageIgnore
  208.      */
  209.     public function getDebugInfo()
  210.     {
  211.         return array (  206 => 74,  201 => 71,  197 => 69,  191 => 67,  189 => 66,  185 => 65,  182 => 64,  179 => 63,  173 => 61,  170 => 60,  167 => 59,  165 => 53,  163 => 52,  161 => 46,  159 => 45,  156 => 44,  154 => 39,  152 => 38,  149 => 37,  146 => 36,  144 => 31,  142 => 30,  139 => 29,  137 => 25,  135 => 24,  133 => 19,  132 => 18,  128 => 16,  122 => 14,  119 => 13,  117 => 12,  111 => 9,  107 => 8,  103 => 6,  90 => 5,  65 => 3,  36 => 1,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{% extends 'security/grid.html.twig' %}
  216. {% block title %}Регистрация{% endblock %}
  217. {% block mainContainer %}
  218.     <div class=\"auth-page\">
  219.         <div class=\"auth-stack\">
  220.             {{ form_start(form, {'attr': {'class': 'auth-card auth-card--form auth-card--registration'}}) }}
  221.                 {{ form_widget(form.accountType, {'value': 'advertiser'}) }}
  222.                 <h1 class=\"auth-card__title\">Регистрация рекламодателя</h1>
  223.                 {% set form_error = form.vars.errors|map(error => error.message)|join(' ') %}
  224.                 {% if form_error %}
  225.                     <p class=\"form-error\">{{ form_error }}</p>
  226.                 {% endif %}
  227.                 <div class=\"auth-card__fields\">
  228.                     {% include 'security/_auth_field.html.twig' with {
  229.                         field: form.email,
  230.                         icon: 'mail',
  231.                         placeholder: 'E-mail',
  232.                         autocomplete: 'email'
  233.                     } only %}
  234.                     {% include 'security/_auth_field.html.twig' with {
  235.                         field: form.nickName,
  236.                         placeholder: 'Никнейм',
  237.                         autocomplete: 'username'
  238.                     } only %}
  239.                     {% if form.country is defined %}
  240.                         {% include 'security/_auth_field.html.twig' with {
  241.                             field: form.country,
  242.                             icon: 'city',
  243.                             placeholder: 'Страна',
  244.                             select: true
  245.                         } only %}
  246.                     {% endif %}
  247.                     {% if form.city is defined %}
  248.                         {% include 'security/_auth_field.html.twig' with {
  249.                             field: form.city,
  250.                             icon: 'city',
  251.                             placeholder: 'Город',
  252.                             select: true
  253.                         } only %}
  254.                     {% endif %}
  255.                     {% include 'security/_auth_field.html.twig' with {
  256.                         field: form.plainPassword.first,
  257.                         icon: 'key',
  258.                         placeholder: 'Пароль',
  259.                         password: true,
  260.                         autocomplete: 'new-password'
  261.                     } only %}
  262.                     {% include 'security/_auth_field.html.twig' with {
  263.                         field: form.plainPassword.second,
  264.                         icon: 'key',
  265.                         placeholder: 'Повторите пароль',
  266.                         password: true,
  267.                         autocomplete: 'new-password'
  268.                     } only %}
  269.                     {% set password_error = form.plainPassword.vars.errors|map(error => error.message)|join(' ') %}
  270.                     {% if password_error %}
  271.                         <p class=\"form-error\">{{ password_error }}</p>
  272.                     {% endif %}
  273.                     {% if form.captcha is defined %}
  274.                         <div class=\"auth-card__captcha\">
  275.                             {{ form_widget(form.captcha) }}
  276.                             {% if form.captcha.vars.errors|length > 0 %}
  277.                                 <p class=\"form-error\">{{ form.captcha.vars.errors|map(error => error.message)|join(' ') }}</p>
  278.                             {% endif %}
  279.                         </div>
  280.                     {% endif %}
  281.                 </div>
  282.                 <button type=\"submit\" class=\"button button-full-width auth-card__submit\" formnovalidate>Зарегистрироваться</button>
  283.             {{ form_end(form) }}
  284.         </div>
  285.     </div>
  286. {% endblock %}
  287. ""security/register.html.twig""/app/templates/security/register.html.twig");
  288.     }
  289. }