var/cache/dev/twig/64/641c349bbec077d26b80f35ed38c0c51.php line 43

Open in your IDE?
  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. /* security/login.html.twig */
  16. class __TwigTemplate_05ed71d0aa05a2ecf7a62b5c08a6a933 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. 'body' => [$this, 'block_body'],
  29. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 3
  34. return "layout.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  43. $this->parent = $this->load("layout.html.twig", 3);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 5
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_body(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  59. // line 6
  60. yield "<tbody>
  61. <tr>
  62. <td style=\"padding: 5px;\">
  63. ";
  64. // line 11
  65. yield " ";
  66. if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 11, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  67. // line 12
  68. yield " <div class=\"alert alert-error\">Vos identifiants sont incorrects</div>
  69. ";
  70. }
  71. // line 14
  72. yield "
  73. ";
  74. // line 16
  75. yield " <form action=\"";
  76. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_check");
  77. yield "\" method=\"post\">
  78. <strong>Afin d'accéder aux fonctionnalités de l'extranet Malys, vous devez vous identifier : </strong>
  79. <table width=\"350\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
  80. <tbody><tr>
  81. <td>&nbsp;</td>
  82. <td>&nbsp;</td>
  83. </tr>
  84. <tr>
  85. <td width=\"120\"><label for=\"username\">Utilisateur :</label></td>
  86. <td width=\"286\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"";
  87. // line 25
  88. 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.', 25, $this->source); })()), "html", null, true);
  89. yield "\" /></td>
  90. </tr>
  91. <tr>
  92. <td><label for=\"password\">Mot de passe :</label></td>
  93. <td><input type=\"password\" id=\"password\" name=\"_password\" /></td>
  94. </tr>
  95. <tr>
  96. <td>&nbsp;</td>
  97. <td> <input type=\"submit\" value=\"Valider\" />
  98. </td>
  99. </tr>
  100. </tbody></table>
  101. </form>
  102. </td>
  103. </tr>
  104. </tbody>
  105. ";
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108. yield from [];
  109. }
  110. /**
  111. * @codeCoverageIgnore
  112. */
  113. public function getTemplateName(): string
  114. {
  115. return "security/login.html.twig";
  116. }
  117. /**
  118. * @codeCoverageIgnore
  119. */
  120. public function isTraitable(): bool
  121. {
  122. return false;
  123. }
  124. /**
  125. * @codeCoverageIgnore
  126. */
  127. public function getDebugInfo(): array
  128. {
  129. return array ( 105 => 25, 92 => 16, 89 => 14, 85 => 12, 82 => 11, 76 => 6, 63 => 5, 40 => 3,);
  130. }
  131. public function getSourceContext(): Source
  132. {
  133. return new Source("{# src/Malys/UserBundle/Resources/views/Security/login.html.twig #}
  134. {% extends \"layout.html.twig\" %}
  135. {% block body %}
  136. <tbody>
  137. <tr>
  138. <td style=\"padding: 5px;\">
  139. {# S'il y a une erreur, on l'affiche dans un joli cadre #}
  140. {% if error %}
  141. <div class=\"alert alert-error\">Vos identifiants sont incorrects</div>
  142. {% endif %}
  143. {# Le formulaire, avec URL de soumission vers la route « login_check » comme on l'a vu #}
  144. <form action=\"{{ path('login_check') }}\" method=\"post\">
  145. <strong>Afin d'accéder aux fonctionnalités de l'extranet Malys, vous devez vous identifier : </strong>
  146. <table width=\"350\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
  147. <tbody><tr>
  148. <td>&nbsp;</td>
  149. <td>&nbsp;</td>
  150. </tr>
  151. <tr>
  152. <td width=\"120\"><label for=\"username\">Utilisateur :</label></td>
  153. <td width=\"286\"><input type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" /></td>
  154. </tr>
  155. <tr>
  156. <td><label for=\"password\">Mot de passe :</label></td>
  157. <td><input type=\"password\" id=\"password\" name=\"_password\" /></td>
  158. </tr>
  159. <tr>
  160. <td>&nbsp;</td>
  161. <td> <input type=\"submit\" value=\"Valider\" />
  162. </td>
  163. </tr>
  164. </tbody></table>
  165. </form>
  166. </td>
  167. </tr>
  168. </tbody>
  169. {% endblock %}
  170. ", "security/login.html.twig", "/var/www/malys_alpha/templates/security/login.html.twig");
  171. }
  172. }