var/cache/review/twig/7b/7bae83b1b7301523612d20260550771d.php line 39

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/receive_password.twig */
  14. class __TwigTemplate_aa8f144dc951da3129d9311751b18fed 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/receive_password.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/receive_password.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/receive_password.twig"));
  41.         // line 3
  42.         $context["linkLangSupport"] = (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse3), "locale", [], "any"falsefalsefalse3) == "en")) ? ("/en") : (""));
  43.         // line 1
  44.         $this->parent $this->loadTemplate("security/grid.html.twig""security/receive_password.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 5
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         echo "Восстановление пароля МосДосуг";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         
  69.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  70.     }
  71.     // line 40
  72.     public function block_mainContainer($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  76.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  81.         // line 41
  82.         echo "\t<div class=\"heading d-none\">
  83. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">";
  84.         // line 42
  85.         echo (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? ($this->extensions['App\Twig\SeoExtension']->pageHeading()) : ("Восстановление пароля"));
  86.         echo "</h1>
  87. \t</div>
  88. \t<div class=\"float-block white-block login-block d-flex mb-4\">
  89.         <div class=\"float-block-heading fw-700\">Восстановление пароля</div>
  90.         ";
  91.         // line 48
  92.         if ((isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'48$this->source); })())) {
  93.             // line 49
  94.             echo "            <div class=\"form-error d-none\" data-form-error><span class=\"clr-main-text\">Ошибка:</span> <span data-form-error-text>";
  95.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Пользователя с email", [], "login");
  96.             echo " ";
  97.             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"nulltrue);
  98.             echo " ";
  99.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("не существует", [], "login");
  100.             echo "</span></div>
  101.         ";
  102.         }
  103.         // line 51
  104.         echo "
  105.         <form class=\"form\" method=\"post\">
  106.             <div class=\"form-field\">
  107.                 <label class=\"form-label d-none\">E-mail</label>
  108.                 <div class=\"form-text mb-1\">Введите e-mail, указанный при регистрации</div>
  109.                 <div class=\"form-control d-flex-c";
  110.         // line 56
  111.         if ((isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'56$this->source); })())) {
  112.             echo " error";
  113.         }
  114.         echo "\">
  115.                     <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>
  116.                     <input class=\"form-input\" type=\"email\" name=\"email\" value=\"";
  117.         // line 58
  118.         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"nulltrue);
  119.         echo "\" placeholder=\"E-mail\" required autofocus autocomplete=\"email\">
  120.                 </div>
  121.                 <p class=\"field-error";
  122.         // line 60
  123.         if ((isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'60$this->source); })())) {
  124.             echo " active";
  125.         }
  126.         echo "\">Пользователя с ";
  127.         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"nulltrue);
  128.         echo " не существует</p>
  129.                 ";
  130.         // line 62
  131.         echo "            </div>
  132.             <button class=\"btn btn-main btn-xl btn-fluid\" type=\"submit\">
  133.                 <span>Восстановить</span>
  134.             </button>
  135.         </form>
  136.     </div>
  137. ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.         
  143.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  144.     }
  145.     // line 7
  146.     public function macro_error_remove_html($__text__ null, ...$__varargs__)
  147.     {
  148.         $macros $this->macros;
  149.         $context $this->env->mergeGlobals([
  150.             "text" => $__text__,
  151.             "varargs" => $__varargs__,
  152.         ]);
  153.         $blocks = [];
  154.         ob_start();
  155.         try {
  156.             $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  157.             $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""error_remove_html"));
  158.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""error_remove_html"));
  160.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""error_remove_html"));
  162.             // line 8
  163.             echo "    ";
  164.             echo twig_escape_filter($this->envtwig_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"nulltrue);
  165.             echo "
  166. ";
  167.             
  168.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.             
  170.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.             
  172.             $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  173.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  174.         } finally {
  175.             ob_end_clean();
  176.         }
  177.     }
  178.     /**
  179.      * @codeCoverageIgnore
  180.      */
  181.     public function getTemplateName()
  182.     {
  183.         return "security/receive_password.twig";
  184.     }
  185.     /**
  186.      * @codeCoverageIgnore
  187.      */
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     /**
  193.      * @codeCoverageIgnore
  194.      */
  195.     public function getDebugInfo()
  196.     {
  197.         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,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("{% extends 'security/grid.html.twig' %}
  202. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  203. {% block title %}Восстановление пароля МосДосуг{% endblock %}
  204. {% macro error_remove_html(text) %}
  205.     {{ text|replace({'<ul>': '', '</ul>': '', '<li>': '', '</li>': ''}) }}
  206. {% endmacro %}
  207. {#
  208. {% block mainContainer %}
  209. <div class=\"white-block inputs-form\">
  210.     <h1 class=\"profiles-title is-flex\" role=\"heading\">Восстано1вление пароля</h1>
  211.     {% if email %}
  212.         <div class=\"form-error\">{% trans with {} from 'login' %}Пользователя с email{% endtrans %} {{email}} {% trans with {} from 'login' %}не существует{% endtrans %}</div>
  213.     {% endif %}
  214.     <form class=\"\" method=\"post\">
  215.         <div class=\"field\">
  216.             <div class=\"wrap is-flex level\">
  217.                 <label for=\"email\" class=\"name\">Email</label>
  218.                 <input type=\"email\" value=\"{{ email }}\" name=\"email\" id=\"email\" class=\"basic-view\" placeholder=\"Email\" required autofocus>
  219.             </div>
  220.         </div>
  221.         <div class=\"field\">
  222.             <div class=\"wrap is-flex level\">
  223.                 <div class=\"name\"></div>
  224.                 <button type=\"submit\" class=\"btn btn-grey-style is-flex level\">
  225.                     <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>
  226.                     <span>Востановить</span>
  227.                 </button>
  228.             </div>
  229.         </div>
  230.     </form>
  231. </div>
  232. {% endblock %} #}
  233. {% block mainContainer %}
  234. \t<div class=\"heading d-none\">
  235. \t\t<h1 class=\"heading-title text-title mr-1\" role=\"heading\">{{ seo_heading() ? seo_heading() : 'Восстановление пароля' }}</h1>
  236. \t</div>
  237. \t<div class=\"float-block white-block login-block d-flex mb-4\">
  238.         <div class=\"float-block-heading fw-700\">Восстановление пароля</div>
  239.         {% if email %}
  240.             <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>
  241.         {% endif %}
  242.         <form class=\"form\" method=\"post\">
  243.             <div class=\"form-field\">
  244.                 <label class=\"form-label d-none\">E-mail</label>
  245.                 <div class=\"form-text mb-1\">Введите e-mail, указанный при регистрации</div>
  246.                 <div class=\"form-control d-flex-c{% if email %} error{% endif %}\">
  247.                     <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>
  248.                     <input class=\"form-input\" type=\"email\" name=\"email\" value=\"{{ email }}\" placeholder=\"E-mail\" required autofocus autocomplete=\"email\">
  249.                 </div>
  250.                 <p class=\"field-error{% if email %} active{% endif %}\">Пользователя с {{email}} не существует</p>
  251.                 {# <p class=\"form-help\">На сайте не отображается</p> #}
  252.             </div>
  253.             <button class=\"btn btn-main btn-xl btn-fluid\" type=\"submit\">
  254.                 <span>Восстановить</span>
  255.             </button>
  256.         </form>
  257.     </div>
  258. {% endblock %}""security/receive_password.twig""/app/templates/security/receive_password.twig");
  259.     }
  260. }