<?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_a3d327f0d2cc9e4242593123820149c1 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 "<!DOCTYPE html>
<html>
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<title>Dms - Data Management System</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<!-- Font Awesome -->
<link rel=\"stylesheet\" href=\"";
// line 11
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/fontawesome-free/css/all.min.css"), "html", null, true);
yield "\">
<!-- Ionicons -->
<link rel=\"stylesheet\" href=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">
<!-- icheck bootstrap -->
<link rel=\"stylesheet\" href=\"";
// line 15
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/icheck-bootstrap/icheck-bootstrap.min.css"), "html", null, true);
yield "\">
<!-- Theme style -->
<link rel=\"stylesheet\" href=\"";
// line 17
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/css/adminlte.min.css"), "html", null, true);
yield "\">
<!-- Google Font: Source Sans Pro -->
<link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700\" rel=\"stylesheet\">
</head>
<body class=\"hold-transition login-page\">
<div class=\"login-box\">
<div class=\"login-logo\">
<a href=\"javascript:void(0)\"><b>Login</b></a>
</div>
<!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
<div id=\"alert\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 30, $this->source); })()), "flashes", ["success"], "method", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 31
yield " <div class=\"alert alert-success\">
";
// line 32
yield Twig\Extension\EscaperExtension::escape($this->env, $context["message"], "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 35, $this->source); })()), "flashes", ["error"], "method", false, false, false, 35));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 36
yield " <div class=\"alert alert-danger\">
";
// line 37
yield Twig\Extension\EscaperExtension::escape($this->env, $context["message"], "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
yield " </div>
<p class=\"login-box-msg\">Login to start your session</p>
<form method=\"post\">
";
// line 44
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 44, $this->source); })())) {
// line 45
yield " <div class=\"alert alert-danger\">";
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.', 45, $this->source); })()), "messageKey", [], "any", false, false, false, 45), 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.', 45, $this->source); })()), "messageData", [], "any", false, false, false, 45), "security"), "html", null, true);
yield "</div>
";
}
// line 47
yield "
";
// line 48
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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48)) {
// line 49
yield " <div class=\"mb-3\">
You are logged in as ";
// line 50
yield Twig\Extension\EscaperExtension::escape($this->env, 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.', 50, $this->source); })()), "user", [], "any", false, false, false, 50), "username", [], "any", false, false, false, 50), "html", null, true);
yield ", <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\">Logout</a>
</div>
";
}
// line 53
yield " <div class=\"input-group mb-3\">
<input type=\"text\" value=\"";
// line 54
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.', 54, $this->source); })()), "html", null, true);
yield "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus placeholder=\"Email\">
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<span class=\"fas fa-envelope\"></span>
</div>
</div>
</div>
<div class=\"input-group mb-3\">
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 64
yield Twig\Extension\EscaperExtension::escape($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\"
>
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<span class=\"fas fa-lock\"></span>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<button type=\"submit\" class=\"btn btn-success btn-block mb-2\">Login</button>
";
// line 77
yield " </div>
</div>
</form>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->
<!-- jQuery -->
<script src=\"";
// line 87
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/jquery/jquery.min.js"), "html", null, true);
yield "\"></script>
<!-- Bootstrap 4 -->
<script src=\"";
// line 89
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/bootstrap/js/bootstrap.bundle.min.js"), "html", null, true);
yield "\"></script>
<!-- AdminLTE App -->
<script src=\"";
// line 91
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/js/adminlte.min.js"), "html", null, true);
yield "\"></script>
</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 ( 199 => 91, 194 => 89, 189 => 87, 177 => 77, 163 => 64, 150 => 54, 147 => 53, 139 => 50, 136 => 49, 134 => 48, 131 => 47, 125 => 45, 123 => 44, 117 => 40, 108 => 37, 105 => 36, 100 => 35, 91 => 32, 88 => 31, 84 => 30, 68 => 17, 63 => 15, 56 => 11, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<title>Dms - Data Management System</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<!-- Font Awesome -->
<link rel=\"stylesheet\" href=\"{{ asset('plugins/fontawesome-free/css/all.min.css') }}\">
<!-- Ionicons -->
<link rel=\"stylesheet\" href=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">
<!-- icheck bootstrap -->
<link rel=\"stylesheet\" href=\"{{ asset('plugins/icheck-bootstrap/icheck-bootstrap.min.css') }}\">
<!-- Theme style -->
<link rel=\"stylesheet\" href=\"{{ asset('dist/css/adminlte.min.css') }}\">
<!-- Google Font: Source Sans Pro -->
<link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700\" rel=\"stylesheet\">
</head>
<body class=\"hold-transition login-page\">
<div class=\"login-box\">
<div class=\"login-logo\">
<a href=\"javascript:void(0)\"><b>Login</b></a>
</div>
<!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
<div id=\"alert\">
{% for message in app.flashes('success') %}
<div class=\"alert alert-success\">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class=\"alert alert-danger\">
{{ message }}
</div>
{% endfor %}
</div>
<p class=\"login-box-msg\">Login to start your session</p>
<form method=\"post\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
</div>
{% endif %}
<div class=\"input-group mb-3\">
<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus placeholder=\"Email\">
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<span class=\"fas fa-envelope\"></span>
</div>
</div>
</div>
<div class=\"input-group mb-3\">
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\"
>
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<span class=\"fas fa-lock\"></span>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<button type=\"submit\" class=\"btn btn-success btn-block mb-2\">Login</button>
{# <a href=\"{{path('app_register')}}\">New Supervisor?</a>  
<a href=\"{{path('app_forgot_password_request')}}\">Forgot password?</a> #}
</div>
</div>
</form>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->
<!-- jQuery -->
<script src=\"{{ asset('plugins/jquery/jquery.min.js') }}\"></script>
<!-- Bootstrap 4 -->
<script src=\"{{ asset('plugins/bootstrap/js/bootstrap.bundle.min.js') }}\"></script>
<!-- AdminLTE App -->
<script src=\"{{ asset('dist/js/adminlte.min.js') }}\"></script>
</body>
</html>
", "security/login.html.twig", "/home/kr5bo77k0nms/public_html/devdms.karavyasolutions.com/templates/security/login.html.twig");
}
}