<?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;
use Twig\TemplateWrapper;
/* security/login.html.twig */
class __TwigTemplate_182031c3ac2952841584f5b69ecd543a extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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->load("base.html.twig", 1);
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 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$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 4
yield " <div class=\"login\">
<div class=\"container-fluid\">
<div class=\"main-content\">
<div class=\"login-container\">
<div class=\"row\">
<div class=\"col-12 col-lg-5 d-none d-lg-flex\">
<div class=\"image animated fadeIn delay-0-4s\">
<img src=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/image-flavour-vibes.png"), "html", null, true);
yield "\" alt=\"connexion\">
</div>
</div>
<div class=\"col-12 col-lg-7\">
<div class=\"row align-items-center h-100\">
<div class=\"col-12\">
<div class=\"panel panel-default\">
<div class=\"panel-header animated fadeIn delay-0-2s\">
<a href=\"";
// line 20
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\">
<div class=\"logo text-center\">
<img src=\"";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-vertical.png"), "html", null, true);
yield "\" alt=\"logo\">
</div>
</a>
<h1>LOG IN TO YOUR ACCOUNT</h1>
<div class=\"description text-center mt-3\">
You are about to enter the 1883 recipes database, a huge list of recipes created by our teams all around the world.
Are you one of our 1883 Brand Ambassadors? Identify yourself and save all your creations.
Are you part of the 1883 Corporate team? Identify yourself and access to full of gourmet and tasty recipes.
Enjoy your visit!
<br/><br/>
As a reminder:
This tool is exclusively reserved to the 1883 team.
Only people who have received a registration email can access it.
It is strictly forbidden to share your user account.</div>
<div class=\"mt-4 d-none\">
Développement : <span style=\"color: red;\">V1.0.6</span>
</div>
</div>
<div class=\"panel-body animated fadeIn delay-0-3s\">
<form class=\"form-horizontal\" method=\"post\">
";
// line 52
if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 52, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 53
yield " <div class=\"alert alert-danger\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 53, $this->source); })()), "messageKey", [], "any", false, false, false, 53), CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 53, $this->source); })()), "messageData", [], "any", false, false, false, 53), "security"), "html", null, true);
yield "</div>
";
}
// line 55
yield "
";
// line 56
if ((($tmp = 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.', 56, $this->source); })()), "user", [], "any", false, false, false, 56)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 57
yield " <div class=\"mb-3 text-center\">
Vous êtes connecté en tant que : ";
// line 58
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 58, $this->source); })()), "user", [], "any", false, false, false, 58), "username", [], "any", false, false, false, 58), "html", null, true);
yield ", peut-être que ce compte n'a pas encore de droit d'utilisation. <br/> <br/> <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\">Logout</a>
</div>
";
} else {
// line 61
yield " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<div class=\"form\">
<div class=\"form-group\">
<div class=\"input-group\">
<label for=\"username\">Email</label>
<input placeholder=\"j.dupont@mail.com\" type=\"email\" value=\"";
// line 67
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.', 67, $this->source); })()), "html", null, true);
yield "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" required autofocus>
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group bloc-password mt-3\">
<div class=\"input-group\">
<label for=\"password\">Password</label>
<input placeholder=\"•••••••••••\" type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group login-submit\">
<button type=\"submit\" id=\"submit-button\" class=\"button black disabled\">Log in</button>
</div>
<div class=\"update-password text-center\">
<a href=\"";
// line 84
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\">I forgot my password</a>
</div>
</div>
";
}
// line 88
yield "
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 103
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 104
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script>
\$( document ).ready(function() {
\$('form').validator();
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 234 => 104, 221 => 103, 197 => 88, 190 => 84, 170 => 67, 160 => 61, 152 => 58, 149 => 57, 147 => 56, 144 => 55, 138 => 53, 136 => 52, 103 => 22, 98 => 20, 86 => 11, 77 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<div class=\"login\">
<div class=\"container-fluid\">
<div class=\"main-content\">
<div class=\"login-container\">
<div class=\"row\">
<div class=\"col-12 col-lg-5 d-none d-lg-flex\">
<div class=\"image animated fadeIn delay-0-4s\">
<img src=\"{{ asset('img/image-flavour-vibes.png') }}\" alt=\"connexion\">
</div>
</div>
<div class=\"col-12 col-lg-7\">
<div class=\"row align-items-center h-100\">
<div class=\"col-12\">
<div class=\"panel panel-default\">
<div class=\"panel-header animated fadeIn delay-0-2s\">
<a href=\"{{ path('home') }}\">
<div class=\"logo text-center\">
<img src=\"{{ asset('img/logo-vertical.png') }}\" alt=\"logo\">
</div>
</a>
<h1>LOG IN TO YOUR ACCOUNT</h1>
<div class=\"description text-center mt-3\">
You are about to enter the 1883 recipes database, a huge list of recipes created by our teams all around the world.
Are you one of our 1883 Brand Ambassadors? Identify yourself and save all your creations.
Are you part of the 1883 Corporate team? Identify yourself and access to full of gourmet and tasty recipes.
Enjoy your visit!
<br/><br/>
As a reminder:
This tool is exclusively reserved to the 1883 team.
Only people who have received a registration email can access it.
It is strictly forbidden to share your user account.</div>
<div class=\"mt-4 d-none\">
Développement : <span style=\"color: red;\">V1.0.6</span>
</div>
</div>
<div class=\"panel-body animated fadeIn delay-0-3s\">
<form class=\"form-horizontal\" method=\"post\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3 text-center\">
Vous êtes connecté en tant que : {{ app.user.username }}, peut-être que ce compte n'a pas encore de droit d'utilisation. <br/> <br/> <a href=\"{{ path('app_logout') }}\">Logout</a>
</div>
{% else %}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<div class=\"form\">
<div class=\"form-group\">
<div class=\"input-group\">
<label for=\"username\">Email</label>
<input placeholder=\"j.dupont@mail.com\" type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" required autofocus>
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group bloc-password mt-3\">
<div class=\"input-group\">
<label for=\"password\">Password</label>
<input placeholder=\"•••••••••••\" type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group login-submit\">
<button type=\"submit\" id=\"submit-button\" class=\"button black disabled\">Log in</button>
</div>
<div class=\"update-password text-center\">
<a href=\"{{ path('app_forgot_password_request') }}\">I forgot my password</a>
</div>
</div>
{% endif %}
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
\$( document ).ready(function() {
\$('form').validator();
});
</script>
{% endblock %}
", "security/login.html.twig", "/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/security/login.html.twig");
}
}