var/cache/dev/twig/5d/5d0ea903201922da77708c834debf30c.php line 54

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* login/index.html.twig */
  16. class __TwigTemplate_cf09447e611668b665ddfc41e76bec01 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""login/index.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Lingèvres";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 7
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 8
  81.         yield "    ";
  82.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'8$this->source); })())) {
  83.             // line 9
  84.             yield "        <div>";
  85.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })()), "messageKey", [], "any"falsefalsefalse9), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })()), "messageData", [], "any"falsefalsefalse9), "security"), "html"nulltrue);
  86.             yield "</div>
  87.     ";
  88.         }
  89.         // line 11
  90.         yield "
  91.     <form action=\"";
  92.         // line 12
  93.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  94.         yield "\" method=\"post\">
  95.         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  96.         // line 13
  97.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  98.         yield "\">
  99.         <div class=\"row\" style=\"margin-top:100px\">
  100.             <div class=\"col-sm-4\">
  101.             </div>
  102.             <div class=\"col-sm-2\">
  103.                 <label for=\"username\">Identifiant :</label>
  104.             </div>
  105.             <div class=\"col-sm-2\">
  106.                 <input type=\"text\" id=\"username\" name=\"_username\" value=\"";
  107.         // line 22
  108.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'22$this->source); })()), "html"nulltrue);
  109.         yield "\" class=\"form-control\">
  110.             </div>
  111.         </div>
  112.         <br />
  113.         <div class=\"row\">
  114.             <div class=\"col-sm-4\">
  115.             </div>
  116.             <div class=\"col-sm-2\">
  117.                 <label for=\"password\">Mot de passe:</label>
  118.             </div>
  119.             <div class=\"col-sm-2\">
  120.                 <input type=\"password\" id=\"password\" name=\"_password\" class=\"form-control\">
  121.             </div>
  122.         </div>
  123.         <br />
  124.         <div class=\"row\">
  125.             <div class=\"col-sm-4\">
  126.             </div>
  127.             <div class=\"col-sm-4 text-center\">
  128.                 <input type=\"submit\" class=\"btn btn-primary\" value=\"Connexion\">
  129.             </div>
  130.         </div>
  131.         ";
  132.         // line 48
  133.         yield "
  134.     </form>
  135. ";
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.         
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140.         yield from [];
  141.     }
  142.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function getTemplateName(): string
  146.     {
  147.         return "login/index.html.twig";
  148.     }
  149.     /**
  150.      * @codeCoverageIgnore
  151.      */
  152.     public function isTraitable(): bool
  153.     {
  154.         return false;
  155.     }
  156.     /**
  157.      * @codeCoverageIgnore
  158.      */
  159.     public function getDebugInfo(): array
  160.     {
  161.         return array (  155 => 48,  128 => 22,  116 => 13,  112 => 12,  109 => 11,  103 => 9,  100 => 8,  87 => 7,  64 => 3,  41 => 1,);
  162.     }
  163.     public function getSourceContext(): Source
  164.     {
  165.         return new Source("{% extends 'base.html.twig' %}
  166. {% block title %}Lingèvres{% endblock %}
  167. {% block body %}
  168.     {% if error %}
  169.         <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  170.     {% endif %}
  171.     <form action=\"{{ path('app_login') }}\" method=\"post\">
  172.         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  173.         <div class=\"row\" style=\"margin-top:100px\">
  174.             <div class=\"col-sm-4\">
  175.             </div>
  176.             <div class=\"col-sm-2\">
  177.                 <label for=\"username\">Identifiant :</label>
  178.             </div>
  179.             <div class=\"col-sm-2\">
  180.                 <input type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" class=\"form-control\">
  181.             </div>
  182.         </div>
  183.         <br />
  184.         <div class=\"row\">
  185.             <div class=\"col-sm-4\">
  186.             </div>
  187.             <div class=\"col-sm-2\">
  188.                 <label for=\"password\">Mot de passe:</label>
  189.             </div>
  190.             <div class=\"col-sm-2\">
  191.                 <input type=\"password\" id=\"password\" name=\"_password\" class=\"form-control\">
  192.             </div>
  193.         </div>
  194.         <br />
  195.         <div class=\"row\">
  196.             <div class=\"col-sm-4\">
  197.             </div>
  198.             <div class=\"col-sm-4 text-center\">
  199.                 <input type=\"submit\" class=\"btn btn-primary\" value=\"Connexion\">
  200.             </div>
  201.         </div>
  202.         {# If you want to control the URL the user is redirected to on success
  203.         <input type=\"hidden\" name=\"_target_path\" value=\"/account\"> #}
  204.     </form>
  205. {% endblock %}""login/index.html.twig""/var/www/html/lingevres/templates/login/index.html.twig");
  206.     }
  207. }