var/cache/dev/twig/c1/c11970b6418dd1bce9210e0fbc80cfd70b80772f3141f291880c9dcae72f21dc.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_69a2d807c94f5b780878c2c650826a392067b7897fc1be65e7df43b0f887382f 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.             'body' => [$this'block_body'],
  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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Connexion";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "<form action=\"";
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  71.         echo "\" method=\"POST\">
  72.     ";
  73.         // line 7
  74.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'7$this->source); })())) {
  75.             // line 8
  76.             echo "        <div class=\"alert alert-danger\">";
  77.             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.'8$this->source); })()), "messageKey", [], "any"falsefalsefalse8), 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.'8$this->source); })()), "messageData", [], "any"falsefalsefalse8), "security"), "html"nulltrue);
  78.             echo "</div>
  79.     ";
  80.         }
  81.         // line 10
  82.         echo "
  83.     ";
  84.         // line 11
  85.         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.'11$this->source); })()), "user", [], "any"falsefalsefalse11)) {
  86.             // line 12
  87.             echo "        <div class=\"mb-3\">
  88.             Vous êtes déjà connecté en tant que <strong>";
  89.             // line 13
  90.             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.'13$this->source); })()), "user", [], "any"falsefalsefalse13), "username", [], "any"falsefalsefalse13), "html"nulltrue);
  91.             echo "</strong>, <a href=\"";
  92.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  93.             echo "\">Se déconnecter</a>
  94.         </div>
  95.     ";
  96.         }
  97.         // line 16
  98.         echo "
  99.     <div class=\"row\">
  100.         <div class=\"offset-3 col-6\">
  101.             <div class=\"text-center\">
  102.                 <img src=\"";
  103.         // line 20
  104.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo_transparent.png"), "html"nulltrue);
  105.         echo "\" height=\"130vh\"/><br/>
  106.                 <h1 class=\"h3 mb-3 font-weight-normal\">Connexion</h1>
  107.             </div>
  108.             <label for=\"_username\" class=\"sr-only\">Email</label>
  109.             <input type=\"email\" id=\"_username\" name=\"_username\" class=\"form-control\" placeholder=\"Email\" required autofocus>
  110.             <br/>
  111.             <label for=\"_password\" class=\"sr-only\">Mot de Passe</label>
  112.             <input type=\"password\" id=\"_password\" name=\"_password\" class=\"form-control\" placeholder=\"Mot de passe\" required>
  113.             <br/>
  114.         </div>
  115.     </div>
  116.     <div class=\"text-center mt-2\">
  117.         <button class=\"btn btn-lg btn-primary mb-3\" type=\"submit\">Connexion</button>
  118.         <br/>
  119.         <a href=\"";
  120.         // line 35
  121.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reset_password");
  122.         echo "\">Mot de passe oublié ?</a>
  123.     </div>
  124. </form>
  125. ";
  126.         
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.     }
  131.     public function getTemplateName()
  132.     {
  133.         return "security/login.html.twig";
  134.     }
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     public function getDebugInfo()
  140.     {
  141.         return array (  141 => 35,  123 => 20,  117 => 16,  109 => 13,  106 => 12,  104 => 11,  101 => 10,  95 => 8,  93 => 7,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  142.     }
  143.     public function getSourceContext()
  144.     {
  145.         return new Source("{% extends 'base.html.twig' %}
  146. {% block title %}Connexion{% endblock %}
  147. {% block body %}
  148. <form action=\"{{ path('app_login') }}\" method=\"POST\">
  149.     {% if error %}
  150.         <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  151.     {% endif %}
  152.     {% if app.user %}
  153.         <div class=\"mb-3\">
  154.             Vous êtes déjà connecté en tant que <strong>{{ app.user.username }}</strong>, <a href=\"{{ path('app_logout') }}\">Se déconnecter</a>
  155.         </div>
  156.     {% endif %}
  157.     <div class=\"row\">
  158.         <div class=\"offset-3 col-6\">
  159.             <div class=\"text-center\">
  160.                 <img src=\"{{ asset('img/logo_transparent.png') }}\" height=\"130vh\"/><br/>
  161.                 <h1 class=\"h3 mb-3 font-weight-normal\">Connexion</h1>
  162.             </div>
  163.             <label for=\"_username\" class=\"sr-only\">Email</label>
  164.             <input type=\"email\" id=\"_username\" name=\"_username\" class=\"form-control\" placeholder=\"Email\" required autofocus>
  165.             <br/>
  166.             <label for=\"_password\" class=\"sr-only\">Mot de Passe</label>
  167.             <input type=\"password\" id=\"_password\" name=\"_password\" class=\"form-control\" placeholder=\"Mot de passe\" required>
  168.             <br/>
  169.         </div>
  170.     </div>
  171.     <div class=\"text-center mt-2\">
  172.         <button class=\"btn btn-lg btn-primary mb-3\" type=\"submit\">Connexion</button>
  173.         <br/>
  174.         <a href=\"{{ path('reset_password') }}\">Mot de passe oublié ?</a>
  175.     </div>
  176. </form>
  177. {% endblock %}
  178. ""security/login.html.twig""/var/www/lfplfff/www/preprod.lfpldeclaration/templates/security/login.html.twig");
  179.     }
  180. }