templates/seguridad/login.html.twig line 1

Open in your IDE?
  1. {% extends 'seguridad_base.html.twig' %}
  2. {% block body %}
  3.     <div class="parent">
  4.         <div class="grid-main">
  5.             <div class="grid-slider"></div>
  6.             <div class="grid-login">
  7.                 <aside class="login_area">
  8.                     <img src="{{ asset('img/logo_admin.png') }}" title="HiMed Admin" alt="HiMed Admin"/>
  9.                     <h2>Iniciar sesión</h2>
  10.                     {% for label, messages in app.flashes %}
  11.                         {% for message in messages %}
  12.                             <div class="alert alert-{{ label }}">
  13.                                 <span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>
  14.                                 <h1>{{ message }}</h1>
  15.                             </div>
  16.                         {% endfor %}
  17.                     {% endfor %}
  18.                     <form method="post" name="login">
  19.                         <label for="User">Nombre de usuario</label>
  20.                         <input type="text" value="{{ last_username }}" id="User" name="User">
  21.                         <label for="Password">Contraseña</label>
  22.                         <input type="password" id="Password" name="Password">
  23.                         {% if error %}
  24.                             <div class="alerta-seguridad">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  25.                         {% endif %}
  26.                         <input type="hidden" name="_csrf_token"
  27.                                value="{{ csrf_token('authenticate') }}"
  28.                         >
  29.                         <button type="submit" value="Inicio de sesión"><span>Ingresar</span></button>
  30.                         <a href="{{ path('app_forgot_password_request') }}" title="Recuperar Cuenta">Recuperar Cuenta</a>
  31.                     </form>
  32.                 </aside>
  33.             </div>
  34.         </div>
  35.     </div>
  36. {% endblock %}