var/cache/dev/twig/be/be00b744b82d9adcad794246e7d1d06d.php line 44

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_ee83995698615cae249ebd13e90a997e 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 "layout/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", "security/login.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", "security/login.html.twig"));
  44. $this->parent = $this->load("layout/base.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 3
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_title(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  60. yield "Log in!";
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63. yield from [];
  64. }
  65. // line 5
  66. /**
  67. * @return iterable<null|scalar|\Stringable>
  68. */
  69. public function block_body(array $context, array $blocks = []): iterable
  70. {
  71. $macros = $this->macros;
  72. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  76. // line 6
  77. yield " <div class=\"section-title\">
  78. <h2>Sign In</h2>
  79. </div>
  80. <div class=\"row justify-content-center mt-3 mb-3\">
  81. <div class=\"col-md-6 col-sm-12\">
  82. <form method=\"post\">
  83. ";
  84. // line 12
  85. if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 12, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  86. // line 13
  87. yield " <div class=\"alert alert-danger\">";
  88. 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.', 13, $this->source); })()), "messageKey", [], "any", false, false, false, 13), 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.', 13, $this->source); })()), "messageData", [], "any", false, false, false, 13), "security"), "html", null, true);
  89. yield "</div>
  90. ";
  91. }
  92. // line 15
  93. yield "
  94. <div class=\"card\">
  95. <div class=\"card-body\">
  96. <div class=\"mb-3\">
  97. <label for=\"username\" class=\"form-label\">Username</label>
  98. <input type=\"text\" value=\"";
  99. // line 20
  100. 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.', 20, $this->source); })()), "html", null, true);
  101. yield "\" name=\"username\" id=\"username\" class=\"form-control\" placeholder=\"Username\" required autofocus>
  102. </div>
  103. <div class=\"mb-3\">
  104. <label for=\"inputPassword\" class=\"form-label\">Password</label>
  105. <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  106. </div>
  107. <input type=\"hidden\" name=\"_csrf_token\" class=\"\"
  108. value=\"";
  109. // line 27
  110. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  111. yield "\"
  112. >
  113. <input type=\"hidden\" name=\"_target_path\" value=\"";
  114. // line 30
  115. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  116. yield "\" />
  117. <div class=\"d-flex justify-content-between flex-wrap\">
  118. <div class=\"checkbox mb-3\">
  119. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked/>
  120. <label for=\"remember_me\">Remember Me</label>
  121. </div>
  122. <a href=\"";
  123. // line 37
  124. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  125. yield "\" class=\"btn btn-link btn-sm\">
  126. <i class=\"fa fa-key\"></i> Forgot Username or Password?
  127. </a>
  128. </div>
  129. <button class=\"btn btn-primary w-100\" type=\"submit\">
  130. SIGN IN
  131. </button>
  132. <div class=\"text-center m-2\">
  133. <a href=\"";
  134. // line 46
  135. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registration");
  136. yield "\" class=\"btn btn-link\">First time here? Create account</a>
  137. </div>
  138. </div>
  139. </div>
  140. </form>
  141. </div>
  142. </div>
  143. ";
  144. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146. yield from [];
  147. }
  148. /**
  149. * @codeCoverageIgnore
  150. */
  151. public function getTemplateName(): string
  152. {
  153. return "security/login.html.twig";
  154. }
  155. /**
  156. * @codeCoverageIgnore
  157. */
  158. public function isTraitable(): bool
  159. {
  160. return false;
  161. }
  162. /**
  163. * @codeCoverageIgnore
  164. */
  165. public function getDebugInfo(): array
  166. {
  167. return array ( 161 => 46, 149 => 37, 139 => 30, 133 => 27, 123 => 20, 116 => 15, 110 => 13, 108 => 12, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
  168. }
  169. public function getSourceContext(): Source
  170. {
  171. return new Source("{% extends 'layout/base.html.twig' %}
  172. {% block title %}Log in!{% endblock %}
  173. {% block body %}
  174. <div class=\"section-title\">
  175. <h2>Sign In</h2>
  176. </div>
  177. <div class=\"row justify-content-center mt-3 mb-3\">
  178. <div class=\"col-md-6 col-sm-12\">
  179. <form method=\"post\">
  180. {% if error %}
  181. <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  182. {% endif %}
  183. <div class=\"card\">
  184. <div class=\"card-body\">
  185. <div class=\"mb-3\">
  186. <label for=\"username\" class=\"form-label\">Username</label>
  187. <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"username\" class=\"form-control\" placeholder=\"Username\" required autofocus>
  188. </div>
  189. <div class=\"mb-3\">
  190. <label for=\"inputPassword\" class=\"form-label\">Password</label>
  191. <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required>
  192. </div>
  193. <input type=\"hidden\" name=\"_csrf_token\" class=\"\"
  194. value=\"{{ csrf_token('authenticate') }}\"
  195. >
  196. <input type=\"hidden\" name=\"_target_path\" value=\"{{ path('sonata_admin_dashboard') }}\" />
  197. <div class=\"d-flex justify-content-between flex-wrap\">
  198. <div class=\"checkbox mb-3\">
  199. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" checked/>
  200. <label for=\"remember_me\">Remember Me</label>
  201. </div>
  202. <a href=\"{{ path('app_forgot_password_request') }}\" class=\"btn btn-link btn-sm\">
  203. <i class=\"fa fa-key\"></i> Forgot Username or Password?
  204. </a>
  205. </div>
  206. <button class=\"btn btn-primary w-100\" type=\"submit\">
  207. SIGN IN
  208. </button>
  209. <div class=\"text-center m-2\">
  210. <a href=\"{{ path('registration') }}\" class=\"btn btn-link\">First time here? Create account</a>
  211. </div>
  212. </div>
  213. </div>
  214. </form>
  215. </div>
  216. </div>
  217. {% endblock %}
  218. ", "security/login.html.twig", "/home/jewelryrewards/staging/templates/security/login.html.twig");
  219. }
  220. }