var/cache/dev/twig/d0/d029df40b96b32f3ea5c72bb62f98b1c.php line 97

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* security/login.html.twig */
  14. class __TwigTemplate_a03c2fd9b3c0dbbca2584646c01f8622 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'menu' => [$this'block_menu'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "- Connexion";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 4
  62.     public function block_menu($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     // line 6
  75.     public function block_body($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         // line 7
  83.         echo "<main>
  84.     <!-- Section -->
  85.     <section class=\"min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0\" data-background=\"";
  86.         // line 9
  87.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html"nulltrue);
  88.         echo "\">
  89.         <div class=\"container\">
  90.             <div class=\"row justify-content-center\">
  91.                 <div class=\"col-12\">
  92.                     <div class=\"text-center text-md-center mb-5 mt-md-0 text-white\">
  93.                         <h1 class=\"mb-0 h3\">Connexion</h1>
  94.                     </div>
  95.                 </div>
  96.                 <div class=\"col-12 d-flex align-items-center justify-content-center\">
  97.                     <div class=\"signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500\">
  98.                         <span class=\"clearfix\"></span>
  99.                         <form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
  100.                             ";
  101.         // line 21
  102.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'21$this->source); })())) {
  103.             // line 22
  104.             echo "                            <div class=\"alert alert-danger\">";
  105.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'22$this->source); })()), "messageKey", [], "any"falsefalsefalse22), twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'22$this->source); })()), "messageData", [], "any"falsefalsefalse22), "security"), "html"nulltrue);
  106.             echo "</div>
  107.                             ";
  108.         }
  109.         // line 24
  110.         echo "                            ";
  111.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'24$this->source); })()), "user", [], "any"falsefalsefalse24)) {
  112.             // line 25
  113.             echo "                            <div class=\"mb-3\">
  114.                                 Vous êtes déjà connecté:<br /> ";
  115.             // line 26
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "user", [], "any"falsefalsefalse26), "username", [], "any"falsefalsefalse26), "html"nulltrue);
  117.             echo " <br />
  118.                                 <a href=\"";
  119.             // line 27
  120.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  121.             echo "\">Déconnecter</a>
  122.                             </div>
  123.                             ";
  124.         }
  125.         // line 30
  126.         echo "                            <div class=\"form-group\">
  127.                                 <div class=\"input-group\">
  128.                                     <div class=\"input-group-prepend\">
  129.                                         <span class=\"input-group-text\"><i class=\"far fa-user\"></i></span>
  130.                                     </div>
  131.                                     <input type=\"email\" class=\"form-control\" id=\"input-email\" name=\"email\" placeholder=\"Email\" value=\"";
  132.         // line 35
  133.         echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'35$this->source); })()), "html"nulltrue);
  134.         echo "\" required>
  135.                                 </div>
  136.                             </div>
  137.                             <div class=\"form-group\">
  138.                                 <div class=\"input-group\">
  139.                                     <div class=\"input-group-prepend\">
  140.                                         <span class=\"input-group-text\"><i class=\"fas fa-unlock-alt\"></i></span>
  141.                                     </div>
  142.                                     <input class=\"form-control\" placeholder=\"Mot de passe\" name=\"password\" type=\"password\" required>
  143.                                 </div>
  144.                             </div>
  145.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  146.         // line 46
  147.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  148.         echo "\">
  149.                             <div class=\"form-check mb-3\">
  150.                                 <input class=\"form-check-input\" id=\"remember\" type=\"checkbox\">
  151.                                 <label class=\"form-check-label\" for=\"remember\">
  152.                                     Se souvenir de moi
  153.                                 </label>
  154.                             </div>
  155.                             <div class=\"mt-4\">
  156.                                 <input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
  157.                                 <button type=\"submit\" class=\"btn btn-block btn-primary animate-up-2\">Connexion</button>
  158.                             </div>
  159.                         </form>
  160.                         <div class=\"d-flex justify-content-between align-items-center mt-4\">
  161.                             <span>
  162.                                 <small>Vous n'avez pas de compte?</small>
  163.                                 <a href=\"";
  164.         // line 61
  165.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => "signup"], false);
  166.         echo "\" class=\"small font-weight-bold\">Créer</a>
  167.                             </span>
  168.                             <div><a href=\"";
  169.         // line 64
  170.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_resetpassword", [], false);
  171.         echo "\" class=\"small text-right\">Mot de passe oublié?</a></div>
  172.                         </div>
  173.                     </div>
  174.                 </div>
  175.             </div>
  176.         </div>
  177.     </section>
  178. </main>
  179. <!-- Recaptcha -->
  180. <script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
  181. <script src=\"";
  182.         // line 75
  183.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/recaptcha.js"), "html"nulltrue);
  184.         echo "\"></script>
  185. ";
  186.         
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188.         
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "security/login.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  209 => 75,  195 => 64,  189 => 61,  171 => 46,  157 => 35,  150 => 30,  144 => 27,  140 => 26,  137 => 25,  134 => 24,  128 => 22,  126 => 21,  111 => 9,  107 => 7,  97 => 6,  79 => 4,  60 => 3,  37 => 1,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends 'base.html.twig' %}
  206. {% block title %}- Connexion{% endblock %}
  207. {%block menu%}
  208. {%endblock%}
  209. {% block body %}
  210. <main>
  211.     <!-- Section -->
  212.     <section class=\"min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
  213.         <div class=\"container\">
  214.             <div class=\"row justify-content-center\">
  215.                 <div class=\"col-12\">
  216.                     <div class=\"text-center text-md-center mb-5 mt-md-0 text-white\">
  217.                         <h1 class=\"mb-0 h3\">Connexion</h1>
  218.                     </div>
  219.                 </div>
  220.                 <div class=\"col-12 d-flex align-items-center justify-content-center\">
  221.                     <div class=\"signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500\">
  222.                         <span class=\"clearfix\"></span>
  223.                         <form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
  224.                             {% if error %}
  225.                             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  226.                             {% endif %}
  227.                             {% if app.user %}
  228.                             <div class=\"mb-3\">
  229.                                 Vous êtes déjà connecté:<br /> {{ app.user.username }} <br />
  230.                                 <a href=\"{{ path('app_logout') }}\">Déconnecter</a>
  231.                             </div>
  232.                             {% endif %}
  233.                             <div class=\"form-group\">
  234.                                 <div class=\"input-group\">
  235.                                     <div class=\"input-group-prepend\">
  236.                                         <span class=\"input-group-text\"><i class=\"far fa-user\"></i></span>
  237.                                     </div>
  238.                                     <input type=\"email\" class=\"form-control\" id=\"input-email\" name=\"email\" placeholder=\"Email\" value=\"{{ last_username }}\" required>
  239.                                 </div>
  240.                             </div>
  241.                             <div class=\"form-group\">
  242.                                 <div class=\"input-group\">
  243.                                     <div class=\"input-group-prepend\">
  244.                                         <span class=\"input-group-text\"><i class=\"fas fa-unlock-alt\"></i></span>
  245.                                     </div>
  246.                                     <input class=\"form-control\" placeholder=\"Mot de passe\" name=\"password\" type=\"password\" required>
  247.                                 </div>
  248.                             </div>
  249.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  250.                             <div class=\"form-check mb-3\">
  251.                                 <input class=\"form-check-input\" id=\"remember\" type=\"checkbox\">
  252.                                 <label class=\"form-check-label\" for=\"remember\">
  253.                                     Se souvenir de moi
  254.                                 </label>
  255.                             </div>
  256.                             <div class=\"mt-4\">
  257.                                 <input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
  258.                                 <button type=\"submit\" class=\"btn btn-block btn-primary animate-up-2\">Connexion</button>
  259.                             </div>
  260.                         </form>
  261.                         <div class=\"d-flex justify-content-between align-items-center mt-4\">
  262.                             <span>
  263.                                 <small>Vous n'avez pas de compte?</small>
  264.                                 <a href=\"{{ path('home_route', {'routename':'signup'}, relative = false) }}\" class=\"small font-weight-bold\">Créer</a>
  265.                             </span>
  266.                             <div><a href=\"{{ path('app_resetpassword', {}, relative = false) }}\" class=\"small text-right\">Mot de passe oublié?</a></div>
  267.                         </div>
  268.                     </div>
  269.                 </div>
  270.             </div>
  271.         </div>
  272.     </section>
  273. </main>
  274. <!-- Recaptcha -->
  275. <script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
  276. <script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
  277. {% endblock %}
  278. ""security/login.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/security/login.html.twig");
  279.     }
  280. }