var/cache/dev/twig/42/4265d0938cada0604ab9c71c6add9876.php line 59

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* reset_password/request.html.twig */
  18. class __TwigTemplate_2853d56434597ebad8c3ab57b86d9003 extends Template
  19. {
  20.     private Source $source;
  21.     /**
  22.      * @var array<string, MacroNamespace>
  23.      */
  24.     private array $macros = [];
  25.     private \Twig\Runtime\EscaperRuntime $escaper;
  26.     public function __construct(Environment $env)
  27.     {
  28.         parent::__construct($env);
  29.         $this->source = $this->getSourceContext();
  30.         $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31.         $this->blocks = [
  32.             'title' => [$this, 'block_title'],
  33.             'body' => [$this, 'block_body'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37.     {
  38.         // line 1
  39.         return $this->parent ??= $this->load("dashboard/layout.html.twig", 1);
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = []): iterable
  42.     {
  43.         $macros = $this->macros;
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/request.html.twig"));
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/request.html.twig"));
  48.         $this->parent = $this->load("dashboard/layout.html.twig", 1);
  49.         yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 3
  56.     /**
  57.      * @return iterable<null|scalar|\Stringable>
  58.      */
  59.     public function block_title(array $context, array $blocks = []): iterable
  60.     {
  61.         $macros = $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  66.         yield "Vous avez oublié votre mot de passe ?";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         return; yield;
  72.     }
  73.     // line 5
  74.     /**
  75.      * @return iterable<null|scalar|\Stringable>
  76.      */
  77.     public function block_body(array $context, array $blocks = []): iterable
  78.     {
  79.         $macros = $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  84.         // line 6
  85.         yield "<main class=\"template-account-choice bg-lbp container-fluid vh-100\">
  86.     <a class=\"template-login__logo\" href=\"/\" title=\"Accueil\">
  87.         <img class=\"w-100 h-100\" src=\"/static/img/commun/logo.png\" alt=\"Logo LesBonsProfs.com\">
  88.     </a>
  89.     <div class=\"d-flex justify-content-center\">
  90.         <div class=\"template-login__container\">
  91.             ";
  92.         // line 12
  93.         $context['_parent'] = $context;
  94.         $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.', 12, $this->source); })()), "flashes", ["reset_password_error"], "method", false, false, false, 12));
  95.         foreach ($context['_seq'] as $context["_key"] => $context["flashError"]) {
  96.             // line 13
  97.             yield "                <div class=\"alert alert-danger\" role=\"alert\">";
  98.             yield (string) $this->escaper->escape($context["flashError"], "html", null, true);
  99.             yield "</div>
  100.             ";
  101.         }
  102.         $_parent = $context['_parent'];
  103.         unset($context['_seq'], $context['_key'], $context['flashError'], $context['_parent']);
  104.         $context = array_intersect_key($context, $_parent);
  105.         $context += $_parent;
  106.         // line 15
  107.         yield "            <h1 class=\"d-block template-login__container__form__title\">Vous avez oublié votre mot de passe ?</h1>
  108.             ";
  109.         // line 16
  110.         yield (string)         $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.', 16, $this->source); })()), 'form_start');
  111.         yield "
  112.             <div class=\"mt-2 mb-2\">
  113.                 Et oui, cela arrive... Mais pas d\x27inquiétude, nous allons vous aider. Avec quel email avez-vous créé le compte ?
  114.             </div>
  115.             <div class=\"mb-5\">
  116.                 ";
  117.         // line 22
  118.         yield (string) $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.', 22, $this->source); })()), "email", [], "any", false, false, false, 22), 'widget');
  119.         yield "
  120.             </div>
  121.             <div class=\"text-center\">
  122.                 <button class=\"btn btn-pink mx-auto\">Créer un nouveau mot de passe</button>
  123.             </div>
  124.             ";
  125.         // line 29
  126.         yield (string)         $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.', 29, $this->source); })()), 'form_end');
  127.         yield "
  128.         </div>
  129.     </div>
  130. </main>
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.         return; yield;
  137.     }
  138.     /**
  139.      * @codeCoverageIgnore
  140.      */
  141.     public function getTemplateName(): string
  142.     {
  143.         return "reset_password/request.html.twig";
  144.     }
  145.     /**
  146.      * @codeCoverageIgnore
  147.      */
  148.     public function isTraitable(): bool
  149.     {
  150.         return false;
  151.     }
  152.     /**
  153.      * @codeCoverageIgnore
  154.      */
  155.     public function getDefaultEscapeStrategy(): string|false
  156.     {
  157.         return "html";
  158.     }
  159.     /**
  160.      * @codeCoverageIgnore
  161.      */
  162.     public function getDebugInfo(): array
  163.     {
  164.         return array (  149 => 29,  139 => 22,  130 => 16,  127 => 15,  117 => 13,  113 => 12,  105 => 6,  92 => 5,  69 => 3,  46 => 1,);
  165.     }
  166.     public function getSourceContext(): Source
  167.     {
  168.         return new Source("{% extends \x27dashboard/layout.html.twig\x27 %}
  169. {% block title %}Vous avez oublié votre mot de passe ?{% endblock %}
  170. {% block body %}
  171. <main class=\"template-account-choice bg-lbp container-fluid vh-100\">
  172.     <a class=\"template-login__logo\" href=\"/\" title=\"Accueil\">
  173.         <img class=\"w-100 h-100\" src=\"/static/img/commun/logo.png\" alt=\"Logo LesBonsProfs.com\">
  174.     </a>
  175.     <div class=\"d-flex justify-content-center\">
  176.         <div class=\"template-login__container\">
  177.             {% for flashError in app.flashes(\x27reset_password_error\x27) %}
  178.                 <div class=\"alert alert-danger\" role=\"alert\">{{ flashError }}</div>
  179.             {% endfor %}
  180.             <h1 class=\"d-block template-login__container__form__title\">Vous avez oublié votre mot de passe ?</h1>
  181.             {{ form_start(requestForm) }}
  182.             <div class=\"mt-2 mb-2\">
  183.                 Et oui, cela arrive... Mais pas d\x27inquiétude, nous allons vous aider. Avec quel email avez-vous créé le compte ?
  184.             </div>
  185.             <div class=\"mb-5\">
  186.                 {{ form_widget(requestForm.email) }}
  187.             </div>
  188.             <div class=\"text-center\">
  189.                 <button class=\"btn btn-pink mx-auto\">Créer un nouveau mot de passe</button>
  190.             </div>
  191.             {{ form_end(requestForm) }}
  192.         </div>
  193.     </div>
  194. </main>
  195. {% endblock %}
  196. ", "reset_password/request.html.twig", "/var/www/dashboard/templates/reset_password/request.html.twig");
  197.     }
  198. }