<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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_ea7941e37b9de5c6b484b4fed834ddb0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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"));
$this->parent = $this->loadTemplate("base.html.twig", "security/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "\t<div
\t\tclass=\"login-box\">
\t\t<!-- /.login-logo -->
\t\t<div class=\"card\">
\t\t\t<div class=\"login-logo\">
\t\t\t\t<img src=\"/images/ge_logo.png\"/>
\t\t\t</div>
\t\t\t<div class=\"card-body login-card-body\">
\t\t\t\t";
// line 13
if ( !twig_get_attribute($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", false, false, false, 13)) {
// line 14
echo "\t\t\t\t\t<p class=\"login-box-msg\">
\t\t\t\t\t\tSign in to start your session
\t\t\t\t\t</p>
\t\t\t\t";
}
// line 18
echo "
\t\t\t\t<form action=\"\" method=\"post\">
\t\t\t\t\t";
// line 20
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 20, $this->source); })())) {
// line 21
echo "\t\t\t\t\t\t<div class=\"alert alert-danger\">
\t\t\t\t\t\t\t";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })()), "messageKey", [], "any", false, false, false, 22), twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })()), "messageData", [], "any", false, false, false, 22), "security"), "html", null, true);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 25
echo "\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25)) {
// line 26
echo "\t\t\t\t\t\t<div class=\"mb-3 text-center\">
\t\t\t\t\t\t\tYou are logged in as
\t\t\t\t\t\t\t";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "username", [], "any", false, false, false, 28), "html", null, true);
echo "
\t\t\t\t\t\t\t,
\t\t\t\t\t\t\t<a href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">
\t\t\t\t\t\t\t\tLogout
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 35
echo "\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t<input id=\"inputEmail\" type=\"email\" class=\"form-control\" name=\"username\" value=\"";
// line 36
echo twig_escape_filter($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.', 36, $this->source); })()), "html", null, true);
echo "\" required autofocus/>
\t\t\t\t\t\t<div class=\"input-group-append\">
\t\t\t\t\t\t\t<div class=\"input-group-text\">
\t\t\t\t\t\t\t\t<span class=\"fas fa-envelope\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t<input id=\"inputPassword\" type=\"password\" class=\"form-control\" name=\"password\" required/>
\t\t\t\t\t\t<div class=\"input-group-append\">
\t\t\t\t\t\t\t<div class=\"input-group-text\">
\t\t\t\t\t\t\t\t<span class=\"fas fa-lock\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-8\">
\t\t\t\t\t\t\t<div class=\"icheck-primary\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"remember\">
\t\t\t\t\t\t\t\t<label for=\"remember\">
\t\t\t\t\t\t\t\t\tRemember Me
\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.col -->
\t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 61
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\"/>
\t\t\t\t\t\t<div class=\"col-4\">
\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary btn-block\">
\t\t\t\t\t\t\t\tSign In
\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.col -->
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t\t<p class=\"mt-4 mb-1 text-right\">
\t\t\t\t\t<a href=\"/reset-password\">
\t\t\t\t\t\tI forgot my password
\t\t\t\t\t</a>
\t\t\t\t</p>
\t\t\t\t";
// line 81
echo "\t\t\t</div>
\t\t\t<!-- /.login-card-body -->
\t\t\t<div class=\"login-footer\">
\t\t\t\t";
// line 87
echo "\t\t\t\t<div class=\"text-center\">
\t\t\t\t\tCopyright © MC Commercial Inc. All Rights Reserved.
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 176 => 87, 171 => 81, 153 => 61, 125 => 36, 122 => 35, 114 => 30, 109 => 28, 105 => 26, 102 => 25, 96 => 22, 93 => 21, 91 => 20, 87 => 18, 81 => 14, 79 => 13, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
\t<div
\t\tclass=\"login-box\">
\t\t<!-- /.login-logo -->
\t\t<div class=\"card\">
\t\t\t<div class=\"login-logo\">
\t\t\t\t<img src=\"/images/ge_logo.png\"/>
\t\t\t</div>
\t\t\t<div class=\"card-body login-card-body\">
\t\t\t\t{% if not app.user %}
\t\t\t\t\t<p class=\"login-box-msg\">
\t\t\t\t\t\tSign in to start your session
\t\t\t\t\t</p>
\t\t\t\t{% endif %}
\t\t\t\t<form action=\"\" method=\"post\">
\t\t\t\t\t{% if error %}
\t\t\t\t\t\t<div class=\"alert alert-danger\">
\t\t\t\t\t\t\t{{ error.messageKey|trans(error.messageData, 'security') }}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if app.user %}
\t\t\t\t\t\t<div class=\"mb-3 text-center\">
\t\t\t\t\t\t\tYou are logged in as
\t\t\t\t\t\t\t{{ app.user.username }}
\t\t\t\t\t\t\t,
\t\t\t\t\t\t\t<a href=\"{{ path('app_logout') }}\">
\t\t\t\t\t\t\t\tLogout
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t<input id=\"inputEmail\" type=\"email\" class=\"form-control\" name=\"username\" value=\"{{ last_username }}\" required autofocus/>
\t\t\t\t\t\t<div class=\"input-group-append\">
\t\t\t\t\t\t\t<div class=\"input-group-text\">
\t\t\t\t\t\t\t\t<span class=\"fas fa-envelope\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t<input id=\"inputPassword\" type=\"password\" class=\"form-control\" name=\"password\" required/>
\t\t\t\t\t\t<div class=\"input-group-append\">
\t\t\t\t\t\t\t<div class=\"input-group-text\">
\t\t\t\t\t\t\t\t<span class=\"fas fa-lock\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-8\">
\t\t\t\t\t\t\t<div class=\"icheck-primary\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"remember\">
\t\t\t\t\t\t\t\t<label for=\"remember\">
\t\t\t\t\t\t\t\t\tRemember Me
\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.col -->
\t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\"/>
\t\t\t\t\t\t<div class=\"col-4\">
\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary btn-block\">
\t\t\t\t\t\t\t\tSign In
\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.col -->
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t\t<p class=\"mt-4 mb-1 text-right\">
\t\t\t\t\t<a href=\"/reset-password\">
\t\t\t\t\t\tI forgot my password
\t\t\t\t\t</a>
\t\t\t\t</p>
\t\t\t\t{#<p class=\"mb-0 text-right\">
\t\t\t\t\t<a href=\"register.html\" class=\"text-center\">
\t\t\t\t\t\tDon’t have an account? Sign up
\t\t\t\t\t</a>
\t\t\t\t</p>#}
\t\t\t</div>
\t\t\t<!-- /.login-card-body -->
\t\t\t<div class=\"login-footer\">
\t\t\t\t{#<div class=\"text-center\">
\t\t\t\t\tTerm of Service | Privacy Policy
\t\t\t\t</div>#}
\t\t\t\t<div class=\"text-center\">
\t\t\t\t\tCopyright © MC Commercial Inc. All Rights Reserved.
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "security/login.html.twig", "/app/templates/security/login.html.twig");
}
}