<?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_948ceb9c156328d7d264d2b7a281cab7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'bodyClass' => [$this, 'block_bodyClass'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 2
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", 2);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
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"));
yield "Вход";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 7
public function block_bodyClass($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", "bodyClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
yield "bg-gradient-primary";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
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 9
yield " <div class=\"container\">
<div class=\"dashboard-container mt-3\">
<div class=\"container\">
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, 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.', 12, $this->source); })()), "session", [], "any", false, false, false, 12), "flashbag", [], "any", false, false, false, 12), "get", ["success"], "method", false, false, false, 12));
foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
// line 13
yield " <div class=\"alert alert-success\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
yield "
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, 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.', 16, $this->source); })()), "session", [], "any", false, false, false, 16), "flashbag", [], "any", false, false, false, 16), "get", ["errors"], "method", false, false, false, 16));
foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
// line 17
yield " <div class=\"alert alert-danger\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
yield " </div>
</div>
<!-- Outer Row -->
<div class=\"row justify-content-center\">
";
// line 25
yield " <div class=\"col-md-9\" style=\"max-width: 500px;\">
<div class=\"card o-hidden border-0 shadow-lg my-5\">
<div class=\"card-body p-0\">
<!-- Nested Row within Card Body -->
<div class=\"row\">
";
// line 31
yield " <div class=\"w-100\">
<div class=\"p-5\">
<div class=\"text-center\">
<h1 class=\"h4 text-gray-900 mb-4\">Вход</h1>
</div>
<form class=\"user\" method=\"post\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<div class=\"form-group\">
<input type=\"text\" id=\"inputUsername\" name=\"username\" class=\"form-control form-control-user\" value=\"";
// line 40
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.', 40, $this->source); })()), "html", null, true);
yield "\" aria-describedby=\"emailHelp\" required autofocus placeholder=\"Логин\">
</div>
<div class=\"form-group\">
<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control form-control-user\" placeholder=\"Пароль\" autocomplete=\"current-password\" required>
</div>
";
// line 57
yield "
<button type=\"submit\" class=\"btn btn-primary btn-user btn-block\">Войти</button>
";
// line 60
yield " ";
// line 66
yield " </form>
";
// line 74
yield " </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 191 => 74, 188 => 66, 186 => 60, 182 => 57, 173 => 40, 167 => 37, 159 => 31, 152 => 25, 145 => 19, 136 => 17, 132 => 16, 129 => 15, 120 => 13, 116 => 12, 111 => 9, 101 => 8, 81 => 7, 61 => 4, 38 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends 'base.html.twig' %}
{% block title %}Вход{% endblock %}
{% block bodyClass %}bg-gradient-primary{% endblock %}
{% block body %}
<div class=\"container\">
<div class=\"dashboard-container mt-3\">
<div class=\"container\">
{% for flash in app.session.flashbag.get('success') %}
<div class=\"alert alert-success\">{{ flash }}</div>
{% endfor %}
{% for flash in app.session.flashbag.get('errors') %}
<div class=\"alert alert-danger\">{{ flash }}</div>
{% endfor %}
</div>
</div>
<!-- Outer Row -->
<div class=\"row justify-content-center\">
{# <div class=\"col-xl-10 col-lg-12 col-md-9\"> #}
<div class=\"col-md-9\" style=\"max-width: 500px;\">
<div class=\"card o-hidden border-0 shadow-lg my-5\">
<div class=\"card-body p-0\">
<!-- Nested Row within Card Body -->
<div class=\"row\">
{# <div class=\"col-lg-6 d-none d-lg-block bg-login-image\"></div> #}
<div class=\"w-100\">
<div class=\"p-5\">
<div class=\"text-center\">
<h1 class=\"h4 text-gray-900 mb-4\">Вход</h1>
</div>
<form class=\"user\" method=\"post\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<div class=\"form-group\">
<input type=\"text\" id=\"inputUsername\" name=\"username\" class=\"form-control form-control-user\" value=\"{{ last_username }}\" aria-describedby=\"emailHelp\" required autofocus placeholder=\"Логин\">
</div>
<div class=\"form-group\">
<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control form-control-user\" placeholder=\"Пароль\" autocomplete=\"current-password\" required>
</div>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class=\"form-group\">
<div class=\"custom-control custom-checkbox small\">
<input type=\"checkbox\" id=\"customCheck\" name=\"_remember_me\" class=\"custom-control-input\">
<label class=\"custom-control-label\" for=\"customCheck\">Remember Me</label>
</div>
</div>
#}
<button type=\"submit\" class=\"btn btn-primary btn-user btn-block\">Войти</button>
{# <hr> #}
{# <a href=\"index.html\" class=\"btn btn-google btn-user btn-block\">
<i class=\"fab fa-google fa-fw\"></i> Login with Google
</a>
<a href=\"index.html\" class=\"btn btn-facebook btn-user btn-block\">
<i class=\"fab fa-facebook-f fa-fw\"></i> Login with Facebook
</a> #}
</form>
{# <hr>
<div class=\"text-center\">
<a class=\"small\" href=\"forgot-password.html\">Forgot Password?</a>
</div>
<div class=\"text-center\">
<a class=\"small\" href=\"register.html\">Create an Account!</a>
</div> #}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "security/login.html.twig", "/home/sariato/www/dev.centr.sariato.ru/templates/security/login.html.twig");
}
}