var/cache/review/twig/55/55e197defb60aadb347d1af69af7bee7.php line 40

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/login.html.twig */
  14. class __TwigTemplate_11cb91f9c38f57868e8bcc25b26637b1 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.             'stylesheets' => [$this'block_stylesheets'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  42.         $this->parent $this->loadTemplate("layout.html.twig""security/login.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         echo "Log in!";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         
  67.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  68.     }
  69.     // line 5
  70.     public function block_mainContainer($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  74.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  79.         // line 6
  80.         echo "    <div class=\"col text-center\">
  81.         <h1 class=\"h3\">Вход в личный кабинет</h1>
  82.         ";
  83.         // line 8
  84.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'8$this->source); })())) {
  85.             // line 9
  86.             echo "            <div class=\"alert alert-danger\">";
  87.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'9$this->source); })()), "messageKey", [], "any"falsefalsefalse9), 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.'9$this->source); })()), "messageData", [], "any"falsefalsefalse9), "security"), "html"nulltrue);
  88.             echo "</div>
  89.         ";
  90.         }
  91.         // line 11
  92.         echo "
  93.         <form action=\"";
  94.         // line 12
  95.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  96.         echo "\" method=\"post\" class=\"form-signin\">
  97.             <label for=\"inputEmail\" class=\"sr-only\">Email</label>
  98.             <input type=\"email\" value=\"";
  99.         // line 14
  100.         echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'14$this->source); })()), "html"nulltrue);
  101.         echo "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" placeholder=\"Email\" required autofocus>
  102.             <label for=\"inputPassword\" class=\"sr-only\">Password</label>
  103.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  104.             <div class=\"checkbox mb-3\">
  105.                 <label>
  106.                     <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  107.                 </label>
  108.             </div>
  109.             <button class=\"btn btn-lg btn-primary\" type=\"submit\" id=\"sign_in_btn\">Sign in</button>
  110.             <a href=\"";
  111.         // line 24
  112.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("receive_password");
  113.         echo "\" class=\"btn btn-link\">Forgot password?</a>
  114.             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  115.         // line 26
  116.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  117.         echo "\">
  118.         </form>
  119.     </div>
  120.     <script src=\"";
  121.         // line 30
  122.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  123.         echo "\"></script>
  124.     <script src=\"";
  125.         // line 31
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js""js_script"), "html"nulltrue);
  127.         echo "\"></script>
  128.     <script src=\"";
  129.         // line 32
  130.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js""js_script"), "html"nulltrue);
  131.         echo "\"></script>
  132.     <script type=\"text/javascript\">
  133.         document.addEventListener('DOMContentLoaded', function() {
  134.             document.querySelector('#sign_in_btn').addEventListener('click', function() {
  135.                 //Alexandr  12:23 PM
  136.                 //результаты при логине за адверта/ходока должны сбрасываться
  137.                 profileBotHelper.clearViewedRecommendations();
  138.             });
  139.         });
  140.     </script>
  141. ";
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.         
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146.         
  147.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  148.     }
  149.     // line 44
  150.     public function block_stylesheets($context, array $blocks = [])
  151.     {
  152.         $macros $this->macros;
  153.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  154.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  159.         // line 45
  160.         echo "    ";
  161.         $this->displayParentBlock("stylesheets"$context$blocks);
  162.         echo "
  163.     <style>
  164.         .form-signin {
  165.             width: 100%;
  166.             max-width: 330px;
  167.             padding: 15px;
  168.             margin: auto;
  169.         }
  170.         .form-signin .checkbox {
  171.             font-weight: 400;
  172.         }
  173.         .form-signin .form-control {
  174.             position: relative;
  175.             box-sizing: border-box;
  176.             height: auto;
  177.             padding: 10px;
  178.             font-size: 16px;
  179.         }
  180.         .form-signin .form-control:focus {
  181.             z-index: 2;
  182.         }
  183.         .form-signin input[type=\"email\"] {
  184.             margin-bottom: -1px;
  185.             border-bottom-right-radius: 0;
  186.             border-bottom-left-radius: 0;
  187.         }
  188.         .form-signin input[type=\"password\"] {
  189.             margin-bottom: 10px;
  190.             border-top-left-radius: 0;
  191.             border-top-right-radius: 0;
  192.         }
  193.     </style>
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.         
  200.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  201.     }
  202.     /**
  203.      * @codeCoverageIgnore
  204.      */
  205.     public function getTemplateName()
  206.     {
  207.         return "security/login.html.twig";
  208.     }
  209.     /**
  210.      * @codeCoverageIgnore
  211.      */
  212.     public function isTraitable()
  213.     {
  214.         return false;
  215.     }
  216.     /**
  217.      * @codeCoverageIgnore
  218.      */
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  194 => 45,  181 => 44,  157 => 32,  153 => 31,  149 => 30,  142 => 26,  137 => 24,  124 => 14,  119 => 12,  116 => 11,  110 => 9,  108 => 8,  104 => 6,  91 => 5,  66 => 3,  37 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends 'layout.html.twig' %}
  226. {% block title %}Log in!{% endblock %}
  227. {% block mainContainer %}
  228.     <div class=\"col text-center\">
  229.         <h1 class=\"h3\">Вход в личный кабинет</h1>
  230.         {% if error %}
  231.             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  232.         {% endif %}
  233.         <form action=\"{{ path('login') }}\" method=\"post\" class=\"form-signin\">
  234.             <label for=\"inputEmail\" class=\"sr-only\">Email</label>
  235.             <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" placeholder=\"Email\" required autofocus>
  236.             <label for=\"inputPassword\" class=\"sr-only\">Password</label>
  237.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  238.             <div class=\"checkbox mb-3\">
  239.                 <label>
  240.                     <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  241.                 </label>
  242.             </div>
  243.             <button class=\"btn btn-lg btn-primary\" type=\"submit\" id=\"sign_in_btn\">Sign in</button>
  244.             <a href=\"{{ path('receive_password') }}\" class=\"btn btn-link\">Forgot password?</a>
  245.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  246.         </form>
  247.     </div>
  248.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  249.     <script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
  250.     <script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
  251.     <script type=\"text/javascript\">
  252.         document.addEventListener('DOMContentLoaded', function() {
  253.             document.querySelector('#sign_in_btn').addEventListener('click', function() {
  254.                 //Alexandr  12:23 PM
  255.                 //результаты при логине за адверта/ходока должны сбрасываться
  256.                 profileBotHelper.clearViewedRecommendations();
  257.             });
  258.         });
  259.     </script>
  260. {% endblock %}
  261. {% block stylesheets %}
  262.     {{ parent() }}
  263.     <style>
  264.         .form-signin {
  265.             width: 100%;
  266.             max-width: 330px;
  267.             padding: 15px;
  268.             margin: auto;
  269.         }
  270.         .form-signin .checkbox {
  271.             font-weight: 400;
  272.         }
  273.         .form-signin .form-control {
  274.             position: relative;
  275.             box-sizing: border-box;
  276.             height: auto;
  277.             padding: 10px;
  278.             font-size: 16px;
  279.         }
  280.         .form-signin .form-control:focus {
  281.             z-index: 2;
  282.         }
  283.         .form-signin input[type=\"email\"] {
  284.             margin-bottom: -1px;
  285.             border-bottom-right-radius: 0;
  286.             border-bottom-left-radius: 0;
  287.         }
  288.         .form-signin input[type=\"password\"] {
  289.             margin-bottom: 10px;
  290.             border-top-left-radius: 0;
  291.             border-top-right-radius: 0;
  292.         }
  293.     </style>
  294. {% endblock %}
  295. ""security/login.html.twig""/app/templates/security/login.html.twig");
  296.     }
  297. }