<?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;
use Twig\TemplateWrapper;
/* reset_password/request.html.twig */
class __TwigTemplate_822bcef182f16ac1535dce185db58fa1 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "Layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/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", "reset_password/request.html.twig"));
$this->parent = $this->loadTemplate("Layouts/layout.html.twig", "reset_password/request.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Reset your password";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield "
<div class=\"container\">
<div class=\"row align-items-center justify-content-center\" style=\"height: 80vh;\">
<div class=\"col-12 col-sm-8 col-md-5\">
";
// line 10
$context['_parent'] = $context;
$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", false, false, false, 10));
foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
// line 11
yield " <div class=\"alert alert-danger\" role=\"alert\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
yield "
";
// line 15
yield " <form name=\"reset_password_request_form\" method=\"post\" class=\"box one p-5\">
<h3 class=\"mb-5 mt-2\" >";
// line 17
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reset your password", [], "messages");
yield "</h3>
<div class=\"mb-3\">
<label for=\"reset_password_request_form_email\" class=\"form-label\">";
// line 20
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Email", [], "messages");
yield ":</label>
";
// line 21
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", false, false, false, 21), 'widget');
yield "
</div>
";
// line 25
yield " <div>
<small>
";
// line 27
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");
yield ".
</small>
</div>
<div class=\"d-grid gap-2 mt-5\">
<button class=\"btn btn-primary\">";
// line 32
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Send password reset email", [], "messages");
yield "</button>
</div>
<div class=\"d-grid gap-2 mt-5\">
<p> <a href=\"";
// line 36
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Back to login", [], "messages");
yield "</a></p>
</div>
";
// line 39
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');
yield "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "reset_password/request.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'Layouts/layout.html.twig' %}
{% block title %}Reset your password{% endblock %}
{% block content %}
<div class=\"container\">
<div class=\"row align-items-center justify-content-center\" style=\"height: 80vh;\">
<div class=\"col-12 col-sm-8 col-md-5\">
{% for flash_error in app.flashes('reset_password_error') %}
<div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
{% endfor %}
{#{ form_start(requestForm) }#}
<form name=\"reset_password_request_form\" method=\"post\" class=\"box one p-5\">
<h3 class=\"mb-5 mt-2\" >{% trans %}Reset your password{% endtrans %}</h3>
<div class=\"mb-3\">
<label for=\"reset_password_request_form_email\" class=\"form-label\">{% trans %}Email{% endtrans %}:</label>
{{ form_widget(requestForm.email) }}
</div>
{#{ form_row(requestForm.email) }#}
<div>
<small>
{% trans %}Enter your email address and we will send you an email with a link that will let you reset your password{% endtrans %}.
</small>
</div>
<div class=\"d-grid gap-2 mt-5\">
<button class=\"btn btn-primary\">{% trans %}Send password reset email{% endtrans %}</button>
</div>
<div class=\"d-grid gap-2 mt-5\">
<p> <a href=\"{{ path('app_login') }}\">{% trans %}Back to login{% endtrans %}</a></p>
</div>
{{ form_end(requestForm) }}
</div>
</div>
</div>
{% endblock %}
", "reset_password/request.html.twig", "/mnt/www/retabit_platform/templates/reset_password/request.html.twig");
}
}