var/cache/dev/twig/29/291a93010b0ba7f8ad52945718a627e8.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* security/login.html.twig */
  15. class __TwigTemplate_948ceb9c156328d7d264d2b7a281cab7 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'bodyClass' => [$this'block_bodyClass'],
  26.             'body' => [$this'block_body'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  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/login.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/login.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"2);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 4
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         yield "Вход";
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         return; yield '';
  62.     }
  63.     // line 7
  64.     public function block_bodyClass($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  71.         yield "bg-gradient-primary";
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         return; yield '';
  77.     }
  78.     // line 8
  79.     public function block_body($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  86.         // line 9
  87.         yield "    <div class=\"container\">
  88.         <div class=\"dashboard-container mt-3\">
  89.             <div class=\"container\">
  90.                 ";
  91.         // line 12
  92.         $context['_parent'] = $context;
  93.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "session", [], "any"falsefalsefalse12), "flashbag", [], "any"falsefalsefalse12), "get", ["success"], "method"falsefalsefalse12));
  94.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  95.             // line 13
  96.             yield "                    <div class=\"alert alert-success\">";
  97.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  98.             yield "</div>
  99.                 ";
  100.         }
  101.         $_parent $context['_parent'];
  102.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  103.         $context array_intersect_key($context$_parent) + $_parent;
  104.         // line 15
  105.         yield "
  106.                 ";
  107.         // line 16
  108.         $context['_parent'] = $context;
  109.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "session", [], "any"falsefalsefalse16), "flashbag", [], "any"falsefalsefalse16), "get", ["errors"], "method"falsefalsefalse16));
  110.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  111.             // line 17
  112.             yield "                    <div class=\"alert alert-danger\">";
  113.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  114.             yield "</div>
  115.                 ";
  116.         }
  117.         $_parent $context['_parent'];
  118.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  119.         $context array_intersect_key($context$_parent) + $_parent;
  120.         // line 19
  121.         yield "            </div>
  122.         </div>
  123.         <!-- Outer Row -->
  124.         <div class=\"row justify-content-center\">
  125.             ";
  126.         // line 25
  127.         yield "            <div class=\"col-md-9\" style=\"max-width: 500px;\">
  128.                 <div class=\"card o-hidden border-0 shadow-lg my-5\">
  129.                     <div class=\"card-body p-0\">
  130.                         <!-- Nested Row within Card Body -->
  131.                         <div class=\"row\">
  132.                             ";
  133.         // line 31
  134.         yield "                            <div class=\"w-100\">
  135.                                 <div class=\"p-5\">
  136.                                     <div class=\"text-center\">
  137.                                         <h1 class=\"h4 text-gray-900 mb-4\">Вход</h1>
  138.                                     </div>
  139.                                     <form class=\"user\" method=\"post\">
  140.                                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  141.         // line 37
  142.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  143.         yield "\">
  144.     
  145.                                         <div class=\"form-group\">
  146.                                             <input type=\"text\" id=\"inputUsername\" name=\"username\" class=\"form-control form-control-user\" value=\"";
  147.         // line 40
  148.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'40$this->source); })()), "html"nulltrue);
  149.         yield "\" aria-describedby=\"emailHelp\" required autofocus placeholder=\"Логин\">
  150.                                         </div>
  151.                                         <div class=\"form-group\">
  152.                                             <input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control form-control-user\" placeholder=\"Пароль\" autocomplete=\"current-password\" required>
  153.                                         </div>
  154.                                         ";
  155.         // line 57
  156.         yield "
  157.                                         <button type=\"submit\" class=\"btn btn-primary btn-user btn-block\">Войти</button>
  158.                                         ";
  159.         // line 60
  160.         yield "                                        ";
  161.         // line 66
  162.         yield "                                    </form>
  163.                                     ";
  164.         // line 74
  165.         yield "                                </div>
  166.                             </div>
  167.                         </div>
  168.                     </div>
  169.                 </div>
  170.             </div>
  171.         </div>
  172.     </div>
  173. ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.         return; yield '';
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function getTemplateName()
  184.     {
  185.         return "security/login.html.twig";
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function isTraitable()
  191.     {
  192.         return false;
  193.     }
  194.     /**
  195.      * @codeCoverageIgnore
  196.      */
  197.     public function getDebugInfo()
  198.     {
  199.         return array (  191 => 74,  188 => 66,  186 => 60,  182 => 57,  173 => 40,  167 => 37,  159 => 31,  152 => 25,  145 => 19,  136 => 17,  132 => 16,  129 => 15,  120 => 13,  116 => 12,  111 => 9,  101 => 8,  81 => 7,  61 => 4,  38 => 2,);
  200.     }
  201.     public function getSourceContext()
  202.     {
  203.         return new Source("
  204. {% extends 'base.html.twig' %}
  205. {% block title %}Вход{% endblock %}
  206. {% block bodyClass %}bg-gradient-primary{% endblock %}
  207. {% block body %}
  208.     <div class=\"container\">
  209.         <div class=\"dashboard-container mt-3\">
  210.             <div class=\"container\">
  211.                 {% for flash in app.session.flashbag.get('success') %}
  212.                     <div class=\"alert alert-success\">{{ flash }}</div>
  213.                 {% endfor %}
  214.                 {% for flash in app.session.flashbag.get('errors') %}
  215.                     <div class=\"alert alert-danger\">{{ flash }}</div>
  216.                 {% endfor %}
  217.             </div>
  218.         </div>
  219.         <!-- Outer Row -->
  220.         <div class=\"row justify-content-center\">
  221.             {# <div class=\"col-xl-10 col-lg-12 col-md-9\"> #}
  222.             <div class=\"col-md-9\" style=\"max-width: 500px;\">
  223.                 <div class=\"card o-hidden border-0 shadow-lg my-5\">
  224.                     <div class=\"card-body p-0\">
  225.                         <!-- Nested Row within Card Body -->
  226.                         <div class=\"row\">
  227.                             {# <div class=\"col-lg-6 d-none d-lg-block bg-login-image\"></div> #}
  228.                             <div class=\"w-100\">
  229.                                 <div class=\"p-5\">
  230.                                     <div class=\"text-center\">
  231.                                         <h1 class=\"h4 text-gray-900 mb-4\">Вход</h1>
  232.                                     </div>
  233.                                     <form class=\"user\" method=\"post\">
  234.                                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  235.     
  236.                                         <div class=\"form-group\">
  237.                                             <input type=\"text\" id=\"inputUsername\" name=\"username\" class=\"form-control form-control-user\" value=\"{{ last_username }}\" aria-describedby=\"emailHelp\" required autofocus placeholder=\"Логин\">
  238.                                         </div>
  239.                                         <div class=\"form-group\">
  240.                                             <input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control form-control-user\" placeholder=\"Пароль\" autocomplete=\"current-password\" required>
  241.                                         </div>
  242.                                         {#
  243.                                         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  244.                                         See https://symfony.com/doc/current/security/remember_me.html
  245.                                         <div class=\"form-group\">
  246.                                             <div class=\"custom-control custom-checkbox small\">
  247.                                                 <input type=\"checkbox\" id=\"customCheck\" name=\"_remember_me\" class=\"custom-control-input\">
  248.                                                 <label class=\"custom-control-label\" for=\"customCheck\">Remember Me</label>
  249.                                             </div>
  250.                                         </div> 
  251.                                         #}
  252.                                         <button type=\"submit\" class=\"btn btn-primary btn-user btn-block\">Войти</button>
  253.                                         {# <hr> #}
  254.                                         {# <a href=\"index.html\" class=\"btn btn-google btn-user btn-block\">
  255.                                             <i class=\"fab fa-google fa-fw\"></i> Login with Google
  256.                                         </a>
  257.                                         <a href=\"index.html\" class=\"btn btn-facebook btn-user btn-block\">
  258.                                             <i class=\"fab fa-facebook-f fa-fw\"></i> Login with Facebook
  259.                                         </a> #}
  260.                                     </form>
  261.                                     {# <hr>
  262.                                     <div class=\"text-center\">
  263.                                         <a class=\"small\" href=\"forgot-password.html\">Forgot Password?</a>
  264.                                     </div>
  265.                                     <div class=\"text-center\">
  266.                                         <a class=\"small\" href=\"register.html\">Create an Account!</a>
  267.                                     </div> #}
  268.                                 </div>
  269.                             </div>
  270.                         </div>
  271.                     </div>
  272.                 </div>
  273.             </div>
  274.         </div>
  275.     </div>
  276. {% endblock %}
  277. ""security/login.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/security/login.html.twig");
  278.     }
  279. }