src/Bundles/UserBundle/Resources/views/auth/login.html.twig line 1

Open in your IDE?
  1. {% extends '@base/templates/auth.html.twig' %}
  2. {% block title %}
  3.     {{ 'auth.login_into_system'|trans({}, 'UserBundle') }}
  4. {% endblock %}
  5. {% block body %}
  6.     {{ form_start(form, { attr: { 'data-controller': 'login-form' } }) }}
  7.         <h2 class="mb-8 text-center text-2xl font-semibold">
  8.             {{ 'auth.login_into_system'|trans({}, 'UserBundle') }}
  9.         </h2>
  10.         {% if error %}
  11.             {{ component('alert', {message: error.messageKey|trans(error.messageData, 'security'), level: 'error'}) }}
  12.         {% endif %}
  13.         {{ form_row(form._username, { attr: { 'data-login-form-target': 'userNameInput' } }) }}
  14.         {{ form_row(form._password, { attr: { 'data-login-form-target': 'passwordInput' } }) }}
  15.         <div class="mb-8">
  16.             <a href="{{ path('app_forgot_password') }}" class="text-main font-semibold">
  17.                 {{ 'auth.forgot_password'|trans({}, 'UserBundle') }}
  18.             </a>
  19.         </div>
  20.         {{ form_row(form.submit, { attr: { 'data-login-form-target': 'submitButton', 'data-action': 'click->login-form#clearLocalStorage' } }) }}
  21.     {{ form_end(form) }}
  22. {% endblock %}