var/cache/dev/twig/ab/abd6323fa9a453f17ae47c9c7d9416b7.php line 49

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_462facc675938b29233d1d4ebc349cea 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.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Connexion";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_content($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         // line 6
  69.         echo "    <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" style=\"background-image: url(";
  70.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/cbrc/imagefond.jpg"), "html"nulltrue);
  71.         echo ")\">
  72.         <div class=\"s-blur\"></div>
  73.         <div class=\"container\">
  74.             <div class=\"row\">
  75.                 <div class=\"col-md-12 text-center\">
  76.                     <h1><i class=\"far fa-user mr-3\"></i>Connexion</h1>
  77.                 </div>
  78.             </div>
  79.         </div>
  80.     </section>
  81.     <section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
  82.         <div class=\"container mb-5\">
  83.             <div class=\"row justify-content-around \">
  84.                 <div class=\"col-lg-6 col-md-8 col-12 text-center\">
  85.                     <div class=\"card p-2 woocommerce-EditAccountForm\">
  86.                         <div class=\"card-body\">
  87.                             <form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
  88.                                 ";
  89.         // line 23
  90.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'23$this->source); })())) {
  91.             // line 24
  92.             echo "                                    <div class=\"alert alert-danger\">";
  93.             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.'24$this->source); })()), "messageKey", [], "any"falsefalsefalse24), 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.'24$this->source); })()), "messageData", [], "any"falsefalsefalse24), "security"), "html"nulltrue);
  94.             echo "</div>
  95.                                 ";
  96.         }
  97.         // line 26
  98.         echo "
  99.                                 ";
  100.         // line 27
  101.         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.'27$this->source); })()), "user", [], "any"falsefalsefalse27)) {
  102.             // line 28
  103.             echo "                                    <div class=\"mb-3\">
  104.                                         Vous êtes connecté comme ";
  105.             // line 29
  106.             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.'29$this->source); })()), "user", [], "any"falsefalsefalse29), "username", [], "any"falsefalsefalse29), "html"nulltrue);
  107.             echo ", <a
  108.                                                 href=\"";
  109.             // line 30
  110.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  111.             echo "\">Déconnexion</a>
  112.                                     </div>
  113.                                 ";
  114.         }
  115.         // line 33
  116.         echo "                                <label for=\"inputEmail\">Email</label>
  117.                                 <input type=\"email\" value=\"";
  118.         // line 34
  119.         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.'34$this->source); })()), "html"nulltrue);
  120.         echo "\" name=\"email\" id=\"inputEmail\"
  121.                                        class=\"form-control\"
  122.                                        autocomplete=\"email\" required autofocus>
  123.                                 <label for=\"inputPassword\">Mot de passe</label>
  124.                                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
  125.                                        autocomplete=\"current-password\" required>
  126.                                 <input type=\"hidden\" name=\"_csrf_token\"
  127.                                        value=\"";
  128.         // line 42
  129.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  130.         echo "\"
  131.                                 >
  132.                                 <div class=\"checkbox mb-3\">
  133.                                     <label>
  134.                                         <input type=\"checkbox\" name=\"_remember_me\"> Se souvenir de moi
  135.                                     </label>
  136.                                 </div>
  137.                                 <input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
  138.                                 <button class=\"btn btn-maincolor\" type=\"submit\">
  139.                                     Connexion
  140.                                 </button>
  141.                             </form>
  142.                             <br/>
  143.                             <div class=\"text-left\">
  144.                                 <small>Vous n'avez pas de compte? <a href=\"";
  145.         // line 57
  146.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signup", [], false);
  147.         echo "\" ><u>Créer un compte</u></a></small> <br/>
  148.                                 <small><a href=\"";
  149.         // line 58
  150.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_resetpassword", [], false);
  151.         echo "\" ><u>Mot de passe oublié</u></a></small>
  152.                             </div>
  153.                         </div>
  154.                     </div>
  155.                 </div>
  156.             </div>
  157.         </div>
  158.     </section>
  159.     <script src=\"https://www.google.com/recaptcha/api.js?render=6Ldhw70gAAAAAF1Nk2Cmf6svfwvqwVIzdPPUcmAx\"></script>
  160.     <script src=\"";
  161.         // line 69
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/recaptcha.js"), "html"nulltrue);
  163.         echo "\"></script>
  164. ";
  165.         
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "security/login.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         return array (  185 => 69,  171 => 58,  167 => 57,  149 => 42,  138 => 34,  135 => 33,  129 => 30,  125 => 29,  122 => 28,  120 => 27,  117 => 26,  111 => 24,  109 => 23,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("{% extends 'base.html.twig' %}
  185. {% block title %}Connexion{% endblock %}
  186. {% block content %}
  187.     <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" style=\"background-image: url({{ asset('assets/images/cbrc/imagefond.jpg') }})\">
  188.         <div class=\"s-blur\"></div>
  189.         <div class=\"container\">
  190.             <div class=\"row\">
  191.                 <div class=\"col-md-12 text-center\">
  192.                     <h1><i class=\"far fa-user mr-3\"></i>Connexion</h1>
  193.                 </div>
  194.             </div>
  195.         </div>
  196.     </section>
  197.     <section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
  198.         <div class=\"container mb-5\">
  199.             <div class=\"row justify-content-around \">
  200.                 <div class=\"col-lg-6 col-md-8 col-12 text-center\">
  201.                     <div class=\"card p-2 woocommerce-EditAccountForm\">
  202.                         <div class=\"card-body\">
  203.                             <form method=\"post\" name=\"login\" onsubmit=\"return onloginsubmit(event);\">
  204.                                 {% if error %}
  205.                                     <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  206.                                 {% endif %}
  207.                                 {% if app.user %}
  208.                                     <div class=\"mb-3\">
  209.                                         Vous êtes connecté comme {{ app.user.username }}, <a
  210.                                                 href=\"{{ path('app_logout') }}\">Déconnexion</a>
  211.                                     </div>
  212.                                 {% endif %}
  213.                                 <label for=\"inputEmail\">Email</label>
  214.                                 <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\"
  215.                                        class=\"form-control\"
  216.                                        autocomplete=\"email\" required autofocus>
  217.                                 <label for=\"inputPassword\">Mot de passe</label>
  218.                                 <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
  219.                                        autocomplete=\"current-password\" required>
  220.                                 <input type=\"hidden\" name=\"_csrf_token\"
  221.                                        value=\"{{ csrf_token('authenticate') }}\"
  222.                                 >
  223.                                 <div class=\"checkbox mb-3\">
  224.                                     <label>
  225.                                         <input type=\"checkbox\" name=\"_remember_me\"> Se souvenir de moi
  226.                                     </label>
  227.                                 </div>
  228.                                 <input type=\"hidden\" id=\"login_recaptchatoken\" name=\"login_recaptchatoken\" required='false' />
  229.                                 <button class=\"btn btn-maincolor\" type=\"submit\">
  230.                                     Connexion
  231.                                 </button>
  232.                             </form>
  233.                             <br/>
  234.                             <div class=\"text-left\">
  235.                                 <small>Vous n'avez pas de compte? <a href=\"{{ path('signup', {}, relative = false) }}\" ><u>Créer un compte</u></a></small> <br/>
  236.                                 <small><a href=\"{{ path('app_resetpassword', {}, relative = false) }}\" ><u>Mot de passe oublié</u></a></small>
  237.                             </div>
  238.                         </div>
  239.                     </div>
  240.                 </div>
  241.             </div>
  242.         </div>
  243.     </section>
  244.     <script src=\"https://www.google.com/recaptcha/api.js?render=6Ldhw70gAAAAAF1Nk2Cmf6svfwvqwVIzdPPUcmAx\"></script>
  245.     <script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
  246. {% endblock %}
  247. ""security/login.html.twig""/home/maixmebouz/www/dev/cbrc/templates/security/login.html.twig");
  248.     }
  249. }