var/cache/dev/twig/69/6989444b01601ea12e0c24e5cb62f1dc.php line 44

Open in your IDE?
  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. /* security/login.html.twig */
  16. class __TwigTemplate_39e54b845b9300cccc789a0729e5d2f2 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->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  44.         $this->parent $this->load("base.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Match Meuble | Connexion";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "<section class=\"bg-surface-50 dark:bg-gray-900\">
  82.     <div class=\"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0\">
  83.         <a href=\"";
  84.         // line 8
  85.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
  86.         yield "\" class=\"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white\">
  87.             <span class=\"text-2xl italic\">🛠️ MatchMeuble</span>
  88.         </a>
  89.         <div class=\"w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700\">
  90.             <div class=\"p-6 space-y-4 md:space-y-6 sm:p-8\">
  91.                 <h1 class=\"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white\">Se connecter</h1>
  92.                 ";
  93.         // line 15
  94.         if ((($tmp = (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'15$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  95.             // line 16
  96.             yield "                    <div class=\"text-sm p-3 rounded-md bg-red-50 text-red-700 border border-red-200 dark:bg-red-900/30 dark:text-red-200 dark:border-red-800\">";
  97.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'16$this->source); })()), "messageKey", [], "any"falsefalsefalse16), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'16$this->source); })()), "messageData", [], "any"falsefalsefalse16), "security"), "html"nulltrue);
  98.             yield "</div>
  99.                 ";
  100.         }
  101.         // line 18
  102.         yield "                ";
  103.         if ((($tmp 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.'18$this->source); })()), "user", [], "any"falsefalsefalse18)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  104.             // line 19
  105.             yield "                    <div class=\"text-sm text-gray-700 dark:text-gray-300\">ConnectĂ© en tant que ";
  106.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "user", [], "any"falsefalsefalse19), "userIdentifier", [], "any"falsefalsefalse19), "html"nulltrue);
  107.             yield ", <a class=\"underline\" href=\"";
  108.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  109.             yield "\">DĂ©connexion</a></div>
  110.                 ";
  111.         }
  112.         // line 21
  113.         yield "
  114.                 <form method=\"post\" class=\"space-y-4 md:space-y-6\">
  115.                     <div>
  116.                         <label for=\"inputEmail\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Votre email</label>
  117.                         <input type=\"email\" value=\"";
  118.         // line 25
  119.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'25$this->source); })()), "html"nulltrue);
  120.         yield "\" name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required autofocus class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
  121.                     </div>
  122.                     <div>
  123.                         <label for=\"inputPassword\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Mot de passe</label>
  124.                         <input type=\"password\" name=\"password\" id=\"inputPassword\" placeholder=\"••••••••\" autocomplete=\"current-password\" required class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
  125.                     </div>
  126.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  127.         // line 32
  128.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  129.         yield "\">
  130.                     <div class=\"flex items-center justify-between\">
  131.                         <div class=\"flex items-center h-5\">
  132.                             <input id=\"remember\" name=\"_remember_me\" type=\"checkbox\" class=\"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600\"/>
  133.                             <label for=\"remember\" class=\"ml-3 text-sm text-gray-500 dark:text-gray-300\">Se souvenir de moi</label>
  134.                         </div>
  135.                         <a href=\"";
  136.         // line 39
  137.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forgetten_password");
  138.         yield "\" class=\"text-sm font-medium text-primary-600 hover:underline dark:text-primary-500\">Mot de passe oubliĂ© ?</a>
  139.                     </div>
  140.                     <button type=\"submit\" class=\"w-full text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700\">Se connecter</button>
  141.                     <p class=\"text-sm font-light text-gray-500 dark:text-gray-400\">Pas encore de compte ?
  142.                         <a href=\"";
  143.         // line 44
  144.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  145.         yield "\" class=\"font-medium text-primary-600 hover:underline dark:text-primary-500\">S'inscrire</a>
  146.                     </p>
  147.                 </form>
  148.             </div>
  149.         </div>
  150.     </div>
  151. </section>
  152. ";
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.         yield from [];
  158.     }
  159.     /**
  160.      * @codeCoverageIgnore
  161.      */
  162.     public function getTemplateName(): string
  163.     {
  164.         return "security/login.html.twig";
  165.     }
  166.     /**
  167.      * @codeCoverageIgnore
  168.      */
  169.     public function isTraitable(): bool
  170.     {
  171.         return false;
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function getDebugInfo(): array
  177.     {
  178.         return array (  167 => 44,  159 => 39,  149 => 32,  139 => 25,  133 => 21,  125 => 19,  122 => 18,  116 => 16,  114 => 15,  104 => 8,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  179.     }
  180.     public function getSourceContext(): Source
  181.     {
  182.         return new Source("{% extends 'base.html.twig' %}
  183. {% block title %}Match Meuble | Connexion{% endblock %}
  184. {% block body %}
  185. <section class=\"bg-surface-50 dark:bg-gray-900\">
  186.     <div class=\"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0\">
  187.         <a href=\"{{ path('app_home') }}\" class=\"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white\">
  188.             <span class=\"text-2xl italic\">🛠️ MatchMeuble</span>
  189.         </a>
  190.         <div class=\"w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700\">
  191.             <div class=\"p-6 space-y-4 md:space-y-6 sm:p-8\">
  192.                 <h1 class=\"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white\">Se connecter</h1>
  193.                 {% if error %}
  194.                     <div class=\"text-sm p-3 rounded-md bg-red-50 text-red-700 border border-red-200 dark:bg-red-900/30 dark:text-red-200 dark:border-red-800\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  195.                 {% endif %}
  196.                 {% if app.user %}
  197.                     <div class=\"text-sm text-gray-700 dark:text-gray-300\">ConnectĂ© en tant que {{ app.user.userIdentifier }}, <a class=\"underline\" href=\"{{ path('app_logout') }}\">DĂ©connexion</a></div>
  198.                 {% endif %}
  199.                 <form method=\"post\" class=\"space-y-4 md:space-y-6\">
  200.                     <div>
  201.                         <label for=\"inputEmail\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Votre email</label>
  202.                         <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required autofocus class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
  203.                     </div>
  204.                     <div>
  205.                         <label for=\"inputPassword\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Mot de passe</label>
  206.                         <input type=\"password\" name=\"password\" id=\"inputPassword\" placeholder=\"••••••••\" autocomplete=\"current-password\" required class=\"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white\"/>
  207.                     </div>
  208.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  209.                     <div class=\"flex items-center justify-between\">
  210.                         <div class=\"flex items-center h-5\">
  211.                             <input id=\"remember\" name=\"_remember_me\" type=\"checkbox\" class=\"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600\"/>
  212.                             <label for=\"remember\" class=\"ml-3 text-sm text-gray-500 dark:text-gray-300\">Se souvenir de moi</label>
  213.                         </div>
  214.                         <a href=\"{{ path('forgetten_password') }}\" class=\"text-sm font-medium text-primary-600 hover:underline dark:text-primary-500\">Mot de passe oubliĂ© ?</a>
  215.                     </div>
  216.                     <button type=\"submit\" class=\"w-full text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700\">Se connecter</button>
  217.                     <p class=\"text-sm font-light text-gray-500 dark:text-gray-400\">Pas encore de compte ?
  218.                         <a href=\"{{ path('app_register') }}\" class=\"font-medium text-primary-600 hover:underline dark:text-primary-500\">S'inscrire</a>
  219.                     </p>
  220.                 </form>
  221.             </div>
  222.         </div>
  223.     </div>
  224. </section>
  225. {% endblock %}""security/login.html.twig""/home/u956140113/domains/sassify.fr/public_html/match-meuble/templates/security/login.html.twig");
  226.     }
  227. }