var/cache/dev/twig/74/7458f468a845ee471b6bff1f87b9c5f9.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_6e87daa6e7b7c61cbf1aa76440c5d1ee 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.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "access.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->load("access.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 "Resetta la tua 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_body(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""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "    ";
  82.         $context['_parent'] = $context;
  83.         $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.'6$this->source); })()), "flashes", ["reset_password_error"], "method"falsefalsefalse6));
  84.         foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  85.             // line 7
  86.             yield "        <div class=\"alert alert-danger\" role=\"alert\">";
  87.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html"nulltrue);
  88.             yield "</div>
  89.     ";
  90.         }
  91.         $_parent $context['_parent'];
  92.         unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
  93.         $context array_intersect_key($context$_parent) + $_parent;
  94.         // line 9
  95.         yield "    <h3>Resetta la tua password</h3>
  96.     ";
  97.         // line 11
  98.         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.'11$this->source); })()), 'form_start');
  99.         yield "
  100.         <div class=\"form-group\">
  101.             <label>E-mail</label>
  102.             ";
  103.         // line 14
  104.         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.'14$this->source); })()), "email", [], "any"falsefalsefalse14), 'widget', ["attr" => ["placeholder" => "Inserisci la tua mail""class" => "form-control"]]);
  105.         yield "
  106.             <div class=\"error\" id=\"error-email\">";
  107.         // line 15
  108.         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.'15$this->source); })()), "email", [], "any"falsefalsefalse15), 'errors');
  109.         yield "</div>
  110.         </div>
  111.         <div>
  112.             <small>
  113.                 Inserisci il tuo indirizzo email e ti invieremo un
  114.                 link per reimpostare la password.
  115.             </small>
  116.         </div><br />
  117.         <button class=\"btn btn-danger\">Premi qui per reimpostare la password</button>
  118.     ";
  119.         // line 25
  120.         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.'25$this->source); })()), 'form_end');
  121.         yield "
  122. ";
  123.         
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  125.         
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  127.         yield from [];
  128.     }
  129.     /**
  130.      * @codeCoverageIgnore
  131.      */
  132.     public function getTemplateName(): string
  133.     {
  134.         return "reset_password/request.html.twig";
  135.     }
  136.     /**
  137.      * @codeCoverageIgnore
  138.      */
  139.     public function isTraitable(): bool
  140.     {
  141.         return false;
  142.     }
  143.     /**
  144.      * @codeCoverageIgnore
  145.      */
  146.     public function getDebugInfo(): array
  147.     {
  148.         return array (  141 => 25,  128 => 15,  124 => 14,  118 => 11,  114 => 9,  105 => 7,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  149.     }
  150.     public function getSourceContext(): Source
  151.     {
  152.         return new Source("{% extends 'access.html.twig' %}
  153. {% block title %}Resetta la tua password{% endblock %}
  154. {% block body %}
  155.     {% for flash_error in app.flashes('reset_password_error') %}
  156.         <div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  157.     {% endfor %}
  158.     <h3>Resetta la tua password</h3>
  159.     {{ form_start(requestForm) }}
  160.         <div class=\"form-group\">
  161.             <label>E-mail</label>
  162.             {{ form_widget(requestForm.email, { 'attr': {'placeholder': 'Inserisci la tua mail', 'class': 'form-control'} }) }}
  163.             <div class=\"error\" id=\"error-email\">{{ form_errors(requestForm.email) }}</div>
  164.         </div>
  165.         <div>
  166.             <small>
  167.                 Inserisci il tuo indirizzo email e ti invieremo un
  168.                 link per reimpostare la password.
  169.             </small>
  170.         </div><br />
  171.         <button class=\"btn btn-danger\">Premi qui per reimpostare la password</button>
  172.     {{ form_end(requestForm) }}
  173. {% endblock %}
  174. ""reset_password/request.html.twig""/var/www/vhosts/staging.aicommercesuite.it/httpdocs/templates/reset_password/request.html.twig");
  175.     }
  176. }