<?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_4d974d4eb13b0940076a42309c319232 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@UmbrellaAdmin/Security/layout.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("@UmbrellaAdmin/Security/layout.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 5
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"));
// line 6
echo " <title>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.title", [], "UmbrellaAdmin"), "html", null, true);
echo " | ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 6, $this->source); })()), "appName", [], "method", false, false, false, 6), "html", null, true);
echo "</title>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo " ";
$this->loadTemplate("@UmbrellaAdmin/Security/head.html.twig", "Security/login.html.twig", 10)->display($context);
// line 11
echo "
<div class=\"card p-3\">
<div class=\"card-body\">
<h4 class=\"card-title text-center mb-4\">";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.sign_in", [], "UmbrellaAdmin"), "html", null, true);
echo "</h4>
";
// line 17
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 17, $this->source); })())) {
// line 18
echo " <div class=\"alert alert-warning text-center\">
";
// line 19
echo $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.', 19, $this->source); })()), "messageKey", [], "any", false, false, false, 19), 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.', 19, $this->source); })()), "messageData", [], "any", false, false, false, 19), "security");
echo "
</div>
";
}
// line 22
echo "
<form action=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_admin_login");
echo "\" method=\"post\">
<div class=\"mb-3\">
<label for=\"username\" class=\"form-label\">";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.username", [], "UmbrellaAdmin"), "html", null, true);
echo "</label>
<input
class=\"form-control\"
type=\"text\"
id=\"username\"
required=\"required\"
name=\"_username\"
placeholder=\"";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.enter_your_username", [], "UmbrellaAdmin"), "html", null, true);
echo "\"
value=\"";
// line 34
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.', 34, $this->source); })()), "html", null, true);
echo "\"
autofocus />
</div>
<div class=\"mb-4\">
<label for=\"password\" class=\"form-label\">";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.password", [], "UmbrellaAdmin"), "html", null, true);
echo "</label>
<div is=\"password-togglable\">
<input
autocomplete=\"current-password\"
class=\"form-control\"
type=\"password\"
required=\"required\"
id=\"password\"
name=\"_password\"
placeholder=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.enter_your_password", [], "UmbrellaAdmin"), "html", null, true);
echo "\" />
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 52
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<button class=\"btn btn-primary w-100\" type=\"submit\">
";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.sign_in", [], "UmbrellaAdmin"), "html", null, true);
echo "
</button>
</form>
</div>
</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 ( 175 => 55, 169 => 52, 162 => 48, 150 => 39, 142 => 34, 138 => 33, 128 => 26, 122 => 23, 119 => 22, 113 => 19, 110 => 18, 108 => 17, 103 => 15, 97 => 11, 94 => 10, 84 => 9, 69 => 6, 59 => 5, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@UmbrellaAdmin/Security/layout.html.twig' %}
{% trans_default_domain 'UmbrellaAdmin' %}
{% block title %}
<title>{{ 'login.title' | trans }} | {{ admin.appName() }}</title>
{% endblock %}
{% block content %}
{% include '@UmbrellaAdmin/Security/head.html.twig' %}
<div class=\"card p-3\">
<div class=\"card-body\">
<h4 class=\"card-title text-center mb-4\">{{ 'action.sign_in' | trans }}</h4>
{% if error %}
<div class=\"alert alert-warning text-center\">
{{ error.messageKey|trans(error.messageData, 'security') | raw }}
</div>
{% endif %}
<form action=\"{{ path('app_admin_login') }}\" method=\"post\">
<div class=\"mb-3\">
<label for=\"username\" class=\"form-label\">{{ 'label.username' | trans }}</label>
<input
class=\"form-control\"
type=\"text\"
id=\"username\"
required=\"required\"
name=\"_username\"
placeholder=\"{{ 'label.enter_your_username' | trans }}\"
value=\"{{ last_username }}\"
autofocus />
</div>
<div class=\"mb-4\">
<label for=\"password\" class=\"form-label\">{{ 'label.password' | trans }}</label>
<div is=\"password-togglable\">
<input
autocomplete=\"current-password\"
class=\"form-control\"
type=\"password\"
required=\"required\"
id=\"password\"
name=\"_password\"
placeholder=\"{{ 'label.enter_your_password' | trans }}\" />
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<button class=\"btn btn-primary w-100\" type=\"submit\">
{{ 'action.sign_in' | trans }}
</button>
</form>
</div>
</div>
{% endblock %}
", "Security/login.html.twig", "/var/www/nfc/templates/Security/login.html.twig");
}
}