<?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_462facc675938b29233d1d4ebc349cea 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 "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 5
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 6
echo " <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" style=\"background-image: url(";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/cbrc/imagefond.jpg"), "html", null, true);
echo ")\">
<div class=\"s-blur\"></div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 text-center\">
<h1><i class=\"far fa-user mr-3\"></i>Connexion</h1>
</div>
</div>
</div>
</section>
<section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
<div class=\"container mb-5\">
<div class=\"row justify-content-around \">
<div class=\"col-lg-6 col-md-8 col-12 text-center\">
<div class=\"card p-2 woocommerce-EditAccountForm\">
<div class=\"card-body\">
<form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
";
// line 23
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })())) {
// line 24
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.', 24, $this->source); })()), "messageKey", [], "any", false, false, false, 24), 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.', 24, $this->source); })()), "messageData", [], "any", false, false, false, 24), "security"), "html", null, true);
echo "</div>
";
}
// line 26
echo "
";
// line 27
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.', 27, $this->source); })()), "user", [], "any", false, false, false, 27)) {
// line 28
echo " <div class=\"mb-3\">
Vous êtes connecté comme ";
// line 29
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.', 29, $this->source); })()), "user", [], "any", false, false, false, 29), "username", [], "any", false, false, false, 29), "html", null, true);
echo ", <a
href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Déconnexion</a>
</div>
";
}
// line 33
echo " <label for=\"inputEmail\">Email</label>
<input type=\"email\" 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 "\" name=\"email\" id=\"inputEmail\"
class=\"form-control\"
autocomplete=\"email\" required autofocus>
<label for=\"inputPassword\">Mot de passe</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
autocomplete=\"current-password\" required>
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 42
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\"
>
<div class=\"checkbox mb-3\">
<label>
<input type=\"checkbox\" name=\"_remember_me\"> Se souvenir de moi
</label>
</div>
<input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
<button class=\"btn btn-maincolor\" type=\"submit\">
Connexion
</button>
</form>
<br/>
<div class=\"text-left\">
<small>Vous n'avez pas de compte? <a href=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signup", [], false);
echo "\" ><u>Créer un compte</u></a></small> <br/>
<small><a href=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_resetpassword", [], false);
echo "\" ><u>Mot de passe oublié</u></a></small>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src=\"https://www.google.com/recaptcha/api.js?render=6Ldhw70gAAAAAF1Nk2Cmf6svfwvqwVIzdPPUcmAx\"></script>
<script src=\"";
// line 69
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 ( 185 => 69, 171 => 58, 167 => 57, 149 => 42, 138 => 34, 135 => 33, 129 => 30, 125 => 29, 122 => 28, 120 => 27, 117 => 26, 111 => 24, 109 => 23, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Connexion{% endblock %}
{% block content %}
<section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" style=\"background-image: url({{ asset('assets/images/cbrc/imagefond.jpg') }})\">
<div class=\"s-blur\"></div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 text-center\">
<h1><i class=\"far fa-user mr-3\"></i>Connexion</h1>
</div>
</div>
</div>
</section>
<section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
<div class=\"container mb-5\">
<div class=\"row justify-content-around \">
<div class=\"col-lg-6 col-md-8 col-12 text-center\">
<div class=\"card p-2 woocommerce-EditAccountForm\">
<div class=\"card-body\">
<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 connecté comme {{ app.user.username }}, <a
href=\"{{ path('app_logout') }}\">Déconnexion</a>
</div>
{% endif %}
<label for=\"inputEmail\">Email</label>
<input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\"
class=\"form-control\"
autocomplete=\"email\" required autofocus>
<label for=\"inputPassword\">Mot de passe</label>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
autocomplete=\"current-password\" required>
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\"
>
<div class=\"checkbox mb-3\">
<label>
<input type=\"checkbox\" name=\"_remember_me\"> Se souvenir de moi
</label>
</div>
<input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
<button class=\"btn btn-maincolor\" type=\"submit\">
Connexion
</button>
</form>
<br/>
<div class=\"text-left\">
<small>Vous n'avez pas de compte? <a href=\"{{ path('signup', {}, relative = false) }}\" ><u>Créer un compte</u></a></small> <br/>
<small><a href=\"{{ path('app_resetpassword', {}, relative = false) }}\" ><u>Mot de passe oublié</u></a></small>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src=\"https://www.google.com/recaptcha/api.js?render=6Ldhw70gAAAAAF1Nk2Cmf6svfwvqwVIzdPPUcmAx\"></script>
<script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
{% endblock %}
", "security/login.html.twig", "/home/maixmebouz/www/dev/cbrc/templates/security/login.html.twig");
}
}