var/cache/dev/twig/4d/4da79d84d132fe9cb2af64cc396aa6c3.php line 93

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_b65c6c164e38ddf7013c518ff2f0208f 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->parent = false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros = $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  34.         // line 1
  35.         yield "<html>
  36. <head>
  37.     <meta charset=\"utf-8\">
  38.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  39.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  40.     <meta name=\"description\" content=\"Finance Managment\">
  41.     <meta name=\"author\" content=\"Kolossus\">
  42.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=";
  43.         // line 10
  44.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/favicon.png"), "html", null, true);
  45.         yield ">
  46.     <link href=\"";
  47.         // line 11
  48.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./plugins/toast-master/css/jquery.toast.css"), "html", null, true);
  49.         yield "\" rel=\"stylesheet\">
  50.     <link href=\"";
  51.         // line 12
  52.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./plugins/bootstrap/css/bootstrap.min.css"), "html", null, true);
  53.         yield "\" rel=\"stylesheet\">
  54.     <title>FM - Iniciar Sesion</title>
  55. </head>
  56. <body class=\"bg-gradient-primary\">
  57.     <div class=\"container\">
  58.         <div class=\"row justify-content-center my-5\">
  59.             <div class=\"col-md-9 col-lg-6 col-xl-6\">
  60.                 <div class=\"card shadow-lg o-hidden border-0 my-5\">
  61.                     <div class=\"card-body p-0\">
  62.                         <div class=\"row\">
  63.                             <div class=\"col\">
  64.                                 <div class=\"p-5\">
  65.                                     <div class=\"text-center\">
  66.                                         <h4 class=\"text-dark mb-4\">Iniciar Sesion</h4>
  67.                                     </div>
  68.                                     <form class=\"user\" method=\"post\">
  69.                                         ";
  70.         // line 28
  71.         if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 28, $this->source); })())) {
  72.             // line 29
  73.             yield "                                            <div class=\"alert alert-danger\">";
  74.             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.', 29, $this->source); })()), "messageKey", [], "any", false, false, false, 29), 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.', 29, $this->source); })()), "messageData", [], "any", false, false, false, 29), "security"), "html", null, true);
  75.             yield "</div>
  76.                                         ";
  77.         }
  78.         // line 31
  79.         yield "
  80.                                         ";
  81.         // line 32
  82.         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.', 32, $this->source); })()), "user", [], "any", false, false, false, 32)) {
  83.             // line 33
  84.             yield "                                            <div class=\"mb-3\">
  85.                                                 Iniciaste sesion con: ";
  86.             // line 34
  87.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 34, $this->source); })()), "user", [], "any", false, false, false, 34), "username", [], "any", false, false, false, 34), "html", null, true);
  88.             yield ", <a href=\"";
  89.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  90.             yield "\">Cerrar Sesion</a>
  91.                                             </div>
  92.                                         ";
  93.         }
  94.         // line 37
  95.         yield "                                        <div class=\"form-group\"><input id=\"inputEmail\" value=\"";
  96.         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.', 37, $this->source); })()), "html", null, true);
  97.         yield "\" class=\"form-control form-control-user\" type=\"email\" placeholder=\"Email\" name=\"email\" /></div>
  98.                                         <div class=\"form-group\"><input id=\"inputPassword\" class=\"form-control form-control-user\" type=\"password\" placeholder=\"ContraseƱa\" name=\"password\" /></div>
  99.                                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  100.         // line 39
  101.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  102.         yield "\">
  103.                                         <button class=\"btn btn-primary btn-block text-white btn-user\" type=\"submit\">Login</button>
  104.                                     </form>
  105.                                 </div>
  106.                             </div>
  107.                         </div>
  108.                     </div>
  109.                 </div>
  110.             </div>
  111.         </div>
  112.     </div>
  113. </body>
  114. </html>";
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.         
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  119.         return; yield '';
  120.     }
  121.     /**
  122.      * @codeCoverageIgnore
  123.      */
  124.     public function getTemplateName()
  125.     {
  126.         return "security/login.html.twig";
  127.     }
  128.     /**
  129.      * @codeCoverageIgnore
  130.      */
  131.     public function isTraitable()
  132.     {
  133.         return false;
  134.     }
  135.     /**
  136.      * @codeCoverageIgnore
  137.      */
  138.     public function getDebugInfo()
  139.     {
  140.         return array (  112 => 39,  106 => 37,  98 => 34,  95 => 33,  93 => 32,  90 => 31,  84 => 29,  82 => 28,  63 => 12,  59 => 11,  55 => 10,  44 => 1,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("<html>
  145. <head>
  146.     <meta charset=\"utf-8\">
  147.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  148.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  149.     <meta name=\"description\" content=\"Finance Managment\">
  150.     <meta name=\"author\" content=\"Kolossus\">
  151.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href={{ asset('assets/images/icon/favicon.png') }}>
  152.     <link href=\"{{ asset('./plugins/toast-master/css/jquery.toast.css') }}\" rel=\"stylesheet\">
  153.     <link href=\"{{ asset('./plugins/bootstrap/css/bootstrap.min.css') }}\" rel=\"stylesheet\">
  154.     <title>FM - Iniciar Sesion</title>
  155. </head>
  156. <body class=\"bg-gradient-primary\">
  157.     <div class=\"container\">
  158.         <div class=\"row justify-content-center my-5\">
  159.             <div class=\"col-md-9 col-lg-6 col-xl-6\">
  160.                 <div class=\"card shadow-lg o-hidden border-0 my-5\">
  161.                     <div class=\"card-body p-0\">
  162.                         <div class=\"row\">
  163.                             <div class=\"col\">
  164.                                 <div class=\"p-5\">
  165.                                     <div class=\"text-center\">
  166.                                         <h4 class=\"text-dark mb-4\">Iniciar Sesion</h4>
  167.                                     </div>
  168.                                     <form class=\"user\" method=\"post\">
  169.                                         {% if error %}
  170.                                             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  171.                                         {% endif %}
  172.                                         {% if app.user %}
  173.                                             <div class=\"mb-3\">
  174.                                                 Iniciaste sesion con: {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Cerrar Sesion</a>
  175.                                             </div>
  176.                                         {% endif %}
  177.                                         <div class=\"form-group\"><input id=\"inputEmail\" value=\"{{ last_username }}\" class=\"form-control form-control-user\" type=\"email\" placeholder=\"Email\" name=\"email\" /></div>
  178.                                         <div class=\"form-group\"><input id=\"inputPassword\" class=\"form-control form-control-user\" type=\"password\" placeholder=\"ContraseƱa\" name=\"password\" /></div>
  179.                                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  180.                                         <button class=\"btn btn-primary btn-block text-white btn-user\" type=\"submit\">Login</button>
  181.                                     </form>
  182.                                 </div>
  183.                             </div>
  184.                         </div>
  185.                     </div>
  186.                 </div>
  187.             </div>
  188.         </div>
  189.     </div>
  190. </body>
  191. </html>", "security/login.html.twig", "/var/www/demo_fm/templates/security/login.html.twig");
  192.     }
  193. }