<?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;
/* reset_password/request.html.twig */
class __TwigTemplate_a682f56faa37ae19867530ac17cf5672 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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"));
// line 1
yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/main.html.twig");
yield "
<head>
\t";
// line 4
yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/title-meta.html.twig", ["title" => "Email-Request"]);
yield "
\t";
// line 5
yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/head-css.html.twig");
yield "
</head>
";
// line 7
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 47
yield "\t\t\t\t";
yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/vendor-scripts.html.twig");
yield "
\t\t\t\t<!-- App js -->
\t\t\t\t<script src=\"";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/app.js")), "html", null, true);
yield "\"></script>
\t\t\t\t<script>
\t\t\t\t\t\$(document).ready(function () {
\$(\"#myForm\").validate({
rules: {
reset_password_request_form_email: {
required: true,
email: true
}
},
messages: {
reset_password_request_form_email: {
required: \"Email is required\",
email: \"Your email must be a valid email\"
}
},
errorPlacement: function (error, element) {
error.appendTo(element.next());
},
highlight: function (element) {
\$(element).addClass(\"is-invalid\");
},
unhighlight: function (element) {
\$(element).removeClass(\"is-invalid\");
},
submitHandler: function (form) {
form.submit();
}
});
});
\t\t\t\t</script>
\t\t\t</body>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
// line 7
public function block_body($context, array $blocks = [])
{
$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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 8
yield "\t<body class=\"authentication-bg\">
\t\t<div class=\"account-pages my-6 pt-sm-5\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-lg-12\">
\t\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t\t<a href=\"";
// line 14
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\" class=\"mb-5 d-block auth-logo\">
\t\t\t\t\t\t\t\t<img src=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("asset/img/logo.png")), "html", null, true);
yield "\" />
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"row align-items-center justify-content-center\">
\t\t\t\t\t<div class=\"col-md-8 col-lg-6 col-xl-5\">
\t\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t\t<div class=\"card-body p-4\">
\t\t\t\t\t\t\t\t<div class=\"text-center mt-2\">
\t\t\t\t\t\t\t\t\t<h5 class=\"text-primary\">";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.reset"), "html", null, true);
yield "</h5>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"p-2 mt-4\">
\t\t\t\t\t\t\t\t\t";
// line 28
$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.', 28, $this->source); })()), "flashes", ["reset_password_error"], "method", false, false, false, 28));
foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
// line 29
yield "\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html", null, true);
yield "</div>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
yield "\t\t\t\t\t\t\t\t\t";
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.', 31, $this->source); })()), 'form_start', ["attr" => ["id" => "myForm", "novalidate" => "novalidate"]]);
yield "
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\" for=\"inputEmail\">";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.username"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t";
// line 34
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.', 34, $this->source); })()), "email", [], "any", false, false, false, 34), 'widget', ["attr" => ["class" => "form-control", "autocomplete" => "email", "id" => "inputEmail", "placeholder" => "Enter username"]]);
yield "
\t\t\t\t\t\t\t\t\t\t<small id=\"emailvalid\" class=\"invalid-feedback text-danger\"></small>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.send_msg"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" id=\"submitbtn\">";
// line 41
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.send_again"), "html", null, true);
yield "</button>
\t\t\t\t\t\t\t\t";
// line 42
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.', 42, $this->source); })()), 'form_end');
yield "<button class=\"btn btn-primary\" onclick=\"window.history.back()\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.back"), "html", null, true);
yield "</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "reset_password/request.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 194 => 42, 190 => 41, 184 => 38, 177 => 34, 173 => 33, 167 => 31, 158 => 29, 154 => 28, 148 => 25, 135 => 15, 131 => 14, 123 => 8, 113 => 7, 68 => 49, 62 => 47, 60 => 7, 55 => 5, 51 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{{ include('partials/main.html.twig') }}
<head>
\t{{ include('partials/title-meta.html.twig', {title: 'Email-Request'}) }}
\t{{ include('partials/head-css.html.twig') }}
</head>
{% block body %}
\t<body class=\"authentication-bg\">
\t\t<div class=\"account-pages my-6 pt-sm-5\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-lg-12\">
\t\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}\" class=\"mb-5 d-block auth-logo\">
\t\t\t\t\t\t\t\t<img src=\"{{ absolute_url(asset('asset/img/logo.png')) }}\" />
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"row align-items-center justify-content-center\">
\t\t\t\t\t<div class=\"col-md-8 col-lg-6 col-xl-5\">
\t\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t\t<div class=\"card-body p-4\">
\t\t\t\t\t\t\t\t<div class=\"text-center mt-2\">
\t\t\t\t\t\t\t\t\t<h5 class=\"text-primary\">{{ 'message.modules.content.reset' | trans }}</h5>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"p-2 mt-4\">
\t\t\t\t\t\t\t\t\t{% for flash_error in app.flashes('reset_password_error') %}
\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t{{ form_start(requestForm,{'attr':{'id': 'myForm','novalidate':'novalidate'}}) }}
\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
\t\t\t\t\t\t\t\t\t\t<label class=\"form-label\" for=\"inputEmail\">{{ 'message.modules.content.username' | trans }}</label>
\t\t\t\t\t\t\t\t\t\t{{ form_widget(requestForm.email, {'attr': {'class': 'form-control', 'autocomplete': 'email', 'id': 'inputEmail', 'placeholder': 'Enter username'}}) }}
\t\t\t\t\t\t\t\t\t\t<small id=\"emailvalid\" class=\"invalid-feedback text-danger\"></small>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t{{ 'message.modules.content.send_msg' | trans }}
\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" id=\"submitbtn\">{{ 'message.modules.content.send_again' | trans }}</button>
\t\t\t\t\t\t\t\t{{ form_end(requestForm) }}<button class=\"btn btn-primary\" onclick=\"window.history.back()\">{{ 'message.modules.content.back' | trans }}</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endblock %}
\t\t\t\t{{ include('partials/vendor-scripts.html.twig') }}
\t\t\t\t<!-- App js -->
\t\t\t\t<script src=\"{{ absolute_url(asset('/js/app.js')) }}\"></script>
\t\t\t\t<script>
\t\t\t\t\t\$(document).ready(function () {
\$(\"#myForm\").validate({
rules: {
reset_password_request_form_email: {
required: true,
email: true
}
},
messages: {
reset_password_request_form_email: {
required: \"Email is required\",
email: \"Your email must be a valid email\"
}
},
errorPlacement: function (error, element) {
error.appendTo(element.next());
},
highlight: function (element) {
\$(element).addClass(\"is-invalid\");
},
unhighlight: function (element) {
\$(element).removeClass(\"is-invalid\");
},
submitHandler: function (form) {
form.submit();
}
});
});
\t\t\t\t</script>
\t\t\t</body>
", "reset_password/request.html.twig", "/home/gixli/public_html/templates/reset_password/request.html.twig");
}
}