var/cache/dev/twig/42/42a66f7115f713f1c3c93dcc7efa5c8d.php line 130

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. /* @FOSUser/Security/login_content.html.twig */
  16. class __TwigTemplate_e8844246cf778e3f7d3e8b9756eae10d 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->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Security/login_content.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Security/login_content.html.twig"));
  38. // line 2
  39. yield "
  40. ";
  41. // line 3
  42. if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 3, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  43. // line 4
  44. yield " <div class=\"alert alert-danger\">";
  45. 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.', 4, $this->source); })()), "messageKey", [], "any", false, false, false, 4), 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.', 4, $this->source); })()), "messageData", [], "any", false, false, false, 4), "security"), "html", null, true);
  46. yield "</div>
  47. ";
  48. }
  49. // line 6
  50. yield "
  51. <form action=\"";
  52. // line 7
  53. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_check");
  54. yield "\" method=\"post\">
  55. ";
  56. // line 8
  57. if ((($tmp = (isset($context["csrf_token"]) || array_key_exists("csrf_token", $context) ? $context["csrf_token"] : (function () { throw new RuntimeError('Variable "csrf_token" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  58. // line 9
  59. yield " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  60. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["csrf_token"]) || array_key_exists("csrf_token", $context) ? $context["csrf_token"] : (function () { throw new RuntimeError('Variable "csrf_token" does not exist.', 9, $this->source); })()), "html", null, true);
  61. yield "\" />
  62. ";
  63. }
  64. // line 11
  65. yield "
  66. ";
  67. // line 12
  68. if ((($tmp = 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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", ["_target_path"], "method", false, false, false, 12)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  69. // line 13
  70. yield " <input type=\"hidden\" name=\"_target_path\" value=\"";
  71. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "get", ["_target_path"], "method", false, false, false, 13), "html", null, true);
  72. yield "\" />
  73. ";
  74. }
  75. // line 15
  76. yield "
  77. <div class=\"tw-mb-6\">
  78. <label class=\"jlls-form-label\" for=\"username\">";
  79. // line 17
  80. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.username", [], "FOSUserBundle"), "html", null, true);
  81. yield "</label>
  82. <input class=\"jlls-form-input\" type=\"text\" id=\"username\" name=\"_username\" value=\"";
  83. // line 18
  84. 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.', 18, $this->source); })()), "html", null, true);
  85. yield "\" required=\"required\" />
  86. </div>
  87. <div class=\"tw-mb-8\">
  88. <div class=\"tw-flex tw-items-center tw-justify-between tw-mb-1\">
  89. <label class=\"jlls-form-label tw-mb-0\" for=\"password\">";
  90. // line 23
  91. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.password", [], "FOSUserBundle"), "html", null, true);
  92. yield "</label>
  93. <label class=\"jlls-form-checkbox-wrapper tw-mb-0\">
  94. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" checked class=\"jlls-form-checkbox\" />
  95. <span class=\"jlls-form-checkbox-label\">";
  96. // line 26
  97. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.remember_me", [], "FOSUserBundle"), "html", null, true);
  98. yield "</span>
  99. </label>
  100. </div>
  101. <div class=\"tw-relative\">
  102. <input class=\"jlls-form-input !tw-pr-12\" type=\"password\" id=\"password\" name=\"_password\" required=\"required\" />
  103. <button type=\"button\" class=\"tw-absolute tw-right-0 tw-top-0 tw-h-full tw-px-3 tw-flex tw-items-center tw-text-joboo-gray-400 hover:tw-text-joboo-gray-600 tw-transition-colors tw-bg-transparent tw-border-0 tw-cursor-pointer\">
  104. <i class=\"fa fa-eye-slash\" id=\"showpassword\"></i>
  105. </button>
  106. </div>
  107. </div>
  108. <div class=\"tw-flex tw-items-center tw-gap-3 tw-flex-wrap tw-mt-8\">
  109. <button type=\"submit\" class=\"jlls-button-tertiary\" id=\"_submit\" name=\"_submit\">";
  110. // line 38
  111. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.submit", [], "FOSUserBundle"), "html", null, true);
  112. yield "</button>
  113. <span> oder </span>
  114. <a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-gap-2\"
  115. href=\"";
  116. // line 43
  117. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["google_identity_service"]) || array_key_exists("google_identity_service", $context) ? $context["google_identity_service"] : (function () { throw new RuntimeError('Variable "google_identity_service" does not exist.', 43, $this->source); })()), "getLoginOAuth2TargetUrl", [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.', 43, $this->source); })()), "user", [], "any", false, false, false, 43)], "method", false, false, false, 43), "html", null, true);
  118. yield "\"
  119. >
  120. <img width=\"20px\"
  121. alt=\"Google sign-in\"
  122. src=\"";
  123. // line 47
  124. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->cdnifyUri($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/Google_G_Logo.svg.png")), "html", null, true);
  125. yield "\"
  126. />
  127. <span>";
  128. // line 49
  129. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.login_via_google", [], "FOSUserBundle"), "html", null, true);
  130. yield "</span>
  131. </a>
  132. </div>
  133. <div class=\"jlls-alert jlls-alert-info tw-mt-8\">
  134. <div class=\"jlls-alert-body jlls-alert-body-info\">
  135. <p class=\"tw-mb-0\"><a href=\"";
  136. // line 55
  137. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_resetting_request");
  138. yield "\" class=\"jlls-link-default\">";
  139. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("security.login.forgot_password", [], "FOSUserBundle");
  140. yield "</a></p>
  141. </div>
  142. </div>
  143. </form>
  144. ";
  145. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147. yield from [];
  148. }
  149. /**
  150. * @codeCoverageIgnore
  151. */
  152. public function getTemplateName(): string
  153. {
  154. return "@FOSUser/Security/login_content.html.twig";
  155. }
  156. /**
  157. * @codeCoverageIgnore
  158. */
  159. public function isTraitable(): bool
  160. {
  161. return false;
  162. }
  163. /**
  164. * @codeCoverageIgnore
  165. */
  166. public function getDebugInfo(): array
  167. {
  168. return array ( 151 => 55, 142 => 49, 137 => 47, 130 => 43, 122 => 38, 107 => 26, 101 => 23, 93 => 18, 89 => 17, 85 => 15, 79 => 13, 77 => 12, 74 => 11, 68 => 9, 66 => 8, 62 => 7, 59 => 6, 53 => 4, 51 => 3, 48 => 2,);
  169. }
  170. public function getSourceContext(): Source
  171. {
  172. return new Source("{% trans_default_domain 'FOSUserBundle' %}
  173. {% if error %}
  174. <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  175. {% endif %}
  176. <form action=\"{{ path(\"fos_user_security_check\") }}\" method=\"post\">
  177. {% if csrf_token %}
  178. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token }}\" />
  179. {% endif %}
  180. {% if app.request.get('_target_path') %}
  181. <input type=\"hidden\" name=\"_target_path\" value=\"{{ app.request.get('_target_path') }}\" />
  182. {% endif %}
  183. <div class=\"tw-mb-6\">
  184. <label class=\"jlls-form-label\" for=\"username\">{{ 'security.login.username'|trans }}</label>
  185. <input class=\"jlls-form-input\" type=\"text\" id=\"username\" name=\"_username\" value=\"{{ last_username }}\" required=\"required\" />
  186. </div>
  187. <div class=\"tw-mb-8\">
  188. <div class=\"tw-flex tw-items-center tw-justify-between tw-mb-1\">
  189. <label class=\"jlls-form-label tw-mb-0\" for=\"password\">{{ 'security.login.password'|trans }}</label>
  190. <label class=\"jlls-form-checkbox-wrapper tw-mb-0\">
  191. <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" checked class=\"jlls-form-checkbox\" />
  192. <span class=\"jlls-form-checkbox-label\">{{ 'security.login.remember_me'|trans }}</span>
  193. </label>
  194. </div>
  195. <div class=\"tw-relative\">
  196. <input class=\"jlls-form-input !tw-pr-12\" type=\"password\" id=\"password\" name=\"_password\" required=\"required\" />
  197. <button type=\"button\" class=\"tw-absolute tw-right-0 tw-top-0 tw-h-full tw-px-3 tw-flex tw-items-center tw-text-joboo-gray-400 hover:tw-text-joboo-gray-600 tw-transition-colors tw-bg-transparent tw-border-0 tw-cursor-pointer\">
  198. <i class=\"fa fa-eye-slash\" id=\"showpassword\"></i>
  199. </button>
  200. </div>
  201. </div>
  202. <div class=\"tw-flex tw-items-center tw-gap-3 tw-flex-wrap tw-mt-8\">
  203. <button type=\"submit\" class=\"jlls-button-tertiary\" id=\"_submit\" name=\"_submit\">{{ 'security.login.submit'|trans }}</button>
  204. <span> oder </span>
  205. <a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-gap-2\"
  206. href=\"{{ google_identity_service.getLoginOAuth2TargetUrl(app.user) }}\"
  207. >
  208. <img width=\"20px\"
  209. alt=\"Google sign-in\"
  210. src=\"{{ asset('assets/images/Google_G_Logo.svg.png')|cdnifyUri }}\"
  211. />
  212. <span>{{ 'security.login.login_via_google'|trans }}</span>
  213. </a>
  214. </div>
  215. <div class=\"jlls-alert jlls-alert-info tw-mt-8\">
  216. <div class=\"jlls-alert-body jlls-alert-body-info\">
  217. <p class=\"tw-mb-0\"><a href=\"{{ path('fos_user_resetting_request') }}\" class=\"jlls-link-default\">{{ 'security.login.forgot_password'|trans|raw }}</a></p>
  218. </div>
  219. </div>
  220. </form>
  221. ", "@FOSUser/Security/login_content.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Security/login_content.html.twig");
  222. }
  223. }