var/cache/dev/twig/a2/a29327bf104a63fc9b67b4bf2177b6b2.php line 90
<?phpuse 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;/* security/lost-my-password.html.twig */class __TwigTemplate_1362b8e3709d26bda27f4a41a257f566 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'],'body' => [$this, 'block_body'],];}protected function doGetParent(array $context): bool|string|Template|TemplateWrapper{// line 1return "base.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", "security/lost-my-password.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/lost-my-password.html.twig"));$this->parent = $this->load("base.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 $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lost my password or first login"), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 5/*** @return iterable<null|scalar|\Stringable>*/public function block_body(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", "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 6yield " <div class=\"switch\"><select id=\"language-toggle\"><option value=\"fr\" ";// line 8if ((CoreExtension::getAttribute($this->env, $this->source, 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8) == "fr")) {yield " selected ";}yield ">FR</option><option value=\"en\" ";// line 9if ((CoreExtension::getAttribute($this->env, $this->source, 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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9) != "fr")) {yield " selected ";}yield ">EN</option></select></div><div class=\"container\"><div class=\"logo\">";// line 14if ((($tmp = (isset($context["showMessage"]) || array_key_exists("showMessage", $context) ? $context["showMessage"] : (function () { throw new RuntimeError('Variable "showMessage" does not exist.', 14, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {// line 15yield " <div class=\"alert alert-success\" role=\"alert\">";// line 16yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An email has been sent to you"), "html", null, true);yield "</div>";}// line 19yield " <img src=\"";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/logo-2.png"), "html", null, true);yield "\"/><h2>";// line 21yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lost my password or first login"), "html", null, true);yield "</h2>";// line 23if ((($tmp = (isset($context["showMessage"]) || array_key_exists("showMessage", $context) ? $context["showMessage"] : (function () { throw new RuntimeError('Variable "showMessage" does not exist.', 23, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {// line 24yield " <div class=\"alert alert-chrysippe\">";// line 25yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your mailbox and click on the sent link"), "html", null, true);yield "</div><div class=\"buttons\"><a class=\"btn btn-link float-end\" href=\"";// line 28yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");yield "\">";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Return to Login"), "html", null, true);yield "</a></div></div>";} else {// line 33yield " ";yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 33, $this->source); })()), 'form_start');yield "";// line 34yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 34, $this->source); })()), 'widget');yield "<div class=\"buttons\"><button class=\"btn btn-cyellow\">";// line 36yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("button_label", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["button_label"]) || array_key_exists("button_label", $context) ? $context["button_label"] : (function () { throw new RuntimeError('Variable "button_label" does not exist.', 36, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit"))), "html", null, true);yield "</button><a class=\"btn btn-link float-end\" href=\"";// line 37yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");yield "\">";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Return to Login"), "html", null, true);yield "</a></div>";// line 39yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), 'form_end');yield "</div>";}// line 43yield " </div><style>.container {display: flex;flex-direction: column;justify-content: center;align-items: center;min-height: 80vh;}img {width: 60%;}.logo {display: flex;flex-direction: column;max-width: 600px;}.logo img {align-self: center;margin-bottom: 3%;}.logo h2 {width: 113%;margin-bottom: 3%;}.logo p, .logo h2 {align-self: flex-start;}.switch {position: absolute;top: 2%;right: 1%;}.buttons {display: flex;margin-top: 3rem;}.btn-cyellow {border-radius: 3px;margin-right: 3%;}.alert-success {text-align: center;}@media(max-width: 600px) {.container-md {padding-left: 4px;}img {width: 100%;}.buttons {flex-direction:column;align-items: stretch;justify-content: center;}.btn-cyellow {margin-bottom: 4%;}.logo h2 {font-size: 17px;}.logo p {font-size: 12px;}.logo img {margin-bottom: 10%;}.mb-3 {margin-top: 15%;}}</style><script>const languageToggle = document.getElementById('language-toggle');languageToggle.onchange = function () {const elem = (typeof this.selectedIndex === \"undefined\" ? window.event.srcElement : this);const value = elem.value || elem.options[elem.selectedIndex].value;changeLanguage(value);}function changeLanguage(lang) {console.log(lang);const url = new URL(window.location.href);url.searchParams.set('lang', lang);window.location.href = url.href;}</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}/*** @codeCoverageIgnore*/public function getTemplateName(): string{return "security/lost-my-password.html.twig";}/*** @codeCoverageIgnore*/public function isTraitable(): bool{return false;}/*** @codeCoverageIgnore*/public function getDebugInfo(): array{return array ( 191 => 43, 184 => 39, 177 => 37, 173 => 36, 168 => 34, 163 => 33, 153 => 28, 147 => 25, 144 => 24, 142 => 23, 137 => 21, 131 => 19, 125 => 16, 122 => 15, 120 => 14, 110 => 9, 104 => 8, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);}public function getSourceContext(): Source{return new Source("{% extends 'base.html.twig' %}{% block title %}{{'Lost my password or first login' | trans}}{% endblock %}{% block body %}<div class=\"switch\"><select id=\"language-toggle\"><option value=\"fr\" {% if app.request.locale == \"fr\" %} selected {% endif %}>FR</option><option value=\"en\" {% if app.request.locale != \"fr\" %} selected {% endif %}>EN</option></select></div><div class=\"container\"><div class=\"logo\">{% if showMessage %}<div class=\"alert alert-success\" role=\"alert\">{{ 'An email has been sent to you' | trans }}</div>{% endif %}<img src=\"{{ asset('images/logo-2.png')}}\"/><h2>{{'Lost my password or first login' | trans}}</h2>{% if showMessage %}<div class=\"alert alert-chrysippe\">{{'Please check your mailbox and click on the sent link' | trans}}</div><div class=\"buttons\"><a class=\"btn btn-link float-end\" href=\"{{ path('app_login') }}\">{{'Return to Login' | trans}}</a></div></div>{% else %}{{ form_start(form) }}{{ form_widget(form) }}<div class=\"buttons\"><button class=\"btn btn-cyellow\">{{ button_label|default('Submit'|trans) }}</button><a class=\"btn btn-link float-end\" href=\"{{ path('app_login') }}\">{{'Return to Login' | trans}}</a></div>{{ form_end(form) }}</div>{% endif %}</div><style>.container {display: flex;flex-direction: column;justify-content: center;align-items: center;min-height: 80vh;}img {width: 60%;}.logo {display: flex;flex-direction: column;max-width: 600px;}.logo img {align-self: center;margin-bottom: 3%;}.logo h2 {width: 113%;margin-bottom: 3%;}.logo p, .logo h2 {align-self: flex-start;}.switch {position: absolute;top: 2%;right: 1%;}.buttons {display: flex;margin-top: 3rem;}.btn-cyellow {border-radius: 3px;margin-right: 3%;}.alert-success {text-align: center;}@media(max-width: 600px) {.container-md {padding-left: 4px;}img {width: 100%;}.buttons {flex-direction:column;align-items: stretch;justify-content: center;}.btn-cyellow {margin-bottom: 4%;}.logo h2 {font-size: 17px;}.logo p {font-size: 12px;}.logo img {margin-bottom: 10%;}.mb-3 {margin-top: 15%;}}</style><script>const languageToggle = document.getElementById('language-toggle');languageToggle.onchange = function () {const elem = (typeof this.selectedIndex === \"undefined\" ? window.event.srcElement : this);const value = elem.value || elem.options[elem.selectedIndex].value;changeLanguage(value);}function changeLanguage(lang) {console.log(lang);const url = new URL(window.location.href);url.searchParams.set('lang', lang);window.location.href = url.href;}</script>{% endblock %}", "security/lost-my-password.html.twig", "/app/templates/security/lost-my-password.html.twig");}}