var/cache/dev/twig/59/59fb42cfeefd0188b99109be5c43b246ea8008b5033de390f74577d63f2fc4b4.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/login.html.twig */
  14. class __TwigTemplate_ae3864c15d9a264690c77fa8c9bbaebf4b3e28278391d1709fa0e2474aad7dc0 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "CRM";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 4
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 5
  69.         echo "    <style>
  70.         html, body {
  71.             height: 100%;
  72.         }
  73.         body {
  74.             display: flex;
  75.             align-items: center;
  76.             padding-top: 40px;
  77.             padding-bottom: 40px;
  78.             background-color: #f5f5f5;
  79.         }
  80.     </style>
  81.     <main class=\"form-signin\">
  82.         <form method=\"post\">
  83.             ";
  84.         // line 20
  85.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'20$this->source); })())) {
  86.             // line 21
  87.             echo "                <div class=\"alert alert-danger\">";
  88.             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.'21$this->source); })()), "messageKey", [], "any"falsefalsefalse21), 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.'21$this->source); })()), "messageData", [], "any"falsefalsefalse21), "security"), "html"nulltrue);
  89.             echo "</div>
  90.             ";
  91.         }
  92.         // line 23
  93.         echo "
  94.             ";
  95.         // line 24
  96.         if (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.'24$this->source); })()), "user", [], "any"falsefalsefalse24)) {
  97.             // line 25
  98.             echo "                <div class=\"mb-3\">
  99.                     You are logged in as ";
  100.             // line 26
  101.             echo twig_escape_filter($this->envtwig_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.'26$this->source); })()), "user", [], "any"falsefalsefalse26), "username", [], "any"falsefalsefalse26), "html"nulltrue);
  102.             echo ", <a href=\"";
  103.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  104.             echo "\">Logout</a>
  105.                 </div>
  106.             ";
  107.         }
  108.         // line 29
  109.         echo "
  110.             <h1 class=\"h3 mb-3 font-weight-normal\">Вам газета: CRM</h1>
  111.             <label for=\"inputEmail\">Email</label>
  112.             <input type=\"email\" value=\"";
  113.         // line 32
  114.         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.'32$this->source); })()), "html"nulltrue);
  115.         echo "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" required autofocus>
  116.             <label for=\"inputPassword\">Пароль</label>
  117.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  118.             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  119.         // line 35
  120.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  121.         echo "\">
  122.             <div class=\"checkbox mb-3\">
  123.                 <label>
  124.                     <input type=\"checkbox\" name=\"_remember_me\"> Запомнить меня
  125.                 </label>
  126.             </div>
  127.             <button class=\"w-100 btn btn-lg btn-primary\" type=\"submit\">Войти</button>
  128.             <p class=\"mt-5 mb-3 text-muted\">© ";
  129.         // line 42
  130.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  131.         echo " Alex</p>
  132.         </form>
  133.     </main>
  134. ";
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.     }
  140.     public function getTemplateName()
  141.     {
  142.         return "security/login.html.twig";
  143.     }
  144.     public function isTraitable()
  145.     {
  146.         return false;
  147.     }
  148.     public function getDebugInfo()
  149.     {
  150.         return array (  150 => 42,  140 => 35,  134 => 32,  129 => 29,  121 => 26,  118 => 25,  116 => 24,  113 => 23,  107 => 21,  105 => 20,  88 => 5,  78 => 4,  59 => 3,  36 => 1,);
  151.     }
  152.     public function getSourceContext()
  153.     {
  154.         return new Source("{% extends 'base.html.twig' %}
  155. {% block title %}CRM{% endblock %}
  156. {% block body %}
  157.     <style>
  158.         html, body {
  159.             height: 100%;
  160.         }
  161.         body {
  162.             display: flex;
  163.             align-items: center;
  164.             padding-top: 40px;
  165.             padding-bottom: 40px;
  166.             background-color: #f5f5f5;
  167.         }
  168.     </style>
  169.     <main class=\"form-signin\">
  170.         <form method=\"post\">
  171.             {% if error %}
  172.                 <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  173.             {% endif %}
  174.             {% if app.user %}
  175.                 <div class=\"mb-3\">
  176.                     You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  177.                 </div>
  178.             {% endif %}
  179.             <h1 class=\"h3 mb-3 font-weight-normal\">Вам газета: CRM</h1>
  180.             <label for=\"inputEmail\">Email</label>
  181.             <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" required autofocus>
  182.             <label for=\"inputPassword\">Пароль</label>
  183.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  184.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  185.             <div class=\"checkbox mb-3\">
  186.                 <label>
  187.                     <input type=\"checkbox\" name=\"_remember_me\"> Запомнить меня
  188.                 </label>
  189.             </div>
  190.             <button class=\"w-100 btn btn-lg btn-primary\" type=\"submit\">Войти</button>
  191.             <p class=\"mt-5 mb-3 text-muted\">© {{ \"now\"|date(\"Y\") }} Alex</p>
  192.         </form>
  193.     </main>
  194. {% endblock %}
  195. ""security/login.html.twig""/var/www/crm.vamgazeta.ru/templates/security/login.html.twig");
  196.     }
  197. }