var/cache/dev/twig/81/8193c8f93438aab70fa4a19cf65cd6c4.php line 54

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. /* Auth/App/login.html.twig */
  16. class __TwigTemplate_935e5551b9254a5770be3a7220952f05 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. 'content' => [$this, 'block_content'],
  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", "Auth/App/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", "Auth/App/login.html.twig"));
  44. $this->parent = $this->loadTemplate("base.html.twig", "Auth/App/login.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 5
  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 7
  66. /**
  67. * @return iterable<null|scalar|\Stringable>
  68. */
  69. public function block_content(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", "content"));
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  76. // line 8
  77. yield " <div class=\"content\">
  78. <div class=\"row\">
  79. ";
  80. // line 10
  81. if ((array_key_exists("error", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 10, $this->source); })())))) {
  82. // line 11
  83. yield " <div>";
  84. 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.', 11, $this->source); })()), "messageKey", [], "any", false, false, false, 11), 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.', 11, $this->source); })()), "messageData", [], "any", false, false, false, 11), "security"), "html", null, true);
  85. yield "</div>
  86. ";
  87. }
  88. // line 13
  89. yield "
  90. <form class=\"login-form\"
  91. action=\"";
  92. // line 15
  93. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction("login", ["_locale" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "request", [], "any", false, false, false, 15), "locale", [], "any", false, false, false, 15)]);
  94. yield "\"
  95. method=\"post\">
  96. <h1>";
  97. // line 17
  98. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("welcome", [], "Auth"), "html", null, true);
  99. yield "</h1>
  100. <p>";
  101. // line 18
  102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("welcome_message", [], "Auth"), "html", null, true);
  103. yield "</p>
  104. <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  105. // line 19
  106. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  107. yield "\">
  108. <div class=\"form-group\">
  109. <input type=\"text\" id=\"username\"
  110. class=\"form-control\"
  111. name=\"email\"
  112. value=\"";
  113. // line 25
  114. 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);
  115. yield "\"
  116. placeholder=\"";
  117. // line 26
  118. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "Auth"), "html", null, true);
  119. yield "\"
  120. aria-label=\"";
  121. // line 27
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "Auth"), "html", null, true);
  123. yield "\"
  124. required>
  125. </div>
  126. <div class=\"form-group\">
  127. <input type=\"password\" id=\"password\" class=\"form-control\" name=\"password\"
  128. placeholder=\"";
  129. // line 33
  130. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "Auth"), "html", null, true);
  131. yield "\"
  132. aria-label=\"";
  133. // line 34
  134. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "Auth"), "html", null, true);
  135. yield "\"
  136. value=\"";
  137. // line 35
  138. 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.', 35, $this->source); })()), "html", null, true);
  139. yield "\" required>
  140. </div>
  141. <div class=\"form-check\">
  142. <input type=\"checkbox\" id=\"remember_me\" class=\"form-check-input\" name=\"_remember_me\" value=\"on\">
  143. <label class=\"form-check-label\"
  144. for=\"remember_me\">";
  145. // line 41
  146. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.remember_me", [], "Auth"), "html", null, true);
  147. yield "</label>
  148. </div>
  149. <button type=\"submit\"
  150. id=\"_submit\"
  151. name=\"_submit\"
  152. class=\"btn mt-3\"
  153. value=\"";
  154. // line 48
  155. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "Auth"), "html", null, true);
  156. yield "\">
  157. ";
  158. // line 49
  159. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "Auth"), "html", null, true);
  160. yield "<img
  161. src=\"";
  162. // line 50
  163. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/arrow-button.svg"), "html", null, true);
  164. yield "\"
  165. alt=\"Arrow\">
  166. </button>
  167. </form>
  168. <div class=\"row text-center font-21\">
  169. <p class=\"text-color-grey\">";
  170. // line 56
  171. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.forgot_password", [], "Auth"), "html", null, true);
  172. yield "&nbsp;</p>
  173. <a href=\"";
  174. // line 57
  175. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction("reset_password");
  176. yield "\">";
  177. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.reset_password", [], "Auth"), "html", null, true);
  178. yield "</a>
  179. </div>
  180. <div class=\"row text-center make-profile\">
  181. <a href=\"";
  182. // line 61
  183. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction("register");
  184. yield "\">";
  185. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.register", [], "Auth"), "html", null, true);
  186. yield " <img src=\"";
  187. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/arrow-right-grey.svg"), "html", null, true);
  188. yield "\" alt=\"Arrow\"></a>
  189. </div>
  190. </div>
  191. </div>
  192. ";
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195. yield from [];
  196. }
  197. /**
  198. * @codeCoverageIgnore
  199. */
  200. public function getTemplateName(): string
  201. {
  202. return "Auth/App/login.html.twig";
  203. }
  204. /**
  205. * @codeCoverageIgnore
  206. */
  207. public function isTraitable(): bool
  208. {
  209. return false;
  210. }
  211. /**
  212. * @codeCoverageIgnore
  213. */
  214. public function getDebugInfo(): array
  215. {
  216. return array ( 212 => 61, 203 => 57, 199 => 56, 190 => 50, 186 => 49, 182 => 48, 172 => 41, 163 => 35, 159 => 34, 155 => 33, 146 => 27, 142 => 26, 138 => 25, 129 => 19, 125 => 18, 121 => 17, 116 => 15, 112 => 13, 106 => 11, 104 => 10, 100 => 8, 87 => 7, 64 => 5, 41 => 1,);
  217. }
  218. public function getSourceContext(): Source
  219. {
  220. return new Source("{% extends 'base.html.twig' %}
  221. {% trans_default_domain 'Auth' %}
  222. {% block title %}Log in!{% endblock %}
  223. {% block content %}
  224. <div class=\"content\">
  225. <div class=\"row\">
  226. {% if error is defined and error is not empty %}
  227. <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  228. {% endif %}
  229. <form class=\"login-form\"
  230. action=\"{{ path(\"login\", {'_locale': app.request.locale}) }}\"
  231. method=\"post\">
  232. <h1>{{ 'welcome'|trans }}</h1>
  233. <p>{{ 'welcome_message'|trans }}</p>
  234. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  235. <div class=\"form-group\">
  236. <input type=\"text\" id=\"username\"
  237. class=\"form-control\"
  238. name=\"email\"
  239. value=\"{{ last_username }}\"
  240. placeholder=\"{{ 'security.login.username'|trans }}\"
  241. aria-label=\"{{ 'security.login.username'|trans }}\"
  242. required>
  243. </div>
  244. <div class=\"form-group\">
  245. <input type=\"password\" id=\"password\" class=\"form-control\" name=\"password\"
  246. placeholder=\"{{ 'security.login.password'|trans }}\"
  247. aria-label=\"{{ 'security.login.password'|trans }}\"
  248. value=\"{{ last_username }}\" required>
  249. </div>
  250. <div class=\"form-check\">
  251. <input type=\"checkbox\" id=\"remember_me\" class=\"form-check-input\" name=\"_remember_me\" value=\"on\">
  252. <label class=\"form-check-label\"
  253. for=\"remember_me\">{{ 'security.login.remember_me'|trans }}</label>
  254. </div>
  255. <button type=\"submit\"
  256. id=\"_submit\"
  257. name=\"_submit\"
  258. class=\"btn mt-3\"
  259. value=\"{{ 'security.login.submit'|trans }}\">
  260. {{ 'security.login.submit'|trans }}<img
  261. src=\"{{ asset('assets/static/arrow-button.svg') }}\"
  262. alt=\"Arrow\">
  263. </button>
  264. </form>
  265. <div class=\"row text-center font-21\">
  266. <p class=\"text-color-grey\">{{ 'security.login.forgot_password'|trans }}&nbsp;</p>
  267. <a href=\"{{ path('reset_password') }}\">{{ 'security.login.reset_password'|trans }}</a>
  268. </div>
  269. <div class=\"row text-center make-profile\">
  270. <a href=\"{{ path('register') }}\">{{ 'security.login.register'|trans }} <img src=\"{{ asset('assets/static/arrow-right-grey.svg') }}\" alt=\"Arrow\"></a>
  271. </div>
  272. </div>
  273. </div>
  274. {% endblock %}
  275. ", "Auth/App/login.html.twig", "/var/www/rs.optima.staging/templates/Auth/App/login.html.twig");
  276. }
  277. }