<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* security/login.html.twig */
class __TwigTemplate_b65c6c164e38ddf7013c518ff2f0208f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
// line 1
yield "<html>
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<meta name=\"description\" content=\"Finance Managment\">
<meta name=\"author\" content=\"Kolossus\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon/favicon.png"), "html", null, true);
yield ">
<link href=\"";
// line 11
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);
yield "\" rel=\"stylesheet\">
<link href=\"";
// line 12
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);
yield "\" rel=\"stylesheet\">
<title>FM - Iniciar Sesion</title>
</head>
<body class=\"bg-gradient-primary\">
<div class=\"container\">
<div class=\"row justify-content-center my-5\">
<div class=\"col-md-9 col-lg-6 col-xl-6\">
<div class=\"card shadow-lg o-hidden border-0 my-5\">
<div class=\"card-body p-0\">
<div class=\"row\">
<div class=\"col\">
<div class=\"p-5\">
<div class=\"text-center\">
<h4 class=\"text-dark mb-4\">Iniciar Sesion</h4>
</div>
<form class=\"user\" method=\"post\">
";
// line 28
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 28, $this->source); })())) {
// line 29
yield " <div class=\"alert alert-danger\">";
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);
yield "</div>
";
}
// line 31
yield "
";
// line 32
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)) {
// line 33
yield " <div class=\"mb-3\">
Iniciaste sesion con: ";
// line 34
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);
yield ", <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\">Cerrar Sesion</a>
</div>
";
}
// line 37
yield " <div class=\"form-group\"><input id=\"inputEmail\" value=\"";
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);
yield "\" class=\"form-control form-control-user\" type=\"email\" placeholder=\"Email\" name=\"email\" /></div>
<div class=\"form-group\"><input id=\"inputPassword\" class=\"form-control form-control-user\" type=\"password\" placeholder=\"ContraseƱa\" name=\"password\" /></div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<button class=\"btn btn-primary btn-block text-white btn-user\" type=\"submit\">Login</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<html>
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<meta name=\"description\" content=\"Finance Managment\">
<meta name=\"author\" content=\"Kolossus\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href={{ asset('assets/images/icon/favicon.png') }}>
<link href=\"{{ asset('./plugins/toast-master/css/jquery.toast.css') }}\" rel=\"stylesheet\">
<link href=\"{{ asset('./plugins/bootstrap/css/bootstrap.min.css') }}\" rel=\"stylesheet\">
<title>FM - Iniciar Sesion</title>
</head>
<body class=\"bg-gradient-primary\">
<div class=\"container\">
<div class=\"row justify-content-center my-5\">
<div class=\"col-md-9 col-lg-6 col-xl-6\">
<div class=\"card shadow-lg o-hidden border-0 my-5\">
<div class=\"card-body p-0\">
<div class=\"row\">
<div class=\"col\">
<div class=\"p-5\">
<div class=\"text-center\">
<h4 class=\"text-dark mb-4\">Iniciar Sesion</h4>
</div>
<form class=\"user\" method=\"post\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
Iniciaste sesion con: {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Cerrar Sesion</a>
</div>
{% endif %}
<div class=\"form-group\"><input id=\"inputEmail\" value=\"{{ last_username }}\" class=\"form-control form-control-user\" type=\"email\" placeholder=\"Email\" name=\"email\" /></div>
<div class=\"form-group\"><input id=\"inputPassword\" class=\"form-control form-control-user\" type=\"password\" placeholder=\"ContraseƱa\" name=\"password\" /></div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<button class=\"btn btn-primary btn-block text-white btn-user\" type=\"submit\">Login</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>", "security/login.html.twig", "/var/www/demo_fm/templates/security/login.html.twig");
}
}