<?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;
/* user/ask_password.html.twig */
class __TwigTemplate_1ffedcbccee86ca8f99ae6c3ae77319ffe40af2bfeda0044100273599d0f3bf8 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 = [
'fos_user_title' => [$this, 'block_fos_user_title'],
'fos_user_content' => [$this, 'block_fos_user_content'],
'fos_user_script' => [$this, 'block_fos_user_script'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base_security.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/ask_password.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/ask_password.html.twig"));
$this->parent = $this->loadTemplate("base_security.html.twig", "user/ask_password.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_fos_user_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_title"));
// line 5
yield " <h4 class=\"auth-header\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.init_reset_password"), "html", null, true);
yield "</h4>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_fos_user_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_content"));
// line 9
yield " <div class=\"container\">
<div class=\"form-text text-md-center\">
<em>
";
// line 12
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.information_for_reset_password_with_tag", ["%tag_br%" => "<br/>"]);
yield "
</em>
</div>
";
// line 17
yield " <form action=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_ask_new_password");
yield "\" method=\"POST\" class=\"fos_user_resetting_request\">
";
// line 18
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 18, $this->source); })()), "_token", [], "any", false, false, false, 18), 'widget');
yield "
<div class=\"form-group\">
<label for=\"\">";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.login_phone"), "html", null, true);
yield "*</label>
";
// line 21
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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); })()), "phone", [], "any", false, false, false, 21), 'widget');
yield "
<div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
</div>
<div class=\"form-group\">
<label for=\"\">";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.optional_email"), "html", null, true);
yield "</label>
";
// line 26
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 26, $this->source); })()), "email", [], "any", false, false, false, 26), 'widget');
yield "
<div class=\"pre-icon os-icon os-icon-email-forward\"></div>
</div>
<div class=\"form-group\">
<label for=\"\">";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.verification_code"), "html", null, true);
yield "</label>
";
// line 31
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 31, $this->source); })()), "validCode", [], "any", false, false, false, 31), 'widget', ["value" => ""]);
yield "
<div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
</div>
<div class=\"multi_submit\">
";
// line 36
yield " <input id=\"submit_change_password\" class=\"btn btn-primary\" type=\"submit\" value=\"Initialiser\" />
<a class=\"btn btn-primary\" href=\"";
// line 37
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.cancel"), "html", null, true);
yield "</a>
</div>
</form>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 42
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_fos_user_script(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_script"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fos_user_script"));
// line 43
yield " <script>
change_submit_name();
\$('#userbundle_user_validCode').hover(function (e) {
change_submit_name();
})
function change_submit_name() {
if(\$('#userbundle_user_validCode').val().length >0) {
\$('#submit_change_password').val(\"Initialiser votre mot de passe\");
} else {
\$('#submit_change_password').val(\"Demander le code\");
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "user/ask_password.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 194 => 43, 181 => 42, 163 => 37, 160 => 36, 153 => 31, 149 => 30, 142 => 26, 138 => 25, 131 => 21, 127 => 20, 122 => 18, 117 => 17, 110 => 12, 105 => 9, 92 => 8, 78 => 5, 65 => 4, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"base_security.html.twig\" %}
{% block fos_user_title %}
<h4 class=\"auth-header\">{{ 'menu.init_reset_password' | trans }}</h4>
{% endblock fos_user_title %}
{% block fos_user_content %}
<div class=\"container\">
<div class=\"form-text text-md-center\">
<em>
{{ 'menu.information_for_reset_password_with_tag' | trans({'%tag_br%': '<br/>'}) | raw }}
</em>
</div>
{#<form action=\"{{ path('fos_user_resetting_send_email') }}\" method=\"POST\" class=\"fos_user_resetting_request\">#}
<form action=\"{{ path('register_ask_new_password') }}\" method=\"POST\" class=\"fos_user_resetting_request\">
{{ form_widget(form._token) }}
<div class=\"form-group\">
<label for=\"\">{{ 'menu.login_phone' | trans }}*</label>
{{ form_widget(form.phone) }}
<div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
</div>
<div class=\"form-group\">
<label for=\"\">{{ 'menu.optional_email' | trans }}</label>
{{ form_widget(form.email) }}
<div class=\"pre-icon os-icon os-icon-email-forward\"></div>
</div>
<div class=\"form-group\">
<label for=\"\">{{ 'menu.verification_code' | trans }}</label>
{{ form_widget(form.validCode, { 'value': '' }) }}
<div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
</div>
<div class=\"multi_submit\">
{#<input class=\"btn btn-primary\" type=\"submit\" value=\"{{ 'resetting.request.submit'|trans }}\" />#}
<input id=\"submit_change_password\" class=\"btn btn-primary\" type=\"submit\" value=\"Initialiser\" />
<a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">{{ 'menu.cancel' | trans }}</a>
</div>
</form>
</div>
{% endblock fos_user_content %}
{% block fos_user_script %}
<script>
change_submit_name();
\$('#userbundle_user_validCode').hover(function (e) {
change_submit_name();
})
function change_submit_name() {
if(\$('#userbundle_user_validCode').val().length >0) {
\$('#submit_change_password').val(\"Initialiser votre mot de passe\");
} else {
\$('#submit_change_password').val(\"Demander le code\");
}
}
</script>
{% endblock fos_user_script %}
", "user/ask_password.html.twig", "/var/www/html/inserjeune/templates/user/ask_password.html.twig");
}
}