templates/bundles/FOSUserBundle/Security/login_content.html.twig line 43

Open in your IDE?
  1. {% trans_default_domain 'FOSUserBundle' %}
  2. {% if error %}
  3. <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  4. {% endif %}
  5. <form action="{{ path("fos_user_security_check") }}" method="post">
  6. {% if csrf_token %}
  7. <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
  8. {% endif %}
  9. {% if app.request.get('_target_path') %}
  10. <input type="hidden" name="_target_path" value="{{ app.request.get('_target_path') }}" />
  11. {% endif %}
  12. <div class="tw-mb-6">
  13. <label class="jlls-form-label" for="username">{{ 'security.login.username'|trans }}</label>
  14. <input class="jlls-form-input" type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
  15. </div>
  16. <div class="tw-mb-8">
  17. <div class="tw-flex tw-items-center tw-justify-between tw-mb-1">
  18. <label class="jlls-form-label tw-mb-0" for="password">{{ 'security.login.password'|trans }}</label>
  19. <label class="jlls-form-checkbox-wrapper tw-mb-0">
  20. <input type="checkbox" id="remember_me" name="_remember_me" value="on" checked class="jlls-form-checkbox" />
  21. <span class="jlls-form-checkbox-label">{{ 'security.login.remember_me'|trans }}</span>
  22. </label>
  23. </div>
  24. <div class="tw-relative">
  25. <input class="jlls-form-input !tw-pr-12" type="password" id="password" name="_password" required="required" />
  26. <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">
  27. <i class="fa fa-eye-slash" id="showpassword"></i>
  28. </button>
  29. </div>
  30. </div>
  31. <div class="tw-flex tw-items-center tw-gap-3 tw-flex-wrap tw-mt-8">
  32. <button type="submit" class="jlls-button-tertiary" id="_submit" name="_submit">{{ 'security.login.submit'|trans }}</button>
  33. <span> oder </span>
  34. <a class="jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-gap-2"
  35. href="{{ google_identity_service.getLoginOAuth2TargetUrl(app.user) }}"
  36. >
  37. <img width="20px"
  38. alt="Google sign-in"
  39. src="{{ asset('assets/images/Google_G_Logo.svg.png')|cdnifyUri }}"
  40. />
  41. <span>{{ 'security.login.login_via_google'|trans }}</span>
  42. </a>
  43. </div>
  44. <div class="jlls-alert jlls-alert-info tw-mt-8">
  45. <div class="jlls-alert-body jlls-alert-body-info">
  46. <p class="tw-mb-0"><a href="{{ path('fos_user_resetting_request') }}" class="jlls-link-default">{{ 'security.login.forgot_password'|trans|raw }}</a></p>
  47. </div>
  48. </div>
  49. </form>