<?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_7d5625cc1d00b1bf7fb878c97527f02f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/login.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("layouts/login.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_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "SACO EDUCATION | Log in";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
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 6
echo " <!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
";
// line 9
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 9, $this->source); })())) {
// line 10
echo " <div class=\"alert alert-danger\">";
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.', 10, $this->source); })()), "messageKey", [], "any", false, false, false, 10), 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.', 10, $this->source); })()), "messageData", [], "any", false, false, false, 10), "security"), "html", null, true);
echo "</div>
";
}
// line 12
echo " ";
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.', 12, $this->source); })()), "user", [], "any", false, false, false, 12)) {
// line 13
echo " <div class=\"mb-3\">
You are logged in as ";
// line 14
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.', 14, $this->source); })()), "user", [], "any", false, false, false, 14), "username", [], "any", false, false, false, 14), "html", null, true);
echo ", <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Logout</a>
</div>
";
}
// line 17
echo "
<p class=\"login-box-msg\">";
// line 18
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sign in to start your session", [], "messages");
echo "</p>
<form method=\"post\">
<div class=\"input-group mb-3\">
<input type=\"email\" value=\"";
// line 22
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.', 22, $this->source); })()), "html", null, true);
echo "\" name=\"email\" class=\"form-control\" placeholder=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Email", [], "messages");
echo "\" required autofocus>
<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\" class=\"form-control\" placeholder=\"";
// line 30
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Password", [], "messages");
echo "\" required>
<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-8\">
<div class=\"icheck-primary\">
<input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
<label for=\"remember\">
";
// line 42
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Remember Me", [], "messages");
// line 43
echo " </label>
</div>
</div>
<!-- /.col -->
<div class=\"col-4\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 49
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\"
>
<button type=\"submit\" class=\"btn btn-primary btn-block\">";
// line 51
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sign In", [], "messages");
echo "</button>
</div>
<!-- /.col -->
</div>
</form>
<!-- /.social-auth-links -->
</div>
<!-- /.login-card-body -->
</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 ( 168 => 51, 163 => 49, 155 => 43, 153 => 42, 138 => 30, 125 => 22, 118 => 18, 115 => 17, 107 => 14, 104 => 13, 101 => 12, 95 => 10, 93 => 9, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/login.html.twig' %}
{% block title %}SACO EDUCATION | Log in{% endblock %}
{% block body %}
<!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
{% 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 %}
<p class=\"login-box-msg\">{% trans %}Sign in to start your session{% endtrans %}</p>
<form method=\"post\">
<div class=\"input-group mb-3\">
<input type=\"email\" value=\"{{ last_username }}\" name=\"email\" class=\"form-control\" placeholder=\"{% trans %}Email{% endtrans %}\" required autofocus>
<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\" class=\"form-control\" placeholder=\"{% trans %}Password{% endtrans %}\" required>
<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-8\">
<div class=\"icheck-primary\">
<input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
<label for=\"remember\">
{% trans %}Remember Me{% endtrans %}
</label>
</div>
</div>
<!-- /.col -->
<div class=\"col-4\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\"
>
<button type=\"submit\" class=\"btn btn-primary btn-block\">{% trans %}Sign In{% endtrans %}</button>
</div>
<!-- /.col -->
</div>
</form>
<!-- /.social-auth-links -->
</div>
<!-- /.login-card-body -->
</div>
{% endblock %}
", "security/login.html.twig", "/home/saco/subdomains/preprod/templates/security/login.html.twig");
}
}