var/cache/dev/twig/09/0965db0fe6eddce058e74fc380b18bb4.php line 54

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