<?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/receive_password.twig */
class __TwigTemplate_aa8f144dc951da3129d9311751b18fed 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/receive_password.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/receive_password.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/receive_password.twig"));
// line 3
$context["linkLangSupport"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3) == "en")) ? ("/en") : (""));
// line 1
$this->parent = $this->loadTemplate("security/grid.html.twig", "security/receive_password.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 5
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 40
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 41
echo "\t<div class=\"heading d-none\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
// line 42
echo (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? ($this->extensions['App\Twig\SeoExtension']->pageHeading()) : ("Восстановление пароля"));
echo "</h1>
\t</div>
\t<div class=\"float-block white-block login-block d-flex mb-4\">
<div class=\"float-block-heading fw-700\">Восстановление пароля</div>
";
// line 48
if ((isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 48, $this->source); })())) {
// line 49
echo " <div class=\"form-error d-none\" data-form-error><span class=\"clr-main-text\">Ошибка:</span> <span data-form-error-text>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Пользователя с email", [], "login");
echo " ";
echo twig_escape_filter($this->env, (isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 49, $this->source); })()), "html", null, true);
echo " ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("не существует", [], "login");
echo "</span></div>
";
}
// line 51
echo "
<form class=\"form\" method=\"post\">
<div class=\"form-field\">
<label class=\"form-label d-none\">E-mail</label>
<div class=\"form-text mb-1\">Введите e-mail, указанный при регистрации</div>
<div class=\"form-control d-flex-c";
// line 56
if ((isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 56, $this->source); })())) {
echo " error";
}
echo "\">
<svg class=\"form-icon\" fill=\"none\" viewbox=\"0 0 24 25\"><path fill-rule=\"evenodd\" d=\"M22 6.5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-12Zm-2 0-8 5-8-5h16Zm-8 7-8-5v10h16v-10l-8 5Z\" clip-rule=\"evenodd\"/></svg>
<input class=\"form-input\" type=\"email\" name=\"email\" value=\"";
// line 58
echo twig_escape_filter($this->env, (isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 58, $this->source); })()), "html", null, true);
echo "\" placeholder=\"E-mail\" required autofocus autocomplete=\"email\">
</div>
<p class=\"field-error";
// line 60
if ((isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 60, $this->source); })())) {
echo " active";
}
echo "\">Пользователя с ";
echo twig_escape_filter($this->env, (isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 60, $this->source); })()), "html", null, true);
echo " не существует</p>
";
// line 62
echo " </div>
<button class=\"btn btn-main btn-xl btn-fluid\" type=\"submit\">
<span>Восстановить</span>
</button>
</form>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 7
public function macro_error_remove_html($__text__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"text" => $__text__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "error_remove_html"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "error_remove_html"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "error_remove_html"));
// line 8
echo " ";
echo twig_escape_filter($this->env, twig_replace_filter((isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 8, $this->source); })()), ["<ul>" => "", "</ul>" => "", "<li>" => "", "</li>" => ""]), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/receive_password.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 199 => 8, 177 => 7, 157 => 62, 149 => 60, 144 => 58, 137 => 56, 130 => 51, 120 => 49, 118 => 48, 109 => 42, 106 => 41, 93 => 40, 68 => 5, 54 => 1, 52 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'security/grid.html.twig' %}
{% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
{% block title %}Восстановление пароля МосДосуг{% endblock %}
{% macro error_remove_html(text) %}
{{ text|replace({'<ul>': '', '</ul>': '', '<li>': '', '</li>': ''}) }}
{% endmacro %}
{#
{% block mainContainer %}
<div class=\"white-block inputs-form\">
<h1 class=\"profiles-title is-flex\" role=\"heading\">Восстано1вление пароля</h1>
{% if email %}
<div class=\"form-error\">{% trans with {} from 'login' %}Пользователя с email{% endtrans %} {{email}} {% trans with {} from 'login' %}не существует{% endtrans %}</div>
{% endif %}
<form class=\"\" method=\"post\">
<div class=\"field\">
<div class=\"wrap is-flex level\">
<label for=\"email\" class=\"name\">Email</label>
<input type=\"email\" value=\"{{ email }}\" name=\"email\" id=\"email\" class=\"basic-view\" placeholder=\"Email\" required autofocus>
</div>
</div>
<div class=\"field\">
<div class=\"wrap is-flex level\">
<div class=\"name\"></div>
<button type=\"submit\" class=\"btn btn-grey-style is-flex level\">
<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 14\" width=\"16\"><defs/><path fill=\"#666\" fill-rule=\"evenodd\" d=\"M10.25 4a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm.34 2.71A3.74 3.74 0 008 .25a3.75 3.75 0 00-2.6 6.46 7.51 7.51 0 00-4.9 7.04h15a7.53 7.53 0 00-4.9-7.04zM8 7.75a6 6 0 00-5.81 4.5H13.8A6 6 0 008 7.75z\" clip-rule=\"evenodd\"/></svg>
<span>Востановить</span>
</button>
</div>
</div>
</form>
</div>
{% endblock %} #}
{% block mainContainer %}
\t<div class=\"heading d-none\">
\t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Восстановление пароля' }}</h1>
\t</div>
\t<div class=\"float-block white-block login-block d-flex mb-4\">
<div class=\"float-block-heading fw-700\">Восстановление пароля</div>
{% if email %}
<div class=\"form-error d-none\" data-form-error><span class=\"clr-main-text\">Ошибка:</span> <span data-form-error-text>{% trans with {} from 'login' %}Пользователя с email{% endtrans %} {{email}} {% trans with {} from 'login' %}не существует{% endtrans %}</span></div>
{% endif %}
<form class=\"form\" method=\"post\">
<div class=\"form-field\">
<label class=\"form-label d-none\">E-mail</label>
<div class=\"form-text mb-1\">Введите e-mail, указанный при регистрации</div>
<div class=\"form-control d-flex-c{% if email %} error{% endif %}\">
<svg class=\"form-icon\" fill=\"none\" viewbox=\"0 0 24 25\"><path fill-rule=\"evenodd\" d=\"M22 6.5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-12Zm-2 0-8 5-8-5h16Zm-8 7-8-5v10h16v-10l-8 5Z\" clip-rule=\"evenodd\"/></svg>
<input class=\"form-input\" type=\"email\" name=\"email\" value=\"{{ email }}\" placeholder=\"E-mail\" required autofocus autocomplete=\"email\">
</div>
<p class=\"field-error{% if email %} active{% endif %}\">Пользователя с {{email}} не существует</p>
{# <p class=\"form-help\">На сайте не отображается</p> #}
</div>
<button class=\"btn btn-main btn-xl btn-fluid\" type=\"submit\">
<span>Восстановить</span>
</button>
</form>
</div>
{% endblock %}", "security/receive_password.twig", "/app/templates/security/receive_password.twig");
}
}