var/cache/website/dev/twig/fc/fcf0c550380667cd5788aeb6b27b03b5bec8b86fd683ded3e40a56bf882a6766.php line 53

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_66a59517d803d4e43a01b3b4817d9896203ee823eb22ec595f7f3991e42f010f 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.             'contentBody' => [$this'block_contentBody'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  43.         $this->parent $this->loadTemplate("layout.html.twig""security/login.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_contentBody(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBody"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBody"));
  61.         // line 4
  62.         yield "    ";
  63.         $context["pm"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "query", [], "any"falsefalsefalse4), "get", ["pm"], "method"falsefalsefalse4);
  64.         // line 5
  65.         yield "    <!-- Main content -->
  66.     <div class=\"content container mt-5\">
  67.         <div class=\"row justify-content-center d-flex\">
  68.             <!-- Login Form -->
  69.             <div class=\"col-md-4 d-flex align-items-stretch\">
  70.                 <div class=\"form-container p-4 bg-white shadow-sm\">
  71.                     <h2 class=\"header-text text-center\">Connecter-vous</h2>
  72.                     <form action=\"\" method=\"POST\">
  73.                         ";
  74.         // line 13
  75.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'13$this->source); })())) {
  76.             // line 14
  77.             yield "                            <div class=\"alert alert-danger\">";
  78.             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.'14$this->source); })()), "messageKey", [], "any"falsefalsefalse14), 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.'14$this->source); })()), "messageData", [], "any"falsefalsefalse14), "security"), "html"nulltrue);
  79.             yield "</div>
  80.                         ";
  81.         }
  82.         // line 16
  83.         yield "                        ";
  84.         if (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.'16$this->source); })()), "user", [], "any"falsefalsefalse16)) {
  85.             // line 17
  86.             yield "                            <div class=\"mb-3\">
  87.                                 You are logged in as ";
  88.             // line 18
  89.             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.'18$this->source); })()), "user", [], "any"falsefalsefalse18), "userIdentifier", [], "any"falsefalsefalse18), "html"nulltrue);
  90.             yield ", <a href=\"/logout\">Logout</a>
  91.                             </div>
  92.                         ";
  93.         }
  94.         // line 21
  95.         yield "                        <div class=\"form-group\">
  96.                             <input type=\"email\" value=\"";
  97.         // line 22
  98.         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.'22$this->source); })()), "html"nulltrue);
  99.         yield "\" class=\"form-control login\" name=\"_username\" placeholder=\"E-mail*\" required>
  100.                         </div>
  101.                         <div class=\"form-group\">
  102.                             <input type=\"password\" class=\"form-control login\" name=\"_password\" placeholder=\"Mot de passe*\" required>
  103.                         </div>
  104.                         <a href=\"";
  105.         // line 27
  106.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password");
  107.         yield "\" class=\"forgot-password-link font-italic text-underline\">>j'ai oublié mon mot de passe</a>
  108.                         <div class=\"text-center\">
  109.                             <button type=\"submit\" class=\"btn btn-login btn-custom mt-4\">Me connecter</button>
  110.                             <small class=\"form-text text-muted\"><em>*Champs obligatoires</em></small>
  111.                         </div>
  112.                     </form>
  113.                 </div>
  114.             </div>
  115.             <!-- Signup Section -->
  116.             <div class=\"col-md-4 d-flex align-items-stretch\">
  117.                 <div class=\"form-container p-4 bg-white shadow-sm\">
  118.                     <h2 class=\"header-text text-center\">Inscrivez-vous</h2>
  119.                     <div class=\"font-16 mt-2 text-center desc-login\">
  120.                         Consultez vos réservations disponibles<br>
  121.                         Gérez votre planning dans votre compte<br>
  122.                         Téléchargez vos factures
  123.                     </div>
  124.                     <div class=\"text-center no-padding-top\">
  125.                         <a href=\"";
  126.         // line 46
  127.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("client_register");
  128.         yield ((((isset($context["pm"]) || array_key_exists("pm"$context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.'46$this->source); })()) != "")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(("?pm=" . (isset($context["pm"]) || array_key_exists("pm"$context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.'46$this->source); })())), "html"nulltrue)) : (""));
  129.         yield "\" class=\"btn btn-login btn-custom mt-4\">Créer mon compte</a>
  130.                     </div>
  131.                 </div>
  132.             </div>
  133.         </div>
  134.     </div>
  135.     <style type=\"text/css\">
  136.         .no-padding-top {
  137.             padding-top: 0 !important;
  138.             margin-top: 0 !important;
  139.         }
  140.         /* Background image styling */
  141.         body {
  142.             background-image: url(";
  143.         // line 60
  144.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("../assets/images/bg_contact.jpg"), "html"nulltrue);
  145.         yield ");
  146.             background-repeat: no-repeat;
  147.             background-size: cover; /* Fait en sorte que l'image remplisse tout l'écran */
  148.             background-position: center; /* Centre l'image pour éviter les décalages */
  149.             background-attachment: fixed; /* Fixe l'image en place lors du défilement */
  150.         }
  151.         .big-wrapper {
  152.             background: linear-gradient(to bottom, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0)); /* Dégradé du haut (opaque) vers le bas (transparent) */
  153.         }
  154.     </style>
  155. ";
  156.         
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  158.         
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  160.         yield from [];
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function getTemplateName(): string
  166.     {
  167.         return "security/login.html.twig";
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function isTraitable(): bool
  173.     {
  174.         return false;
  175.     }
  176.     /**
  177.      * @codeCoverageIgnore
  178.      */
  179.     public function getDebugInfo(): array
  180.     {
  181.         return array (  160 => 60,  142 => 46,  120 => 27,  112 => 22,  109 => 21,  103 => 18,  100 => 17,  97 => 16,  91 => 14,  89 => 13,  79 => 5,  76 => 4,  63 => 3,  40 => 1,);
  182.     }
  183.     public function getSourceContext(): Source
  184.     {
  185.         return new Source("{% extends \"layout.html.twig\" %}
  186. {% block contentBody %}
  187.     {% set pm = app.request.query.get('pm') %}
  188.     <!-- Main content -->
  189.     <div class=\"content container mt-5\">
  190.         <div class=\"row justify-content-center d-flex\">
  191.             <!-- Login Form -->
  192.             <div class=\"col-md-4 d-flex align-items-stretch\">
  193.                 <div class=\"form-container p-4 bg-white shadow-sm\">
  194.                     <h2 class=\"header-text text-center\">Connecter-vous</h2>
  195.                     <form action=\"\" method=\"POST\">
  196.                         {% if error %}
  197.                             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  198.                         {% endif %}
  199.                         {% if app.user %}
  200.                             <div class=\"mb-3\">
  201.                                 You are logged in as {{ app.user.userIdentifier }}, <a href=\"/logout\">Logout</a>
  202.                             </div>
  203.                         {% endif %}
  204.                         <div class=\"form-group\">
  205.                             <input type=\"email\" value=\"{{ last_username }}\" class=\"form-control login\" name=\"_username\" placeholder=\"E-mail*\" required>
  206.                         </div>
  207.                         <div class=\"form-group\">
  208.                             <input type=\"password\" class=\"form-control login\" name=\"_password\" placeholder=\"Mot de passe*\" required>
  209.                         </div>
  210.                         <a href=\"{{ path('app_forgot_password') }}\" class=\"forgot-password-link font-italic text-underline\">>j'ai oublié mon mot de passe</a>
  211.                         <div class=\"text-center\">
  212.                             <button type=\"submit\" class=\"btn btn-login btn-custom mt-4\">Me connecter</button>
  213.                             <small class=\"form-text text-muted\"><em>*Champs obligatoires</em></small>
  214.                         </div>
  215.                     </form>
  216.                 </div>
  217.             </div>
  218.             <!-- Signup Section -->
  219.             <div class=\"col-md-4 d-flex align-items-stretch\">
  220.                 <div class=\"form-container p-4 bg-white shadow-sm\">
  221.                     <h2 class=\"header-text text-center\">Inscrivez-vous</h2>
  222.                     <div class=\"font-16 mt-2 text-center desc-login\">
  223.                         Consultez vos réservations disponibles<br>
  224.                         Gérez votre planning dans votre compte<br>
  225.                         Téléchargez vos factures
  226.                     </div>
  227.                     <div class=\"text-center no-padding-top\">
  228.                         <a href=\"{{ path('client_register') }}{{pm != \"\" ? '?pm=' ~ pm : ''}}\" class=\"btn btn-login btn-custom mt-4\">Créer mon compte</a>
  229.                     </div>
  230.                 </div>
  231.             </div>
  232.         </div>
  233.     </div>
  234.     <style type=\"text/css\">
  235.         .no-padding-top {
  236.             padding-top: 0 !important;
  237.             margin-top: 0 !important;
  238.         }
  239.         /* Background image styling */
  240.         body {
  241.             background-image: url({{ asset('../assets/images/bg_contact.jpg') }});
  242.             background-repeat: no-repeat;
  243.             background-size: cover; /* Fait en sorte que l'image remplisse tout l'écran */
  244.             background-position: center; /* Centre l'image pour éviter les décalages */
  245.             background-attachment: fixed; /* Fixe l'image en place lors du défilement */
  246.         }
  247.         .big-wrapper {
  248.             background: linear-gradient(to bottom, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0)); /* Dégradé du haut (opaque) vers le bas (transparent) */
  249.         }
  250.     </style>
  251. {% endblock %}
  252. ""security/login.html.twig""/home/coworking/www_preprod/templates/security/login.html.twig");
  253.     }
  254. }