templates/login/index.html.twig line 1

Open in your IDE?
  1. {% extends 'basic.html.twig' %}
  2. {% block subtitle %}- {{ 'Login'|trans }}{% endblock %}
  3. {% block body %}
  4.     <div class="row justify-content-center my-auto">
  5.         <div class="col-md-8 col-lg-6 col-xl-4">
  6.             <div class="text-center  py-5">
  7.                 <div class="mb-4 mb-md-5">
  8.                     <a href="index.html" class="d-block auth-logo">
  9.                         <img src="{{ asset('/assets/images/logo.png') }}" />
  10.                     </a>
  11.                 </div>
  12.                 <div class="mb-4">
  13.                     <h5>{{ 'app.welcome'|trans }}!</h5>
  14.                 </div>
  15.                 <form action="{{ path('app_login') }}" method="post">
  16.                     {% if error %}
  17.                         <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  18.                     {% endif %}
  19.                     <div class="form-floating form-floating-custom mb-3">
  20.                         <input type="email" class="form-control" id="input-username" placeholder="{{ 'app.please_enter'|trans({'%subject%': 'app.username'|trans}) }}" name="_username" value="{{ last_username }}">
  21.                         <label for="input-username">{{ 'app.username'|trans }}</label>
  22.                         <div class="form-floating-icon">
  23.                             <i class="uil uil-users-alt"></i>
  24.                         </div>
  25.                     </div>
  26.                     <div class="form-floating form-floating-custom mb-3">
  27.                         <input type="password" class="form-control" id="input-password" placeholder="{{ 'app.please_enter'|trans({'%subject%': 'app.password'|trans}) }}" name="_password">
  28.                         <label for="input-password">{{ 'app.password'|trans }}</label>
  29.                         <div class="form-floating-icon">
  30.                             <i class="uil uil-padlock"></i>
  31.                         </div>
  32.                     </div>
  33.                     <div class="form-check form-check-info font-size-16">
  34.                         <input class="form-check-input" type="checkbox" id="remember-check">
  35.                         <label class="form-check-label font-size-14" for="remember-check">
  36.                             {{ 'app.remember_me'|trans }}
  37.                         </label>
  38.                     </div>
  39.                     <div class="mt-3">
  40.                         <button class="btn btn-success w-100" type="submit">{{ 'app.login'|trans|capitalize }}</button>
  41.                     </div>
  42.                     <div class="mt-4">
  43.                         <a href="{{ path('app_forgot_password_request') }}" class="text-success fw-medium text-decoration-underline">{{ 'app.forgot.password'|trans }}</a>
  44.                     </div>
  45.                 </form><!-- end form -->
  46.                 {# <div class="mt-5 text-center text-muted">
  47.                     <p>{{ 'app.no_account'|trans({'%app_name%': 'app.app_name'|trans}) }}?<br>
  48.                         <a href="{{ path('app_register') }}" class="text-success fw-medium text-decoration-underline"> {{ 'app.register_now'|trans }}! </a></p>
  49.                 </div> #}
  50.             </div>
  51.         </div>
  52.     </div>
  53. {% endblock %}