var/cache/dev/twig/20/204d9fd292f17f87b073a1c43ecc468a.php line 50

  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_51eadfba8a5e983105e52b3937e3d97e 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 "Log in!";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.         return; yield '';
  61.     }
  62.     // line 5
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 6
  71.         yield "    <div class=\"container\">
  72.         <div class=\"row\">
  73.             <div class=\"col-6 mt-5 offset-3\">
  74.                 <form method=\"post\">
  75.                     ";
  76.         // line 10
  77.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'10$this->source); })())) {
  78.             // line 11
  79.             yield "                        <div class=\"alert alert-danger\">";
  80.             yield Twig\Extension\EscaperExtension::escape($this->env$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.'11$this->source); })()), "messageKey", [], "any"falsefalsefalse11), 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.'11$this->source); })()), "messageData", [], "any"falsefalsefalse11), "security"), "html"nulltrue);
  81.             yield "</div>
  82.                     ";
  83.         }
  84.         // line 13
  85.         yield "
  86.                     ";
  87.         // line 14
  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.'14$this->source); })()), "user", [], "any"falsefalsefalse14)) {
  89.             // line 15
  90.             yield "                        <div class=\"mb-3\">
  91.                             You are logged in as ";
  92.             // line 16
  93.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::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); })()), "user", [], "any"falsefalsefalse16), "username", [], "any"falsefalsefalse16), "html"nulltrue);
  94.             yield ", <a href=\"";
  95.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  96.             yield "\">Logout</a>
  97.                         </div>
  98.                     ";
  99.         }
  100.         // line 19
  101.         yield "
  102.                     <h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  103.                     <label class=\"mt-3\" for=\"inputEmail\">Email</label>
  104.                     <input type=\"email\" value=\"";
  105.         // line 23
  106.         yield Twig\Extension\EscaperExtension::escape($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.'23$this->source); })()), "html"nulltrue);
  107.         yield "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  108.                     <label class=\"mt-3\" for=\"inputPassword\">Password</label>
  109.                     <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  110.                     <input type=\"hidden\" name=\"_csrf_token\"
  111.                            value=\"";
  112.         // line 29
  113.         yield Twig\Extension\EscaperExtension::escape($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  114.         yield "\"
  115.                     >
  116.                     ";
  117.         // line 42
  118.         yield "
  119.                     <button class=\"btn btn-lg btn-primary mt-3\" type=\"submit\">
  120.                         Sign in
  121.                     </button>
  122.                 </form>
  123.             </div>
  124.         </div>
  125.     </div>
  126. ";
  127.         
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.         return; yield '';
  132.     }
  133.     /**
  134.      * @codeCoverageIgnore
  135.      */
  136.     public function getTemplateName()
  137.     {
  138.         return "security/login.html.twig";
  139.     }
  140.     /**
  141.      * @codeCoverageIgnore
  142.      */
  143.     public function isTraitable()
  144.     {
  145.         return false;
  146.     }
  147.     /**
  148.      * @codeCoverageIgnore
  149.      */
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  141 => 42,  135 => 29,  126 => 23,  120 => 19,  112 => 16,  109 => 15,  107 => 14,  104 => 13,  98 => 11,  96 => 10,  90 => 6,  80 => 5,  60 => 3,  37 => 1,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{% extends 'base.html.twig' %}
  157. {% block title %}Log in!{% endblock %}
  158. {% block body %}
  159.     <div class=\"container\">
  160.         <div class=\"row\">
  161.             <div class=\"col-6 mt-5 offset-3\">
  162.                 <form method=\"post\">
  163.                     {% if error %}
  164.                         <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  165.                     {% endif %}
  166.                     {% if app.user %}
  167.                         <div class=\"mb-3\">
  168.                             You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  169.                         </div>
  170.                     {% endif %}
  171.                     <h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  172.                     <label class=\"mt-3\" for=\"inputEmail\">Email</label>
  173.                     <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  174.                     <label class=\"mt-3\" for=\"inputPassword\">Password</label>
  175.                     <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  176.                     <input type=\"hidden\" name=\"_csrf_token\"
  177.                            value=\"{{ csrf_token('authenticate') }}\"
  178.                     >
  179.                     {#
  180.                         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  181.                         See https://symfony.com/doc/current/security/remember_me.html
  182.                         <div class=\"checkbox mb-3\">
  183.                             <label>
  184.                                 <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  185.                             </label>
  186.                         </div>
  187.                     #}
  188.                     <button class=\"btn btn-lg btn-primary mt-3\" type=\"submit\">
  189.                         Sign in
  190.                     </button>
  191.                 </form>
  192.             </div>
  193.         </div>
  194.     </div>
  195. {% endblock %}
  196. ""security/login.html.twig""/var/www/admin-apag/templates/security/login.html.twig");
  197.     }
  198. }