var/cache/dev/twig/cd/cde4c77979db8a2f5f960c70e48127df.php line 49
<?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;
/* users/reset-password.html.twig */
class __TwigTemplate_90401094a193b42bcb9cb1ff5bc1b6d0 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' => [$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", "users/reset-password.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "users/reset-password.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "users/reset-password.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 "Mot de passe oublié";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
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 6
echo " <div class=\"bg-light\">
<div class=\"container\">
<div class=\"row\">
<div class=\"d-flex align-items-center justify-content-center\" style=\"height: 50vh;\">
<div class=\"col-lg-6 col-md-8 col-12 shadow-sm border p-2 mt-4 bg-white rounded\">
<div class=\"card-header\">
<h4 class=\"text-center\">Mot de passe oublié</h4>
</div>
";
// line 14
if ((isset($context["done"]) || array_key_exists("done", $context) ? $context["done"] : (function () { throw new RuntimeError('Variable "done" does not exist.', 14, $this->source); })())) {
// line 15
echo " <div class=\"card-body pt-2\">
<p class=\"justify-content-center\">
Votre demande de réinitialisation de mot de passe a bien été prise en compte. Vous allez
recevoir un email contenant un lien de réinitialisation de mot de passe.
</p>
</div>
";
} else {
// line 22
echo " <div class=\"card-body pt-2\">
";
// line 23
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 23, $this->source); })()), 'form_start');
echo "
";
// line 24
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 24, $this->source); })()), 'widget');
echo "
";
// line 26
if ((isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 26, $this->source); })())) {
// line 27
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 27, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 28
echo " <div class=\"alert alert-danger p-1\" role=\"alert\">
";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 29), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " ";
}
// line 33
echo " <div class=\"col-12 text-center mt-3\">
<button type=\"submit\" class=\"btn btn-outline-primary\">Valider</button>
<a href=\"";
// line 35
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\" class=\"btn btn-outline-danger\">Retour</a>
</div>
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 37, $this->source); })()), 'form_end');
echo "
</div>
";
}
// line 40
echo "
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "users/reset-password.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 158 => 40, 152 => 37, 147 => 35, 143 => 33, 140 => 32, 131 => 29, 128 => 28, 123 => 27, 121 => 26, 116 => 24, 112 => 23, 109 => 22, 100 => 15, 98 => 14, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Mot de passe oublié{% endblock %}
{% block body %}
<div class=\"bg-light\">
<div class=\"container\">
<div class=\"row\">
<div class=\"d-flex align-items-center justify-content-center\" style=\"height: 50vh;\">
<div class=\"col-lg-6 col-md-8 col-12 shadow-sm border p-2 mt-4 bg-white rounded\">
<div class=\"card-header\">
<h4 class=\"text-center\">Mot de passe oublié</h4>
</div>
{% if done %}
<div class=\"card-body pt-2\">
<p class=\"justify-content-center\">
Votre demande de réinitialisation de mot de passe a bien été prise en compte. Vous allez
recevoir un email contenant un lien de réinitialisation de mot de passe.
</p>
</div>
{% else %}
<div class=\"card-body pt-2\">
{{ form_start(form) }}
{{ form_widget(form) }}
{% if errors %}
{% for error in errors %}
<div class=\"alert alert-danger p-1\" role=\"alert\">
{{ error.message }}
</div>
{% endfor %}
{% endif %}
<div class=\"col-12 text-center mt-3\">
<button type=\"submit\" class=\"btn btn-outline-primary\">Valider</button>
<a href=\"{{ path('login') }}\" class=\"btn btn-outline-danger\">Retour</a>
</div>
{{ form_end(form) }}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "users/reset-password.html.twig", "/data/web/support-septam/templates/users/reset-password.html.twig");
}
}