var/cache/dev/twig/8d/8d05b608e3b71678b71128446155659c.php line 44

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\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* reset_password/request.html.twig */
  16. class __TwigTemplate_822bcef182f16ac1535dce185db58fa1 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "Layouts/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  44.         $this->parent $this->loadTemplate("Layouts/layout.html.twig""reset_password/request.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Reset your password";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_content(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  80.         // line 6
  81.         yield "
  82.     <div class=\"container\">
  83.         <div class=\"row align-items-center justify-content-center\" style=\"height: 80vh;\">
  84.             <div class=\"col-12 col-sm-8 col-md-5\">
  85.                 ";
  86.         // line 10
  87.         $context['_parent'] = $context;
  88.         $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.'10$this->source); })()), "flashes", ["reset_password_error"], "method"falsefalsefalse10));
  89.         foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  90.             // line 11
  91.             yield "                    <div class=\"alert alert-danger\" role=\"alert\">";
  92.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html"nulltrue);
  93.             yield "</div>
  94.                 ";
  95.         }
  96.         $_parent $context['_parent'];
  97.         unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
  98.         $context array_intersect_key($context$_parent) + $_parent;
  99.         // line 13
  100.         yield "
  101.                 ";
  102.         // line 15
  103.         yield "                <form name=\"reset_password_request_form\" method=\"post\" class=\"box one p-5\">
  104.                     <h3 class=\"mb-5 mt-2\" >";
  105.         // line 17
  106.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reset your password", [], "messages");
  107.         yield "</h3>
  108.                     <div class=\"mb-3\">
  109.                         <label for=\"reset_password_request_form_email\" class=\"form-label\">";
  110.         // line 20
  111.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Email", [], "messages");
  112.         yield ":</label>
  113.                         ";
  114.         // line 21
  115.         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.'21$this->source); })()), "email", [], "any"falsefalsefalse21), 'widget');
  116.         yield "
  117.                     </div>
  118.                     ";
  119.         // line 25
  120.         yield "                    <div>
  121.                         <small>
  122.                             ";
  123.         // line 27
  124.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Enter your email address and we will send you an email with a link that will let you reset your password", [], "messages");
  125.         yield ".
  126.                         </small>
  127.                     </div>
  128.                     
  129.                     <div class=\"d-grid gap-2 mt-5\">
  130.                         <button class=\"btn btn-primary\">";
  131.         // line 32
  132.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Send password reset email", [], "messages");
  133.         yield "</button>
  134.                     </div>
  135.                     <div class=\"d-grid gap-2 mt-5\">
  136.                         <p> <a href=\"";
  137.         // line 36
  138.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  139.         yield "\">";
  140.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Back to login", [], "messages");
  141.         yield "</a></p>
  142.                     </div>
  143.                 
  144.                 ";
  145.         // line 39
  146.         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.'39$this->source); })()), 'form_end');
  147.         yield "
  148.             </div>
  149.         </div>
  150.     </div>
  151. ";
  152.         
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.         yield from [];
  157.     }
  158.     /**
  159.      * @codeCoverageIgnore
  160.      */
  161.     public function getTemplateName(): string
  162.     {
  163.         return "reset_password/request.html.twig";
  164.     }
  165.     /**
  166.      * @codeCoverageIgnore
  167.      */
  168.     public function isTraitable(): bool
  169.     {
  170.         return false;
  171.     }
  172.     /**
  173.      * @codeCoverageIgnore
  174.      */
  175.     public function getDebugInfo(): array
  176.     {
  177.         return array (  169 => 39,  161 => 36,  154 => 32,  146 => 27,  142 => 25,  136 => 21,  132 => 20,  126 => 17,  122 => 15,  119 => 13,  110 => 11,  106 => 10,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  178.     }
  179.     public function getSourceContext(): Source
  180.     {
  181.         return new Source("{% extends 'Layouts/layout.html.twig' %}
  182. {% block title %}Reset your password{% endblock %}
  183. {% block content %}
  184.     <div class=\"container\">
  185.         <div class=\"row align-items-center justify-content-center\" style=\"height: 80vh;\">
  186.             <div class=\"col-12 col-sm-8 col-md-5\">
  187.                 {% for flash_error in app.flashes('reset_password_error') %}
  188.                     <div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  189.                 {% endfor %}
  190.                 {#{ form_start(requestForm) }#}
  191.                 <form name=\"reset_password_request_form\" method=\"post\" class=\"box one p-5\">
  192.                     <h3 class=\"mb-5 mt-2\" >{% trans %}Reset your password{% endtrans %}</h3>
  193.                     <div class=\"mb-3\">
  194.                         <label for=\"reset_password_request_form_email\" class=\"form-label\">{% trans %}Email{% endtrans %}:</label>
  195.                         {{ form_widget(requestForm.email) }}
  196.                     </div>
  197.                     {#{ form_row(requestForm.email) }#}
  198.                     <div>
  199.                         <small>
  200.                             {% trans %}Enter your email address and we will send you an email with a link that will let you reset your password{% endtrans %}.
  201.                         </small>
  202.                     </div>
  203.                     
  204.                     <div class=\"d-grid gap-2 mt-5\">
  205.                         <button class=\"btn btn-primary\">{% trans %}Send password reset email{% endtrans %}</button>
  206.                     </div>
  207.                     <div class=\"d-grid gap-2 mt-5\">
  208.                         <p> <a href=\"{{ path('app_login') }}\">{% trans %}Back to login{% endtrans %}</a></p>
  209.                     </div>
  210.                 
  211.                 {{ form_end(requestForm) }}
  212.             </div>
  213.         </div>
  214.     </div>
  215. {% endblock %}
  216. ""reset_password/request.html.twig""/mnt/www/retabit_platform/templates/reset_password/request.html.twig");
  217.     }
  218. }