<?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_023b1f7e701500d54804120ec43e2ee78311838869f6789f977071d9a234e22a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'card_title' => [$this, 'block_card_title'],
'content' => [$this, 'block_content'],
'card_content' => [$this, 'block_card_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "main_card.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$this->parent = $this->loadTemplate("main_card.html.twig", "security/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.title", [], "messages");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_card_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "card_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "card_title"));
echo "<h5>
<i class=\"fa fa-sign-in-alt fa-fw\" aria-hidden=\"true\"></i>
";
// line 7
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.card_title", [], "messages");
// line 8
echo " </h5>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
echo "
";
// line 13
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 13, $this->source); })())) {
// line 14
echo " <div class=\"alert alert-danger\" role=\"alert\">
<strong>";
// line 15
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.', 15, $this->source); })()), "messageKey", [], "any", false, false, false, 15), 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.', 15, $this->source); })()), "messageData", [], "any", false, false, false, 15), "security"), "html", null, true);
echo "</strong>
</div>
";
}
// line 18
echo "
";
// line 19
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 22
public function block_card_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "card_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "card_content"));
// line 23
echo " <form action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\" method=\"post\" data-no-ajax class=\"form-horizontal\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 26
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"_target_path\" value=\"";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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); })()), "request", [], "any", false, false, false, 28), "query", [], "any", false, false, false, 28), "get", [0 => "_target_path"], "method", false, false, false, 28), "html", null, true);
echo "\" />
<div class=\"form-group row\">
<label class=\"col-form-label col-md-3 col-lg-2\">";
// line 31
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.username.label", [], "messages");
echo "</label>
<div class=\"col-md-9 col-lg-10\">
<input type=\"text\" class=\"form-control\" name=\"_username\" value=\"";
// line 33
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.', 33, $this->source); })()), "html", null, true);
echo "\"
placeholder=\"";
// line 34
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.username.placeholder", [], "messages");
echo "\" autocomplete=\"username\">
</div>
</div>
<div class=\"form-group row\">
<label class=\"col-form-label col-md-3 col-lg-2\">";
// line 38
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.password.label", [], "messages");
echo "</label>
<div class=\"col-md-9 col-lg-10\">
<input type=\"password\" class=\"form-control\" placeholder=\"";
// line 40
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.password.placeholder", [], "messages");
echo "\" name=\"_password\"
autocomplete=\"current-password\">
</div>
</div>
<div class=\"form-group row\">
<div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
<div class=\"custom-control custom-checkbox custom-control-inline\">
<input class=\"custom-control-input\" name=\"_remember_me\" id=\"remember_me\" type=\"checkbox\">
<label class=\"custom-control-label\" for=\"remember_me\">
";
// line 50
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.rememberme", [], "messages");
// line 51
echo " </label>
</div>
</div>
</div>
<div class=\"form-group row mt-3\">
<div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
<button type=\"submit\" class=\"btn btn-primary\">";
// line 58
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("login.btn", [], "messages");
echo "</button>
</div>
</div>
</form>
";
// line 63
if ((isset($context["allow_email_pw_reset"]) || array_key_exists("allow_email_pw_reset", $context) ? $context["allow_email_pw_reset"] : (function () { throw new RuntimeError('Variable "allow_email_pw_reset" does not exist.', 63, $this->source); })())) {
// line 64
echo " <a class=\"offset-sm-2\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("pw_reset_request");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pw_reset.password_forget", [], "messages");
echo "</a>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 228 => 64, 226 => 63, 218 => 58, 209 => 51, 207 => 50, 194 => 40, 189 => 38, 182 => 34, 178 => 33, 173 => 31, 167 => 28, 162 => 26, 155 => 23, 145 => 22, 133 => 19, 130 => 18, 124 => 15, 121 => 14, 119 => 13, 116 => 12, 106 => 11, 95 => 8, 93 => 7, 80 => 5, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"main_card.html.twig\" %}
{% block title %}{% trans %}login.title{% endtrans %}{% endblock %}
{% block card_title %}<h5>
<i class=\"fa fa-sign-in-alt fa-fw\" aria-hidden=\"true\"></i>
{% trans %}login.card_title{% endtrans %}
</h5>
{% endblock %}
{% block content %}
{% if error %}
<div class=\"alert alert-danger\" role=\"alert\">
<strong>{{ error.messageKey|trans(error.messageData, 'security') }}</strong>
</div>
{% endif %}
{{ parent() }}
{% endblock %}
{% block card_content %}
<form action=\"{{ path('login') }}\" method=\"post\" data-no-ajax class=\"form-horizontal\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\">
<input type=\"hidden\" name=\"_target_path\" value=\"{{ app.request.query.get('_target_path') }}\" />
<div class=\"form-group row\">
<label class=\"col-form-label col-md-3 col-lg-2\">{% trans %}login.username.label{% endtrans %}</label>
<div class=\"col-md-9 col-lg-10\">
<input type=\"text\" class=\"form-control\" name=\"_username\" value=\"{{ last_username }}\"
placeholder=\"{% trans %}login.username.placeholder{% endtrans %}\" autocomplete=\"username\">
</div>
</div>
<div class=\"form-group row\">
<label class=\"col-form-label col-md-3 col-lg-2\">{% trans %}login.password.label{% endtrans %}</label>
<div class=\"col-md-9 col-lg-10\">
<input type=\"password\" class=\"form-control\" placeholder=\"{% trans %}login.password.placeholder{% endtrans %}\" name=\"_password\"
autocomplete=\"current-password\">
</div>
</div>
<div class=\"form-group row\">
<div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
<div class=\"custom-control custom-checkbox custom-control-inline\">
<input class=\"custom-control-input\" name=\"_remember_me\" id=\"remember_me\" type=\"checkbox\">
<label class=\"custom-control-label\" for=\"remember_me\">
{% trans %}login.rememberme{% endtrans %}
</label>
</div>
</div>
</div>
<div class=\"form-group row mt-3\">
<div class=\"col-md-9 offset-md-3 col-lg-10 offset-lg-2\">
<button type=\"submit\" class=\"btn btn-primary\">{% trans %}login.btn{% endtrans %}</button>
</div>
</div>
</form>
{% if allow_email_pw_reset %}
<a class=\"offset-sm-2\" href=\"{{ url('pw_reset_request') }}\">{% trans %}pw_reset.password_forget{% endtrans %}</a>
{% endif %}
{% endblock %}", "security/login.html.twig", "/var/www/part-db/templates/security/login.html.twig");
}
}