var/cache/dev/twig/11/1134e7b072ff44278df8779ba58dfa78.php line 50

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_0765c1d7546b89b041e2c424db99e4f1 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.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         yield " ";
  56.         yield from $this->yieldParentBlock("title"$context$blocks);
  57.         yield " Login!";
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.         return; yield '';
  63.     }
  64.     // line 5
  65.     public function block_body($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  72.         // line 6
  73.         yield "    <div class=\"container-fluid col-md-8\">
  74.         ";
  75.         // line 7
  76.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'7$this->source); })())) {
  77.             // line 8
  78.             yield "            <div class=\"col-6 align-items-center alert alert-danger\">
  79.                 ";
  80.             // line 9
  81.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($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), CoreExtension::getAttribute($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);
  82.             yield "
  83.             </div>
  84.         ";
  85.         }
  86.         // line 12
  87.         yield "        ";
  88.         if (CoreExtension::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); })()), "user", [], "any"falsefalsefalse12)) {
  89.             // line 13
  90.             yield "            <div class=\"mb-3\">
  91.                 You are logged in as ";
  92.             // line 14
  93.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::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.'14$this->source); })()), "user", [], "any"falsefalsefalse14), "username", [], "any"falsefalsefalse14), "html"nulltrue);
  94.             yield ", <a href=\"";
  95.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_logout");
  96.             yield "\">Logout</a>
  97.             </div>
  98.         ";
  99.         } else {
  100.             // line 17
  101.             yield "            <form action=\"";
  102.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("security_login");
  103.             yield "\" method=\"post\">
  104.                 <div class=\"col-6 align-items-center\">
  105.                     <div class=\"form-group\"><h1 class=\"h3 mb-3 font-weight-normal\">Please Login</h1>
  106.                         <label for=\"inputUsername\">Username</label>
  107.                         <input type=\"text\" value=\"";
  108.             // line 21
  109.             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.'21$this->source); })()), "html"nulltrue);
  110.             yield "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  111.                     </div>
  112.                     <div class=\"form-group\">
  113.                         <label for=\"inputPassword\">Password</label>
  114.                         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  115.                     </div>
  116.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  117.             // line 28
  118.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  119.             yield "\">
  120.                     <input type=\"hidden\" name=\"_target_path\" value=\"";
  121.             // line 29
  122.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("welcome");
  123.             yield "\"/>
  124.                     <div class=\"form-group\">
  125.                         <button type=\"submit\" id=\"Login\" name=\"Login\" class=\"btn btn-lg btn-primary\">Login</button>
  126.                     </div>
  127.             ";
  128.             // line 44
  129.             yield "                </div>
  130.             </form>
  131.         ";
  132.         }
  133.         // line 47
  134.         yield "    <div class=\"container col-md-4 py-3\">
  135. ";
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.         
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140.         return; yield '';
  141.     }
  142.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function getTemplateName()
  146.     {
  147.         return "security/login.html.twig";
  148.     }
  149.     /**
  150.      * @codeCoverageIgnore
  151.      */
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     /**
  157.      * @codeCoverageIgnore
  158.      */
  159.     public function getDebugInfo()
  160.     {
  161.         return array (  155 => 47,  150 => 44,  142 => 29,  138 => 28,  128 => 21,  120 => 17,  112 => 14,  109 => 13,  106 => 12,  100 => 9,  97 => 8,  95 => 7,  92 => 6,  82 => 5,  60 => 3,  37 => 1,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{% extends 'base.html.twig' %}
  166. {% block title %} {{ parent() }} Login!{% endblock %}
  167. {% block body %}
  168.     <div class=\"container-fluid col-md-8\">
  169.         {% if error %}
  170.             <div class=\"col-6 align-items-center alert alert-danger\">
  171.                 {{ error.messageKey|trans(error.messageData, 'security') }}
  172.             </div>
  173.         {% endif %}
  174.         {% if app.user %}
  175.             <div class=\"mb-3\">
  176.                 You are logged in as {{ app.user.username }}, <a href=\"{{ path('security_logout') }}\">Logout</a>
  177.             </div>
  178.         {% else %}
  179.             <form action=\"{{ path('security_login') }}\" method=\"post\">
  180.                 <div class=\"col-6 align-items-center\">
  181.                     <div class=\"form-group\"><h1 class=\"h3 mb-3 font-weight-normal\">Please Login</h1>
  182.                         <label for=\"inputUsername\">Username</label>
  183.                         <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  184.                     </div>
  185.                     <div class=\"form-group\">
  186.                         <label for=\"inputPassword\">Password</label>
  187.                         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
  188.                     </div>
  189.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  190.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ path('welcome') }}\"/>
  191.                     <div class=\"form-group\">
  192.                         <button type=\"submit\" id=\"Login\" name=\"Login\" class=\"btn btn-lg btn-primary\">Login</button>
  193.                     </div>
  194.             {#
  195.                 Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  196.                 See https://symfony.com/doc/current/security/remember_me.html
  197.                 <div class=\"checkbox mb-3\">
  198.                     <label>
  199.                         <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  200.                     </label>
  201.                 </div>
  202.             #}
  203.                 </div>
  204.             </form>
  205.         {% endif %}
  206.     <div class=\"container col-md-4 py-3\">
  207. {% endblock %}
  208. ""security/login.html.twig""/var/www/clients/client1/web7/web/templates/security/login.html.twig");
  209.     }
  210. }