var/cache/dev/twig/46/46b3e0c30d7a5002fa19610300ac0122.php line 38

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* reset_password/request.html.twig */
  16. class __TwigTemplate_20e263ae5a3d758a0b5c878ff9beb7ef extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  38.         // line 1
  39.         yield "<!doctype html>
  40. <html lang=\"fr\">
  41. <head>
  42.     <meta charset=\"utf-8\" />
  43.     <title>SmartImmo Management — Admin</title>
  44.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  45.     <meta content=\"SmartImmo Management est une application de gestion locative\" name=\"description\" />
  46.     <meta content=\"SmartTechnology\" name=\"author\" />
  47.     <link rel=\"shortcut icon\" href=\"";
  48.         // line 9
  49.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/smartimmoManagementHead.png"), "html"nulltrue);
  50.         yield "\">
  51.     <!-- Fonts -->
  52.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com/\">
  53.     <link rel=\"preconnect\" href=\"https://fonts.gstatic.com/\" crossorigin>
  54.     <link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&family=Ubuntu:wght@400;500;700&display=swap\" rel=\"stylesheet\">
  55.     <link rel=\"stylesheet\" href=\"";
  56.         // line 16
  57.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html"nulltrue);
  58.         yield "\">
  59.     <link rel=\"stylesheet\" href=\"";
  60.         // line 17
  61.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/reset-password-style.css"), "html"nulltrue);
  62.         yield "\">
  63. </head>
  64. <body>
  65. <div class=\"auth-wrap\">
  66.     <div class=\"auth-card\">
  67.         <!-- Brand -->
  68.         <div class=\"brand-top\">
  69.             <img src=\"";
  70.         // line 25
  71.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/smartImmoManagement.png"), "html"nulltrue);
  72.         yield "\" alt=\"Smart Immo Management\" width=\"50%\">
  73.         </div>
  74.         <!-- Title + subtitle -->
  75.         <div class=\"auth-head\">
  76.             <h1>Espace Admin</h1>
  77.         </div>
  78.         <div class=\"auth-sub\" style=\"color: dodgerblue\">
  79.             Réinitialiser votre mot de passe
  80.         </div>
  81.         <!-- Flash errors -->
  82.         <div class=\"px-4 flash-stack\">
  83.             ";
  84.         // line 38
  85.         $context['_parent'] = $context;
  86.         $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.'38$this->source); })()), "flashes", ["reset_password_error"], "method"falsefalsefalse38));
  87.         foreach ($context['_seq'] as $context["_key"] => $context["flashError"]) {
  88.             // line 39
  89.             yield "                <div class=\"alert alert-danger\" role=\"alert\">";
  90.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashError"], "html"nulltrue);
  91.             yield "</div>
  92.             ";
  93.         }
  94.         $_parent $context['_parent'];
  95.         unset($context['_seq'], $context['_key'], $context['flashError'], $context['_parent']);
  96.         $context array_intersect_key($context$_parent) + $_parent;
  97.         // line 41
  98.         yield "        </div>
  99.         <!-- Body -->
  100.         <div class=\"auth-body\">
  101.             <p class=\"text-muted mb-3\" style=\"font-size: 12px\">
  102.                 Entrez votre adresse e-mail (et identifiant si demandé) pour recevoir un nouveau mot de passe.
  103.             </p>
  104.             ";
  105.         // line 49
  106.         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.'49$this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
  107.         yield "
  108.             ";
  109.         // line 52
  110.         yield "            <div class=\"mb-3\" style=\"margin-bottom: 10px\">
  111.                 <label class=\"form-label\" for=\"";
  112.         // line 53
  113.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["requestForm"]) || array_key_exists("requestForm"$context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.'53$this->source); })()), "username", [], "any"falsefalsefalse53), "vars", [], "any"falsefalsefalse53), "id", [], "any"falsefalsefalse53), "html"nulltrue);
  114.         yield "\">Identifiant</label>
  115.                 ";
  116.         // line 54
  117.         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.'54$this->source); })()), "username", [], "any"falsefalsefalse54), 'widget', ["attr" => ["class" => "form-control""placeholder" => "Votre identifiant"]]);
  118.         yield "
  119.                 ";
  120.         // line 55
  121.         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.'55$this->source); })()), "username", [], "any"falsefalsefalse55), 'errors');
  122.         yield "
  123.             </div>
  124.             ";
  125.         // line 59
  126.         yield "            <div class=\"mb-3\">
  127.                 <label class=\"form-label\" for=\"";
  128.         // line 60
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["requestForm"]) || array_key_exists("requestForm"$context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.'60$this->source); })()), "email", [], "any"falsefalsefalse60), "vars", [], "any"falsefalsefalse60), "id", [], "any"falsefalsefalse60), "html"nulltrue);
  130.         yield "\">Adresse e-mail</label>
  131.                 ";
  132.         // line 61
  133.         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.'61$this->source); })()), "email", [], "any"falsefalsefalse61), 'widget', ["attr" => ["class" => "form-control""placeholder" => "nom@domaine.com"]]);
  134.         yield "
  135.                 ";
  136.         // line 62
  137.         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.'62$this->source); })()), "email", [], "any"falsefalsefalse62), 'errors');
  138.         yield "
  139.             </div>
  140.             <button class=\"btn btn-brand\" type=\"submit\" style=\"margin-top: 20px\">
  141.                 Demander un nouveau mot de passe
  142.             </button>
  143.             ";
  144.         // line 69
  145.         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.'69$this->source); })()), 'form_end');
  146.         yield "
  147.         </div>
  148.         <!-- Links -->
  149.         <div class=\"link-row\">
  150.             <a class=\"btn-link\" href=\"";
  151.         // line 74
  152.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  153.         yield "\">Se connecter</a>
  154.         </div>
  155.     </div>
  156. </div>
  157. <!-- JS -->
  158. <!-- Safe redirect logic (moved AFTER jQuery load to avoid errors) -->
  159. <script>
  160.     (function(){
  161.         // If a main nav exists (already logged-in layout), bounce to dashboard
  162.         if (\$(\"body nav\").length > 0) {
  163.             window.location.href = \"";
  164.         // line 87
  165.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_dashboard");
  166.         yield "\";
  167.         } else {
  168.             \$(\"body div, body p\").removeClass(\"d-none\");
  169.         }
  170.     })();
  171. </script>
  172. </body>
  173. </html>";
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         yield from [];
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function getTemplateName(): string
  184.     {
  185.         return "reset_password/request.html.twig";
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function isTraitable(): bool
  191.     {
  192.         return false;
  193.     }
  194.     /**
  195.      * @codeCoverageIgnore
  196.      */
  197.     public function getDebugInfo(): array
  198.     {
  199.         return array (  189 => 87,  173 => 74,  165 => 69,  155 => 62,  151 => 61,  147 => 60,  144 => 59,  138 => 55,  134 => 54,  130 => 53,  127 => 52,  122 => 49,  112 => 41,  103 => 39,  99 => 38,  83 => 25,  72 => 17,  68 => 16,  58 => 9,  48 => 1,);
  200.     }
  201.     public function getSourceContext(): Source
  202.     {
  203.         return new Source("<!doctype html>
  204. <html lang=\"fr\">
  205. <head>
  206.     <meta charset=\"utf-8\" />
  207.     <title>SmartImmo Management — Admin</title>
  208.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  209.     <meta content=\"SmartImmo Management est une application de gestion locative\" name=\"description\" />
  210.     <meta content=\"SmartTechnology\" name=\"author\" />
  211.     <link rel=\"shortcut icon\" href=\"{{ asset('assets/img/smartimmoManagementHead.png') }}\">
  212.     <!-- Fonts -->
  213.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com/\">
  214.     <link rel=\"preconnect\" href=\"https://fonts.gstatic.com/\" crossorigin>
  215.     <link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&family=Ubuntu:wght@400;500;700&display=swap\" rel=\"stylesheet\">
  216.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/style.css') }}\">
  217.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/reset-password-style.css') }}\">
  218. </head>
  219. <body>
  220. <div class=\"auth-wrap\">
  221.     <div class=\"auth-card\">
  222.         <!-- Brand -->
  223.         <div class=\"brand-top\">
  224.             <img src=\"{{ asset('assets/img/smartImmoManagement.png') }}\" alt=\"Smart Immo Management\" width=\"50%\">
  225.         </div>
  226.         <!-- Title + subtitle -->
  227.         <div class=\"auth-head\">
  228.             <h1>Espace Admin</h1>
  229.         </div>
  230.         <div class=\"auth-sub\" style=\"color: dodgerblue\">
  231.             Réinitialiser votre mot de passe
  232.         </div>
  233.         <!-- Flash errors -->
  234.         <div class=\"px-4 flash-stack\">
  235.             {% for flashError in app.flashes('reset_password_error') %}
  236.                 <div class=\"alert alert-danger\" role=\"alert\">{{ flashError }}</div>
  237.             {% endfor %}
  238.         </div>
  239.         <!-- Body -->
  240.         <div class=\"auth-body\">
  241.             <p class=\"text-muted mb-3\" style=\"font-size: 12px\">
  242.                 Entrez votre adresse e-mail (et identifiant si demandé) pour recevoir un nouveau mot de passe.
  243.             </p>
  244.             {{ form_start(requestForm, {'attr': {'novalidate': 'novalidate'}}) }}
  245.             {# Username (optionnel selon votre logique) #}
  246.             <div class=\"mb-3\" style=\"margin-bottom: 10px\">
  247.                 <label class=\"form-label\" for=\"{{ requestForm.username.vars.id }}\">Identifiant</label>
  248.                 {{ form_widget(requestForm.username, {'attr': {'class':'form-control', 'placeholder':'Votre identifiant'}}) }}
  249.                 {{ form_errors(requestForm.username) }}
  250.             </div>
  251.             {# Email #}
  252.             <div class=\"mb-3\">
  253.                 <label class=\"form-label\" for=\"{{ requestForm.email.vars.id }}\">Adresse e-mail</label>
  254.                 {{ form_widget(requestForm.email, {'attr': {'class':'form-control', 'placeholder':'nom@domaine.com'}}) }}
  255.                 {{ form_errors(requestForm.email) }}
  256.             </div>
  257.             <button class=\"btn btn-brand\" type=\"submit\" style=\"margin-top: 20px\">
  258.                 Demander un nouveau mot de passe
  259.             </button>
  260.             {{ form_end(requestForm) }}
  261.         </div>
  262.         <!-- Links -->
  263.         <div class=\"link-row\">
  264.             <a class=\"btn-link\" href=\"{{ path('app_login') }}\">Se connecter</a>
  265.         </div>
  266.     </div>
  267. </div>
  268. <!-- JS -->
  269. <!-- Safe redirect logic (moved AFTER jQuery load to avoid errors) -->
  270. <script>
  271.     (function(){
  272.         // If a main nav exists (already logged-in layout), bounce to dashboard
  273.         if (\$(\"body nav\").length > 0) {
  274.             window.location.href = \"{{ path('app_dashboard') }}\";
  275.         } else {
  276.             \$(\"body div, body p\").removeClass(\"d-none\");
  277.         }
  278.     })();
  279. </script>
  280. </body>
  281. </html>""reset_password/request.html.twig""/home/clients/bd8cd111e9f750c60744e1a2ea7ccf8e/sites/beta-admin.smartimmo-app.com/beta-admin/templates/reset_password/request.html.twig");
  282.     }
  283. }