var/cache/dev/twig/7d/7d092efdcc97c2f7376ee7ee4972a579.php line 41

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. /* @App/division/auth/password-reset-request.html.twig */
  15. class __TwigTemplate_03645da8b60b199535f8e50fd64fab11 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'contentBlock' => [$this'block_contentBlock'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout/default.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/password-reset-request.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/password-reset-request.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/password-reset-request.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""@App/division/auth/password-reset-request.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_contentBlock($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  62.         // line 4
  63.         yield "    <script src=\"https://www.google.com/recaptcha/api.js?render=";
  64.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["recaptcha_v3_site_key"]) || array_key_exists("recaptcha_v3_site_key"$context) ? $context["recaptcha_v3_site_key"] : (function () { throw new RuntimeError('Variable "recaptcha_v3_site_key" does not exist.'4$this->source); })()), 4$this->source), "html"nulltrue);
  65.         yield "\"></script>
  66.     <div class=\"passwordResetPage\">
  67.         <div class=\"container my-5 my-lg-5 my-md-5\">
  68.             <div class=\"row\">
  69.                 <div class=\"col-lg-5 offset-lg-1\">
  70.                     ";
  71.         // line 10
  72.         if ( !(isset($context["success"]) || array_key_exists("success"$context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.'10$this->source); })())) {
  73.             // line 11
  74.             yield "                        <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">";
  75.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot your password?"), "html"nulltrue);
  76.             yield "</h1>
  77.                         <h3 class=\"font-weight-bold\">";
  78.             // line 12
  79.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Retrieve your password here."), "html"nulltrue);
  80.             yield "</h3>
  81.                         <p class=\"mb-4 mb-lg-4 mb-md-4\">";
  82.             // line 13
  83.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please enter your email address below. You will receive a link to reset your password."), "html"nulltrue);
  84.             yield "</p>
  85.                         ";
  86.             // line 14
  87.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'14$this->source); })()), 14$this->source), 'form_start', ["attr" => ["novalidate" => "novalidate""id" => "password-reset-request-form-type"]]);
  88.             yield "
  89.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 w-75 ";
  90.             // line 15
  91.             yield (($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'15$this->source); })()), "_email", [], "any"falsefalsetrue15), 15$this->source), 'errors')) ? ("input-error") : (""));
  92.             yield "\">
  93.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  94.                                     ";
  95.             // line 17
  96.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'17$this->source); })()), "_email", [], "any"falsefalsetrue17), 17$this->source), 'label');
  97.             yield "
  98.                                 </div>
  99.                                 ";
  100.             // line 20
  101.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'20$this->source); })()), "_email", [], "any"falsefalsetrue20), 20$this->source), 'widget');
  102.             yield "
  103.                                 ";
  104.             // line 21
  105.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), "_email", [], "any"falsefalsetrue21), 21$this->source), 'errors');
  106.             yield "
  107.                             </div>
  108.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
  109.                                 ";
  110.             // line 24
  111.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), "_submit", [], "any"falsefalsetrue24), 24$this->source), 'widget');
  112.             yield "
  113.                             </div>
  114.                         ";
  115.             // line 26
  116.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'26$this->source); })()), 26$this->source), 'form_end');
  117.             yield "
  118.                         <p class=\"mt-4 mt-lg-4 mt-md-4\">";
  119.             // line 28
  120.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Remember the password?"), "html"nulltrue);
  121.             yield "
  122.                             <a href=\"";
  123.             // line 29
  124.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login", ["division" => $this->extensions['App\Twig\AppExtension']->getSiteDivision()]), "html"nulltrue);
  125.             yield "\">Login now</a>
  126.                         </p>
  127.                     ";
  128.         } else {
  129.             // line 32
  130.             yield "                        <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">";
  131.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Link sent."), "html"nulltrue);
  132.             yield "</h1>
  133.                         <p>
  134.                            ";
  135.             // line 34
  136.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Link for password recovery has been sent."), "html"nulltrue);
  137.             yield "
  138.                             <br>
  139.                            ";
  140.             // line 36
  141.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your E-mail inbox."), "html"nulltrue);
  142.             yield "
  143.                         </p>
  144.                     ";
  145.         }
  146.         // line 39
  147.         yield "                </div>
  148.             </div>
  149.         </div>
  150.     </div>
  151.     <script>
  152.     \$(\"#password-reset-request-form-type button[type=submit]\").on('click', function(e) {
  153.         e.preventDefault();
  154.         grecaptcha.ready(function() {
  155.             let action = document.getElementById('action').value;
  156.             grecaptcha.execute('";
  157.         // line 49
  158.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["recaptcha_v3_site_key"]) || array_key_exists("recaptcha_v3_site_key"$context) ? $context["recaptcha_v3_site_key"] : (function () { throw new RuntimeError('Variable "recaptcha_v3_site_key" does not exist.'49$this->source); })()), 49$this->source), "html"nulltrue);
  159.         yield "', { action: action })
  160.             .then(function(token) {
  161.                 // add token value to form
  162.                 document.getElementById('g-recaptcha-response').value = token;
  163.                 \$('#password-reset-request-form-type').submit();
  164.             });
  165.         });
  166.     });
  167.     </script>
  168. ";
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.         
  174.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  175.         return; yield '';
  176.     }
  177.     /**
  178.      * @codeCoverageIgnore
  179.      */
  180.     public function getTemplateName()
  181.     {
  182.         return "@App/division/auth/password-reset-request.html.twig";
  183.     }
  184.     /**
  185.      * @codeCoverageIgnore
  186.      */
  187.     public function isTraitable()
  188.     {
  189.         return false;
  190.     }
  191.     /**
  192.      * @codeCoverageIgnore
  193.      */
  194.     public function getDebugInfo()
  195.     {
  196.         return array (  179 => 49,  167 => 39,  161 => 36,  156 => 34,  150 => 32,  144 => 29,  140 => 28,  135 => 26,  130 => 24,  124 => 21,  120 => 20,  114 => 17,  109 => 15,  105 => 14,  101 => 13,  97 => 12,  92 => 11,  90 => 10,  80 => 4,  67 => 3,  38 => 1,);
  197.     }
  198.     public function getSourceContext()
  199.     {
  200.         return new Source("{% extends 'layout/default.html.twig' %}
  201. {% block contentBlock %}
  202.     <script src=\"https://www.google.com/recaptcha/api.js?render={{ recaptcha_v3_site_key }}\"></script>
  203.     <div class=\"passwordResetPage\">
  204.         <div class=\"container my-5 my-lg-5 my-md-5\">
  205.             <div class=\"row\">
  206.                 <div class=\"col-lg-5 offset-lg-1\">
  207.                     {% if not success %}
  208.                         <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">{{ 'Forgot your password?' | trans }}</h1>
  209.                         <h3 class=\"font-weight-bold\">{{ 'Retrieve your password here.' | trans }}</h3>
  210.                         <p class=\"mb-4 mb-lg-4 mb-md-4\">{{ 'Please enter your email address below. You will receive a link to reset your password.' | trans }}</p>
  211.                         {{ form_start(form,{'attr': {'novalidate': 'novalidate', 'id': 'password-reset-request-form-type'}}) }}
  212.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 w-75 {{ form_errors(form._email) ? 'input-error' }}\">
  213.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  214.                                     {{ form_label(form._email) }}
  215.                                 </div>
  216.                                 {{ form_widget(form._email) }}
  217.                                 {{ form_errors(form._email) }}
  218.                             </div>
  219.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
  220.                                 {{ form_widget(form._submit) }}
  221.                             </div>
  222.                         {{ form_end(form) }}
  223.                         <p class=\"mt-4 mt-lg-4 mt-md-4\">{{ 'Remember the password?' | trans }}
  224.                             <a href=\"{{ path('login', {'division': getSiteDivision()}) }}\">Login now</a>
  225.                         </p>
  226.                     {% else %}
  227.                         <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">{{ 'Link sent.' | trans }}</h1>
  228.                         <p>
  229.                            {{ 'Link for password recovery has been sent.' | trans }}
  230.                             <br>
  231.                            {{ 'Please check your E-mail inbox.' | trans }}
  232.                         </p>
  233.                     {% endif %}
  234.                 </div>
  235.             </div>
  236.         </div>
  237.     </div>
  238.     <script>
  239.     \$(\"#password-reset-request-form-type button[type=submit]\").on('click', function(e) {
  240.         e.preventDefault();
  241.         grecaptcha.ready(function() {
  242.             let action = document.getElementById('action').value;
  243.             grecaptcha.execute('{{ recaptcha_v3_site_key }}', { action: action })
  244.             .then(function(token) {
  245.                 // add token value to form
  246.                 document.getElementById('g-recaptcha-response').value = token;
  247.                 \$('#password-reset-request-form-type').submit();
  248.             });
  249.         });
  250.     });
  251.     </script>
  252. {% endblock %}""@App/division/auth/password-reset-request.html.twig""/var/www/webovi/stoelting/pimcore/templates/division/auth/password-reset-request.html.twig");
  253.     }
  254.     
  255.     public function checkSecurity()
  256.     {
  257.         static $tags = array("if" => 10);
  258.         static $filters = array("escape" => 4"trans" => 11);
  259.         static $functions = array("form_start" => 14"form_errors" => 15"form_label" => 17"form_widget" => 20"form_end" => 26"path" => 29"getSiteDivision" => 29);
  260.         try {
  261.             $this->sandbox->checkSecurity(
  262.                 ['if'],
  263.                 ['escape''trans'],
  264.                 ['form_start''form_errors''form_label''form_widget''form_end''path''getSiteDivision'],
  265.                 $this->source
  266.             );
  267.         } catch (SecurityError $e) {
  268.             $e->setSourceContext($this->source);
  269.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  270.                 $e->setTemplateLine($tags[$e->getTagName()]);
  271.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  272.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  273.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  274.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  275.             }
  276.             throw $e;
  277.         }
  278.     }
  279. }