<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* security/register.html.twig */
class __TwigTemplate_f543fc60c2f2a018fa8f9ef66ff5dc5a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "security/grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/register.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/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", "security/register.html.twig"));
$this->parent = $this->loadTemplate("security/grid.html.twig", "security/register.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__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"));
echo "Регистрация";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 5
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 6
echo " <div class=\"auth-page\">
<div class=\"auth-stack\">
";
// line 8
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"]]);
echo "
";
// line 9
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", false, false, false, 9), 'widget', ["value" => "advertiser"]);
echo "
<h1 class=\"auth-card__title\">Регистрация рекламодателя</h1>
";
// line 12
$context["form_error"] = twig_join_filter(twig_array_map($this->env, twig_get_attribute($this->env, $this->source, 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.', 12, $this->source); })()), "vars", [], "any", false, false, false, 12), "errors", [], "any", false, false, false, 12), 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", false, false, false, 12); }), " ");
// line 13
echo " ";
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); })())) {
// line 14
echo " <p class=\"form-error\">";
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", null, true);
echo "</p>
";
}
// line 16
echo "
<div class=\"auth-card__fields\">
";
// line 18
$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
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 19, $this->source); })()), "email", [], "any", false, false, false, 19), "icon" => "mail", "placeholder" => "E-mail", "autocomplete" => "email"]));
// line 24
echo " ";
$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
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 25, $this->source); })()), "nickName", [], "any", false, false, false, 25), "placeholder" => "Никнейм", "autocomplete" => "username"]));
// line 29
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "country", [], "any", true, true, false, 29)) {
// line 30
echo " ";
$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
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 31, $this->source); })()), "country", [], "any", false, false, false, 31), "icon" => "city", "placeholder" => "Страна", "select" => true]));
// line 36
echo " ";
}
// line 37
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "city", [], "any", true, true, false, 37)) {
// line 38
echo " ";
$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
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), "city", [], "any", false, false, false, 39), "icon" => "city", "placeholder" => "Город", "select" => true]));
// line 44
echo " ";
}
// line 45
echo " ";
$this->loadTemplate("security/_auth_field.html.twig", "security/register.html.twig", 45)->display(twig_to_array(["field" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 46
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 46, $this->source); })()), "plainPassword", [], "any", false, false, false, 46), "first", [], "any", false, false, false, 46), "icon" => "key", "placeholder" => "Пароль", "password" => true, "autocomplete" => "new-password"]));
// line 52
echo " ";
$this->loadTemplate("security/_auth_field.html.twig", "security/register.html.twig", 52)->display(twig_to_array(["field" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 53
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 53, $this->source); })()), "plainPassword", [], "any", false, false, false, 53), "second", [], "any", false, false, false, 53), "icon" => "key", "placeholder" => "Повторите пароль", "password" => true, "autocomplete" => "new-password"]));
// line 59
echo " ";
$context["password_error"] = twig_join_filter(twig_array_map($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 59, $this->source); })()), "plainPassword", [], "any", false, false, false, 59), "vars", [], "any", false, false, false, 59), "errors", [], "any", false, false, false, 59), 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", false, false, false, 59); }), " ");
// line 60
echo " ";
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); })())) {
// line 61
echo " <p class=\"form-error\">";
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", null, true);
echo "</p>
";
}
// line 63
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "captcha", [], "any", true, true, false, 63)) {
// line 64
echo " <div class=\"auth-card__captcha\">
";
// line 65
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", false, false, false, 65), 'widget');
echo "
";
// line 66
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 66, $this->source); })()), "captcha", [], "any", false, false, false, 66), "vars", [], "any", false, false, false, 66), "errors", [], "any", false, false, false, 66)) > 0)) {
// line 67
echo " <p class=\"form-error\">";
echo twig_escape_filter($this->env, twig_join_filter(twig_array_map($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "captcha", [], "any", false, false, false, 67), "vars", [], "any", false, false, false, 67), "errors", [], "any", false, false, false, 67), 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", false, false, false, 67); }), " "), "html", null, true);
echo "</p>
";
}
// line 69
echo " </div>
";
}
// line 71
echo " </div>
<button type=\"submit\" class=\"button button-full-width auth-card__submit\" formnovalidate>Зарегистрироваться</button>
";
// line 74
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');
echo "
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'security/grid.html.twig' %}
{% block title %}Регистрация{% endblock %}
{% block mainContainer %}
<div class=\"auth-page\">
<div class=\"auth-stack\">
{{ form_start(form, {'attr': {'class': 'auth-card auth-card--form auth-card--registration'}}) }}
{{ form_widget(form.accountType, {'value': 'advertiser'}) }}
<h1 class=\"auth-card__title\">Регистрация рекламодателя</h1>
{% set form_error = form.vars.errors|map(error => error.message)|join(' ') %}
{% if form_error %}
<p class=\"form-error\">{{ form_error }}</p>
{% endif %}
<div class=\"auth-card__fields\">
{% include 'security/_auth_field.html.twig' with {
field: form.email,
icon: 'mail',
placeholder: 'E-mail',
autocomplete: 'email'
} only %}
{% include 'security/_auth_field.html.twig' with {
field: form.nickName,
placeholder: 'Никнейм',
autocomplete: 'username'
} only %}
{% if form.country is defined %}
{% include 'security/_auth_field.html.twig' with {
field: form.country,
icon: 'city',
placeholder: 'Страна',
select: true
} only %}
{% endif %}
{% if form.city is defined %}
{% include 'security/_auth_field.html.twig' with {
field: form.city,
icon: 'city',
placeholder: 'Город',
select: true
} only %}
{% endif %}
{% include 'security/_auth_field.html.twig' with {
field: form.plainPassword.first,
icon: 'key',
placeholder: 'Пароль',
password: true,
autocomplete: 'new-password'
} only %}
{% include 'security/_auth_field.html.twig' with {
field: form.plainPassword.second,
icon: 'key',
placeholder: 'Повторите пароль',
password: true,
autocomplete: 'new-password'
} only %}
{% set password_error = form.plainPassword.vars.errors|map(error => error.message)|join(' ') %}
{% if password_error %}
<p class=\"form-error\">{{ password_error }}</p>
{% endif %}
{% if form.captcha is defined %}
<div class=\"auth-card__captcha\">
{{ form_widget(form.captcha) }}
{% if form.captcha.vars.errors|length > 0 %}
<p class=\"form-error\">{{ form.captcha.vars.errors|map(error => error.message)|join(' ') }}</p>
{% endif %}
</div>
{% endif %}
</div>
<button type=\"submit\" class=\"button button-full-width auth-card__submit\" formnovalidate>Зарегистрироваться</button>
{{ form_end(form) }}
</div>
</div>
{% endblock %}
", "security/register.html.twig", "/app/templates/security/register.html.twig");
}
}