<?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_a03c2fd9b3c0dbbca2584646c01f8622 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'menu' => [$this, 'block_menu'],
'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_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", 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 "- Connexion";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_menu($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", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
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 7
echo "<main>
<!-- Section -->
<section class=\"min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0\" data-background=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html", null, true);
echo "\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12\">
<div class=\"text-center text-md-center mb-5 mt-md-0 text-white\">
<h1 class=\"mb-0 h3\">Connexion</h1>
</div>
</div>
<div class=\"col-12 d-flex align-items-center justify-content-center\">
<div class=\"signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500\">
<span class=\"clearfix\"></span>
<form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
";
// line 21
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 21, $this->source); })())) {
// line 22
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.', 22, $this->source); })()), "messageKey", [], "any", false, false, false, 22), 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.', 22, $this->source); })()), "messageData", [], "any", false, false, false, 22), "security"), "html", null, true);
echo "</div>
";
}
// line 24
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.', 24, $this->source); })()), "user", [], "any", false, false, false, 24)) {
// line 25
echo " <div class=\"mb-3\">
Vous êtes déjà connecté:<br /> ";
// line 26
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.', 26, $this->source); })()), "user", [], "any", false, false, false, 26), "username", [], "any", false, false, false, 26), "html", null, true);
echo " <br />
<a href=\"";
// line 27
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Déconnecter</a>
</div>
";
}
// line 30
echo " <div class=\"form-group\">
<div class=\"input-group\">
<div class=\"input-group-prepend\">
<span class=\"input-group-text\"><i class=\"far fa-user\"></i></span>
</div>
<input type=\"email\" class=\"form-control\" id=\"input-email\" name=\"email\" placeholder=\"Email\" value=\"";
// line 35
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.', 35, $this->source); })()), "html", null, true);
echo "\" required>
</div>
</div>
<div class=\"form-group\">
<div class=\"input-group\">
<div class=\"input-group-prepend\">
<span class=\"input-group-text\"><i class=\"fas fa-unlock-alt\"></i></span>
</div>
<input class=\"form-control\" placeholder=\"Mot de passe\" name=\"password\" type=\"password\" required>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 46
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<div class=\"form-check mb-3\">
<input class=\"form-check-input\" id=\"remember\" type=\"checkbox\">
<label class=\"form-check-label\" for=\"remember\">
Se souvenir de moi
</label>
</div>
<div class=\"mt-4\">
<input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
<button type=\"submit\" class=\"btn btn-block btn-primary animate-up-2\">Connexion</button>
</div>
</form>
<div class=\"d-flex justify-content-between align-items-center mt-4\">
<span>
<small>Vous n'avez pas de compte?</small>
<a href=\"";
// line 61
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => "signup"], false);
echo "\" class=\"small font-weight-bold\">Créer</a>
</span>
<div><a href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_resetpassword", [], false);
echo "\" class=\"small text-right\">Mot de passe oublié?</a></div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Recaptcha -->
<script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
<script src=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/recaptcha.js"), "html", null, true);
echo "\"></script>
";
$__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 ( 209 => 75, 195 => 64, 189 => 61, 171 => 46, 157 => 35, 150 => 30, 144 => 27, 140 => 26, 137 => 25, 134 => 24, 128 => 22, 126 => 21, 111 => 9, 107 => 7, 97 => 6, 79 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}- Connexion{% endblock %}
{%block menu%}
{%endblock%}
{% block body %}
<main>
<!-- Section -->
<section class=\"min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12\">
<div class=\"text-center text-md-center mb-5 mt-md-0 text-white\">
<h1 class=\"mb-0 h3\">Connexion</h1>
</div>
</div>
<div class=\"col-12 d-flex align-items-center justify-content-center\">
<div class=\"signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500\">
<span class=\"clearfix\"></span>
<form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
Vous êtes déjà connecté:<br /> {{ app.user.username }} <br />
<a href=\"{{ path('app_logout') }}\">Déconnecter</a>
</div>
{% endif %}
<div class=\"form-group\">
<div class=\"input-group\">
<div class=\"input-group-prepend\">
<span class=\"input-group-text\"><i class=\"far fa-user\"></i></span>
</div>
<input type=\"email\" class=\"form-control\" id=\"input-email\" name=\"email\" placeholder=\"Email\" value=\"{{ last_username }}\" required>
</div>
</div>
<div class=\"form-group\">
<div class=\"input-group\">
<div class=\"input-group-prepend\">
<span class=\"input-group-text\"><i class=\"fas fa-unlock-alt\"></i></span>
</div>
<input class=\"form-control\" placeholder=\"Mot de passe\" name=\"password\" type=\"password\" required>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<div class=\"form-check mb-3\">
<input class=\"form-check-input\" id=\"remember\" type=\"checkbox\">
<label class=\"form-check-label\" for=\"remember\">
Se souvenir de moi
</label>
</div>
<div class=\"mt-4\">
<input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
<button type=\"submit\" class=\"btn btn-block btn-primary animate-up-2\">Connexion</button>
</div>
</form>
<div class=\"d-flex justify-content-between align-items-center mt-4\">
<span>
<small>Vous n'avez pas de compte?</small>
<a href=\"{{ path('home_route', {'routename':'signup'}, relative = false) }}\" class=\"small font-weight-bold\">Créer</a>
</span>
<div><a href=\"{{ path('app_resetpassword', {}, relative = false) }}\" class=\"small text-right\">Mot de passe oublié?</a></div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Recaptcha -->
<script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
<script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
{% endblock %}
", "security/login.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/security/login.html.twig");
}
}