var/cache/dev/twig/aa/aab27fabdebc9093c6001dad5f06cd59e18334bd93234c29ac68ba3624f2a42b.php line 40

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_bb4476fa782e3fee6ec468f381fda4f7cfed15c52cdb6102e46a540d07d5bdec 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_class' => [$this'block_body_class'],
  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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 2
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Connexion", [], "messages");
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 3
  62.     public function block_body_class($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  69.         echo "hold-transition login-page";
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 4
  76.     public function block_body($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 5
  84.         echo "<div class=\"login-box\">
  85.   <div class=\"login-logo\">
  86.     <a href=\"";
  87.         // line 7
  88.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
  89.         echo "\">";
  90.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("SysGes", [], "messages");
  91.         echo "</a>
  92.   </div>
  93.   ";
  94.         // line 9
  95.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })())) {
  96.             // line 10
  97.             echo "        <div class=\"alert alert-danger\">";
  98.             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.'10$this->source); })()), "messageKey", [], "any"falsefalsefalse10), 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.'10$this->source); })()), "messageData", [], "any"falsefalsefalse10), "security"), "html"nulltrue);
  99.             echo "</div>
  100.     ";
  101.         }
  102.         // line 12
  103.         echo "
  104.     ";
  105.         // line 13
  106.         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.'13$this->source); })()), "user", [], "any"falsefalsefalse13)) {
  107.             // line 14
  108.             echo "        <div class=\"mb-3\">
  109.             ";
  110.             // line 15
  111.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vous êtes connecté en tant que", [], "messages");
  112.             echo " ";
  113.             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.'15$this->source); })()), "user", [], "any"falsefalsefalse15), "username", [], "any"falsefalsefalse15), "html"nulltrue);
  114.             echo ", <a href=\"";
  115.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  116.             echo "\">";
  117.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Déconnexion", [], "messages");
  118.             echo "</a>
  119.         </div>
  120.     ";
  121.         }
  122.         // line 18
  123.         echo "    <!-- /.login-logo -->
  124.     <div class=\"card\">
  125.         <div class=\"card-body login-card-body\">
  126.             <p class=\"login-box-msg\">";
  127.         // line 21
  128.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Veuillez vous connecter pour accéder à l'application", [], "messages");
  129.         echo "</p>
  130.             <form method=\"post\">
  131.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  132.         // line 24
  133.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  134.         echo "\">
  135.                 <div class=\"input-group mb-3\">
  136.                     <input type=\"text\" name=\"username\" required autofocus value=\"";
  137.         // line 26
  138.         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.'26$this->source); })()), "html"nulltrue);
  139.         echo "\" class=\"form-control\" placeholder=\"";
  140.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Nom utilisateur", [], "messages");
  141.         echo "\">
  142.                     <div class=\"input-group-append\">
  143.                         <div class=\"input-group-text\">
  144.                             <span class=\"fas fa-envelope\"></span>
  145.                         </div>
  146.                     </div>
  147.                 </div>
  148.                 <div class=\"input-group mb-3\">
  149.                     <input type=\"password\" name=\"password\" class=\"form-control\" required placeholder=\"";
  150.         // line 34
  151.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mot de passe", [], "messages");
  152.         echo "\">
  153.                     <div class=\"input-group-append\">
  154.                         <div class=\"input-group-text\">
  155.                             <span class=\"fas fa-lock\"></span>
  156.                         </div>
  157.                     </div>
  158.                 </div>
  159.                 <div class=\"row\">
  160.                     <div class=\"col-7\">
  161.                         <div class=\"icheck-primary\">
  162.                             <input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
  163.                             <label for=\"remember\">
  164.                                 ";
  165.         // line 46
  166.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mémoriser", [], "messages");
  167.         // line 47
  168.         echo "                                </label>
  169.                             </div>
  170.                         </div>
  171.                         <!-- /.col -->
  172.                         <div class=\"col-5\">
  173.                             <button type=\"submit\" class=\"btn btn-primary btn-block\">";
  174.         // line 52
  175.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Connexion", [], "messages");
  176.         echo "</button>
  177.                         </div>
  178.                         <!-- /.col -->
  179.                     </div>
  180.                 </form>
  181.                
  182.                 
  183.             </div>
  184.             <!-- /.login-card-body -->
  185.         </div>
  186.     </div>
  187.     <!-- /.login-box -->
  188. ";
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "security/login.html.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         return array (  200 => 52,  193 => 47,  191 => 46,  176 => 34,  163 => 26,  158 => 24,  152 => 21,  147 => 18,  135 => 15,  132 => 14,  130 => 13,  127 => 12,  121 => 10,  119 => 9,  112 => 7,  108 => 5,  98 => 4,  79 => 3,  60 => 2,  37 => 1,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("{% extends 'base.html.twig' %}
  209. {% block title %}{% trans %}Connexion{% endtrans %}{% endblock %}
  210. {% block body_class %}hold-transition login-page{% endblock %}
  211. {% block body %}
  212. <div class=\"login-box\">
  213.   <div class=\"login-logo\">
  214.     <a href=\"{{ path('dashboard') }}\">{% trans %}SysGes{% endtrans %}</a>
  215.   </div>
  216.   {% if error %}
  217.         <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  218.     {% endif %}
  219.     {% if app.user %}
  220.         <div class=\"mb-3\">
  221.             {% trans %}Vous êtes connecté en tant que{% endtrans %} {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">{% trans %}Déconnexion{% endtrans %}</a>
  222.         </div>
  223.     {% endif %}
  224.     <!-- /.login-logo -->
  225.     <div class=\"card\">
  226.         <div class=\"card-body login-card-body\">
  227.             <p class=\"login-box-msg\">{% trans %}Veuillez vous connecter pour accéder à l'application{% endtrans %}</p>
  228.             <form method=\"post\">
  229.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  230.                 <div class=\"input-group mb-3\">
  231.                     <input type=\"text\" name=\"username\" required autofocus value=\"{{ last_username }}\" class=\"form-control\" placeholder=\"{% trans %}Nom utilisateur{% endtrans %}\">
  232.                     <div class=\"input-group-append\">
  233.                         <div class=\"input-group-text\">
  234.                             <span class=\"fas fa-envelope\"></span>
  235.                         </div>
  236.                     </div>
  237.                 </div>
  238.                 <div class=\"input-group mb-3\">
  239.                     <input type=\"password\" name=\"password\" class=\"form-control\" required placeholder=\"{% trans %}Mot de passe{% endtrans %}\">
  240.                     <div class=\"input-group-append\">
  241.                         <div class=\"input-group-text\">
  242.                             <span class=\"fas fa-lock\"></span>
  243.                         </div>
  244.                     </div>
  245.                 </div>
  246.                 <div class=\"row\">
  247.                     <div class=\"col-7\">
  248.                         <div class=\"icheck-primary\">
  249.                             <input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
  250.                             <label for=\"remember\">
  251.                                 {% trans %}Mémoriser{% endtrans %}
  252.                                 </label>
  253.                             </div>
  254.                         </div>
  255.                         <!-- /.col -->
  256.                         <div class=\"col-5\">
  257.                             <button type=\"submit\" class=\"btn btn-primary btn-block\">{% trans %}Connexion{% endtrans %}</button>
  258.                         </div>
  259.                         <!-- /.col -->
  260.                     </div>
  261.                 </form>
  262.                
  263.                 
  264.             </div>
  265.             <!-- /.login-card-body -->
  266.         </div>
  267.     </div>
  268.     <!-- /.login-box -->
  269. {% endblock %}
  270. ""security/login.html.twig""/var/www/vhosts/dloc.adelysdev.com/dev/templates/security/login.html.twig");
  271.     }
  272. }