var/cache/dev/twig/39/39da77d164c5c073efa5832d770e0572.php line 39

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_1ef3271fddd747a3293c01a4b724cbea 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 administrateur";
  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=\"fullscreen\">
  70.         <div class=\"container\">
  71.             <div class=\"card\">
  72.                 <div class=\"container\">
  73.                     <form method=\"post\">
  74.                         ";
  75.         // line 11
  76.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'11$this->source); })())) {
  77.             // line 12
  78.             echo "                            <div class=\"alert alert-danger\">";
  79.             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.'12$this->source); })()), "messageKey", [], "any"falsefalsefalse12), 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.'12$this->source); })()), "messageData", [], "any"falsefalsefalse12), "security"), "html"nulltrue);
  80.             echo "</div>
  81.                         ";
  82.         }
  83.         // line 14
  84.         echo "
  85.                         ";
  86.         // line 15
  87.         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.'15$this->source); })()), "user", [], "any"falsefalsefalse15)) {
  88.             // line 16
  89.             echo "                            <div class=\"mb-3\">
  90.                                 Vous êtes déjà connecté sous le compte de  ";
  91.             // line 17
  92.             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.'17$this->source); })()), "user", [], "any"falsefalsefalse17), "username", [], "any"falsefalsefalse17), "html"nulltrue);
  93.             echo ", <a href=\"";
  94.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  95.             echo "\"> Se déconnecter</a>
  96.                             </div>
  97.                         ";
  98.         }
  99.         // line 20
  100.         echo "
  101.                         <h1 class=\"h3 mb-3 font-weight-normal\">Connection Administrateur</h1>
  102.                         <div class=\"form-group\">
  103.                             <label for=\"inputUsername\">Compte </label>
  104.                             <input type=\"text\" value=\"admin\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  105.                             <label for=\"inputPassword\">Mot de passe</label>
  106.                             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" ";
  107.         // line 26
  108.         if ((array_key_exists("password"$context) &&  !(null === (isset($context["password"]) || array_key_exists("password"$context) ? $context["password"] : (function () { throw new RuntimeError('Variable "password" does not exist.'26$this->source); })())))) {
  109.             echo "value=\"";
  110.             echo twig_escape_filter($this->env, (isset($context["password"]) || array_key_exists("password"$context) ? $context["password"] : (function () { throw new RuntimeError('Variable "password" does not exist.'26$this->source); })()), "html"nulltrue);
  111.             echo "\"";
  112.         }
  113.         echo " required>
  114.                             <input type=\"hidden\" name=\"_csrf_token\"
  115.                                    value=\"";
  116.         // line 29
  117.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  118.         echo "\">
  119.                         </div>
  120.                         ";
  121.         // line 43
  122.         echo "
  123.                         <button class=\"btn btn-primary\" type=\"submit\">
  124.                             Se connecter
  125.                         </button>
  126.                     </form>
  127.                 </div>
  128.             </div>
  129.         </div>
  130.     </section>
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "security/login.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  144 => 43,  137 => 29,  127 => 26,  119 => 20,  111 => 17,  108 => 16,  106 => 15,  103 => 14,  97 => 12,  95 => 11,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'base.html.twig' %}
  152. {% block title %}Connexion administrateur{% endblock %}
  153. {% block content %}
  154.     <section class=\"fullscreen\">
  155.         <div class=\"container\">
  156.             <div class=\"card\">
  157.                 <div class=\"container\">
  158.                     <form method=\"post\">
  159.                         {% if error %}
  160.                             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  161.                         {% endif %}
  162.                         {% if app.user %}
  163.                             <div class=\"mb-3\">
  164.                                 Vous êtes déjà connecté sous le compte de  {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\"> Se déconnecter</a>
  165.                             </div>
  166.                         {% endif %}
  167.                         <h1 class=\"h3 mb-3 font-weight-normal\">Connection Administrateur</h1>
  168.                         <div class=\"form-group\">
  169.                             <label for=\"inputUsername\">Compte </label>
  170.                             <input type=\"text\" value=\"admin\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  171.                             <label for=\"inputPassword\">Mot de passe</label>
  172.                             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" {% if password is defined and password is not null %}value=\"{{ password }}\"{% endif %} required>
  173.                             <input type=\"hidden\" name=\"_csrf_token\"
  174.                                    value=\"{{ csrf_token('authenticate') }}\">
  175.                         </div>
  176.                         {#
  177.                         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  178.                         See https://symfony.com/doc/current/security/remember_me.html
  179.                         <div class=\"checkbox mb-3\">
  180.                             <label>
  181.                                 <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  182.                             </label>
  183.                         </div>
  184.                         #}
  185.                         <button class=\"btn btn-primary\" type=\"submit\">
  186.                             Se connecter
  187.                         </button>
  188.                     </form>
  189.                 </div>
  190.             </div>
  191.         </div>
  192.     </section>
  193. {% endblock %}
  194. ""security/login.html.twig""/var/www/vhosts/bsbroyalconstruction.fr/kb-stone.spidertec.fr/httpdocs/templates/security/login.html.twig");
  195.     }
  196. }