<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @App/division/auth/password-reset-request.html.twig */
class __TwigTemplate_03645da8b60b199535f8e50fd64fab11 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/password-reset-request.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/password-reset-request.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/password-reset-request.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "@App/division/auth/password-reset-request.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield " <script src=\"https://www.google.com/recaptcha/api.js?render=";
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", null, true);
yield "\"></script>
<div class=\"passwordResetPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-5 offset-lg-1\">
";
// line 10
if ( !(isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 10, $this->source); })())) {
// line 11
yield " <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot your password?"), "html", null, true);
yield "</h1>
<h3 class=\"font-weight-bold\">";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Retrieve your password here."), "html", null, true);
yield "</h3>
<p class=\"mb-4 mb-lg-4 mb-md-4\">";
// line 13
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", null, true);
yield "</p>
";
// line 14
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"]]);
yield "
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 w-75 ";
// line 15
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", false, false, true, 15), 15, $this->source), 'errors')) ? ("input-error") : (""));
yield "\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
";
// line 17
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", false, false, true, 17), 17, $this->source), 'label');
yield "
</div>
";
// line 20
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", false, false, true, 20), 20, $this->source), 'widget');
yield "
";
// line 21
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", false, false, true, 21), 21, $this->source), 'errors');
yield "
</div>
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
";
// line 24
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", false, false, true, 24), 24, $this->source), 'widget');
yield "
</div>
";
// line 26
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');
yield "
<p class=\"mt-4 mt-lg-4 mt-md-4\">";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Remember the password?"), "html", null, true);
yield "
<a href=\"";
// line 29
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", null, true);
yield "\">Login now</a>
</p>
";
} else {
// line 32
yield " <h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Link sent."), "html", null, true);
yield "</h1>
<p>
";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Link for password recovery has been sent."), "html", null, true);
yield "
<br>
";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your E-mail inbox."), "html", null, true);
yield "
</p>
";
}
// line 39
yield " </div>
</div>
</div>
</div>
<script>
\$(\"#password-reset-request-form-type button[type=submit]\").on('click', function(e) {
e.preventDefault();
grecaptcha.ready(function() {
let action = document.getElementById('action').value;
grecaptcha.execute('";
// line 49
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", null, true);
yield "', { action: action })
.then(function(token) {
// add token value to form
document.getElementById('g-recaptcha-response').value = token;
\$('#password-reset-request-form-type').submit();
});
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@App/division/auth/password-reset-request.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<script src=\"https://www.google.com/recaptcha/api.js?render={{ recaptcha_v3_site_key }}\"></script>
<div class=\"passwordResetPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-5 offset-lg-1\">
{% if not success %}
<h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">{{ 'Forgot your password?' | trans }}</h1>
<h3 class=\"font-weight-bold\">{{ 'Retrieve your password here.' | trans }}</h3>
<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>
{{ form_start(form,{'attr': {'novalidate': 'novalidate', 'id': 'password-reset-request-form-type'}}) }}
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 w-75 {{ form_errors(form._email) ? 'input-error' }}\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
{{ form_label(form._email) }}
</div>
{{ form_widget(form._email) }}
{{ form_errors(form._email) }}
</div>
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
{{ form_widget(form._submit) }}
</div>
{{ form_end(form) }}
<p class=\"mt-4 mt-lg-4 mt-md-4\">{{ 'Remember the password?' | trans }}
<a href=\"{{ path('login', {'division': getSiteDivision()}) }}\">Login now</a>
</p>
{% else %}
<h1 class=\"font-weight-bold font-italic mb-4 mb-lg-4 mb-md-4\">{{ 'Link sent.' | trans }}</h1>
<p>
{{ 'Link for password recovery has been sent.' | trans }}
<br>
{{ 'Please check your E-mail inbox.' | trans }}
</p>
{% endif %}
</div>
</div>
</div>
</div>
<script>
\$(\"#password-reset-request-form-type button[type=submit]\").on('click', function(e) {
e.preventDefault();
grecaptcha.ready(function() {
let action = document.getElementById('action').value;
grecaptcha.execute('{{ recaptcha_v3_site_key }}', { action: action })
.then(function(token) {
// add token value to form
document.getElementById('g-recaptcha-response').value = token;
\$('#password-reset-request-form-type').submit();
});
});
});
</script>
{% endblock %}", "@App/division/auth/password-reset-request.html.twig", "/var/www/webovi/stoelting/pimcore/templates/division/auth/password-reset-request.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 10);
static $filters = array("escape" => 4, "trans" => 11);
static $functions = array("form_start" => 14, "form_errors" => 15, "form_label" => 17, "form_widget" => 20, "form_end" => 26, "path" => 29, "getSiteDivision" => 29);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans'],
['form_start', 'form_errors', 'form_label', 'form_widget', 'form_end', 'path', 'getSiteDivision'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}