<?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;
/* reset_password/request.html.twig */
class __TwigTemplate_03cb6b637fc1cb2b4b8d4c8a390111b5 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", "reset_password/request.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/request.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\">
<img src=\"";
// line 12
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\">
<a href=\"";
// line 21
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\">
<div class=\"logo text-center\">
<img src=\"";
// line 23
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>I FORGOT MY PASSWORD</h1>
<div class=\"description text-center\">Enter the email address attached to your account, to receive the guidelines to follow in order to reset your password.</div>
</div>
<div class=\"panel-body\">
";
// line 31
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 31, $this->source); })()), 'form_start');
yield "
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 33, $this->source); })()), "flashes", ["reset_password_error"], "method", false, false, false, 33));
foreach ($context['_seq'] as $context["_key"] => $context["flashError"]) {
// line 34
yield " <div class=\"alert alert-danger\" role=\"alert\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashError"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashError'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
yield "
";
// line 37
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.', 37, $this->source); })()), "user", [], "any", false, false, false, 37)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 38
yield " <div class=\"mb-3 text-center\">
Vous êtes connecté en tant que : ";
// line 39
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.', 39, $this->source); })()), "user", [], "any", false, false, false, 39), "username", [], "any", false, false, false, 39), "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 "\">Se déconnecter</a>
</div>
";
} else {
// line 42
yield " <div class=\"form\">
<div class=\"form-group\">
<div class=\"input-group\">
<label>";
// line 46
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 46, $this->source); })()), "email", [], "any", false, false, false, 46), 'label');
yield "</label>
";
// line 47
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 47, $this->source); })()), "email", [], "any", false, false, false, 47), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group login-submit\">
";
// line 52
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 52, $this->source); })()), "save", [], "any", false, false, false, 52), 'widget');
yield "
</div>
</div>
";
}
// line 56
yield "
";
// line 57
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 57, $this->source); })()), 'form_end');
yield "
</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 71
/**
* @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 72
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 "reset_password/request.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 214 => 72, 201 => 71, 177 => 57, 174 => 56, 167 => 52, 159 => 47, 155 => 46, 149 => 42, 141 => 39, 138 => 38, 136 => 37, 133 => 36, 124 => 34, 120 => 33, 115 => 31, 104 => 23, 99 => 21, 87 => 12, 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\">
<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\">
<a href=\"{{ path('home') }}\">
<div class=\"logo text-center\">
<img src=\"{{ asset('img/logo-vertical.png') }}\" alt=\"logo\">
</div>
</a>
<h1>I FORGOT MY PASSWORD</h1>
<div class=\"description text-center\">Enter the email address attached to your account, to receive the guidelines to follow in order to reset your password.</div>
</div>
<div class=\"panel-body\">
{{ form_start(requestForm) }}
{% for flashError in app.flashes('reset_password_error') %}
<div class=\"alert alert-danger\" role=\"alert\">{{ flashError }}</div>
{% endfor %}
{% 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') }}\">Se déconnecter</a>
</div>
{% else %}
<div class=\"form\">
<div class=\"form-group\">
<div class=\"input-group\">
<label>{{ form_label ( requestForm.email) }}</label>
{{ form_widget ( requestForm.email, {attr: {'class': \"form-control\" }} ) }}
</div>
<div class=\"help-block with-errors\"></div>
</div>
<div class=\"form-group login-submit\">
{{ form_widget(requestForm.save) }}
</div>
</div>
{% endif %}
{{ form_end(requestForm) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
\$( document ).ready(function() {
\$('form').validator();
});
</script>
{% endblock %}
", "reset_password/request.html.twig", "/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/reset_password/request.html.twig");
}
}