var/cache/dev/twig/cd/cde4c77979db8a2f5f960c70e48127df.php line 78

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* users/reset-password.html.twig */
  14. class __TwigTemplate_90401094a193b42bcb9cb1ff5bc1b6d0 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""users/reset-password.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""users/reset-password.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""users/reset-password.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Mot de passe oublié";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "    <div class=\"bg-light\">
  70.         <div class=\"container\">
  71.             <div class=\"row\">
  72.                 <div class=\"d-flex align-items-center justify-content-center\" style=\"height: 50vh;\">
  73.                     <div class=\"col-lg-6 col-md-8 col-12 shadow-sm border p-2 mt-4 bg-white rounded\">
  74.                         <div class=\"card-header\">
  75.                             <h4 class=\"text-center\">Mot de passe oublié</h4>
  76.                         </div>
  77.                         ";
  78.         // line 14
  79.         if ((isset($context["done"]) || array_key_exists("done"$context) ? $context["done"] : (function () { throw new RuntimeError('Variable "done" does not exist.'14$this->source); })())) {
  80.             // line 15
  81.             echo "                            <div class=\"card-body pt-2\">
  82.                                 <p class=\"justify-content-center\">
  83.                                     Votre demande de réinitialisation de mot de passe a bien été prise en compte. Vous allez
  84.                                     recevoir un email contenant un lien de réinitialisation de mot de passe.
  85.                                 </p>
  86.                             </div>
  87.                         ";
  88.         } else {
  89.             // line 22
  90.             echo "                            <div class=\"card-body pt-2\">
  91.                                 ";
  92.             // line 23
  93.             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');
  94.             echo "
  95.                                 ";
  96.             // line 24
  97.             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');
  98.             echo "
  99.                                 ";
  100.             // line 26
  101.             if ((isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'26$this->source); })())) {
  102.                 // line 27
  103.                 echo "                                    ";
  104.                 $context['_parent'] = $context;
  105.                 $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); })()));
  106.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  107.                     // line 28
  108.                     echo "                                        <div class=\"alert alert-danger p-1\" role=\"alert\">
  109.                                             ";
  110.                     // line 29
  111.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse29), "html"nulltrue);
  112.                     echo "
  113.                                         </div>
  114.                                     ";
  115.                 }
  116.                 $_parent $context['_parent'];
  117.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  118.                 $context array_intersect_key($context$_parent) + $_parent;
  119.                 // line 32
  120.                 echo "                                ";
  121.             }
  122.             // line 33
  123.             echo "                                <div class=\"col-12 text-center mt-3\">
  124.                                     <button type=\"submit\" class=\"btn btn-outline-primary\">Valider</button>
  125.                                     <a href=\"";
  126.             // line 35
  127.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  128.             echo "\" class=\"btn btn-outline-danger\">Retour</a>
  129.                                 </div>
  130.                                 ";
  131.             // line 37
  132.             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');
  133.             echo "
  134.                             </div>
  135.                          ";
  136.         }
  137.         // line 40
  138.         echo "
  139.                     </div>
  140.                 </div>
  141.             </div>
  142.         </div>
  143.     </div>
  144. ";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.     }
  150.     /**
  151.      * @codeCoverageIgnore
  152.      */
  153.     public function getTemplateName()
  154.     {
  155.         return "users/reset-password.html.twig";
  156.     }
  157.     /**
  158.      * @codeCoverageIgnore
  159.      */
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function getDebugInfo()
  168.     {
  169.         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,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("{% extends 'base.html.twig' %}
  174. {% block title %}Mot de passe oublié{% endblock %}
  175. {% block body %}
  176.     <div class=\"bg-light\">
  177.         <div class=\"container\">
  178.             <div class=\"row\">
  179.                 <div class=\"d-flex align-items-center justify-content-center\" style=\"height: 50vh;\">
  180.                     <div class=\"col-lg-6 col-md-8 col-12 shadow-sm border p-2 mt-4 bg-white rounded\">
  181.                         <div class=\"card-header\">
  182.                             <h4 class=\"text-center\">Mot de passe oublié</h4>
  183.                         </div>
  184.                         {% if done %}
  185.                             <div class=\"card-body pt-2\">
  186.                                 <p class=\"justify-content-center\">
  187.                                     Votre demande de réinitialisation de mot de passe a bien été prise en compte. Vous allez
  188.                                     recevoir un email contenant un lien de réinitialisation de mot de passe.
  189.                                 </p>
  190.                             </div>
  191.                         {% else %}
  192.                             <div class=\"card-body pt-2\">
  193.                                 {{ form_start(form) }}
  194.                                 {{ form_widget(form) }}
  195.                                 {% if errors %}
  196.                                     {% for error in errors %}
  197.                                         <div class=\"alert alert-danger p-1\" role=\"alert\">
  198.                                             {{ error.message }}
  199.                                         </div>
  200.                                     {% endfor %}
  201.                                 {% endif %}
  202.                                 <div class=\"col-12 text-center mt-3\">
  203.                                     <button type=\"submit\" class=\"btn btn-outline-primary\">Valider</button>
  204.                                     <a href=\"{{ path('login') }}\" class=\"btn btn-outline-danger\">Retour</a>
  205.                                 </div>
  206.                                 {{ form_end(form) }}
  207.                             </div>
  208.                          {% endif %}
  209.                     </div>
  210.                 </div>
  211.             </div>
  212.         </div>
  213.     </div>
  214. {% endblock %}
  215. ""users/reset-password.html.twig""/data/web/support-septam/templates/users/reset-password.html.twig");
  216.     }
  217. }