<?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_bb4476fa782e3fee6ec468f381fda4f7cfed15c52cdb6102e46a540d07d5bdec 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_class' => [$this, 'block_body_class'],
'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_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("base.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 2
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("Connexion", [], "messages");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 3
public function block_body_class($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", "body_class"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
echo "hold-transition login-page";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 5
echo "<div class=\"login-box\">
<div class=\"login-logo\">
<a href=\"";
// line 7
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("SysGes", [], "messages");
echo "</a>
</div>
";
// 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 "
";
// 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 " <div class=\"mb-3\">
";
// line 15
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vous êtes connecté en tant que", [], "messages");
echo " ";
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.', 15, $this->source); })()), "user", [], "any", false, false, false, 15), "username", [], "any", false, false, false, 15), "html", null, true);
echo ", <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Déconnexion", [], "messages");
echo "</a>
</div>
";
}
// line 18
echo " <!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
<p class=\"login-box-msg\">";
// line 21
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Veuillez vous connecter pour accéder à l'application", [], "messages");
echo "</p>
<form method=\"post\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 24
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<div class=\"input-group mb-3\">
<input type=\"text\" name=\"username\" required autofocus value=\"";
// line 26
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.', 26, $this->source); })()), "html", null, true);
echo "\" class=\"form-control\" placeholder=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Nom utilisateur", [], "messages");
echo "\">
<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\" required placeholder=\"";
// line 34
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mot de passe", [], "messages");
echo "\">
<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-7\">
<div class=\"icheck-primary\">
<input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
<label for=\"remember\">
";
// line 46
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mémoriser", [], "messages");
// line 47
echo " </label>
</div>
</div>
<!-- /.col -->
<div class=\"col-5\">
<button type=\"submit\" class=\"btn btn-primary btn-block\">";
// line 52
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Connexion", [], "messages");
echo "</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->
";
$__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 ( 200 => 52, 193 => 47, 191 => 46, 176 => 34, 163 => 26, 158 => 24, 152 => 21, 147 => 18, 135 => 15, 132 => 14, 130 => 13, 127 => 12, 121 => 10, 119 => 9, 112 => 7, 108 => 5, 98 => 4, 79 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{% trans %}Connexion{% endtrans %}{% endblock %}
{% block body_class %}hold-transition login-page{% endblock %}
{% block body %}
<div class=\"login-box\">
<div class=\"login-logo\">
<a href=\"{{ path('dashboard') }}\">{% trans %}SysGes{% endtrans %}</a>
</div>
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
{% trans %}Vous êtes connecté en tant que{% endtrans %} {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">{% trans %}Déconnexion{% endtrans %}</a>
</div>
{% endif %}
<!-- /.login-logo -->
<div class=\"card\">
<div class=\"card-body login-card-body\">
<p class=\"login-box-msg\">{% trans %}Veuillez vous connecter pour accéder à l'application{% endtrans %}</p>
<form method=\"post\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<div class=\"input-group mb-3\">
<input type=\"text\" name=\"username\" required autofocus value=\"{{ last_username }}\" class=\"form-control\" placeholder=\"{% trans %}Nom utilisateur{% endtrans %}\">
<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\" required placeholder=\"{% trans %}Mot de passe{% endtrans %}\">
<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-7\">
<div class=\"icheck-primary\">
<input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
<label for=\"remember\">
{% trans %}Mémoriser{% endtrans %}
</label>
</div>
</div>
<!-- /.col -->
<div class=\"col-5\">
<button type=\"submit\" class=\"btn btn-primary btn-block\">{% trans %}Connexion{% endtrans %}</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->
{% endblock %}
", "security/login.html.twig", "/var/www/vhosts/dloc.adelysdev.com/dev/templates/security/login.html.twig");
}
}