templates/security/login.html.twig line 7

Open in your IDE?
  1. {% extends 'security/base.html.twig' %}
  2. {% block contenido %}
  3.     <div class="caja" >
  4.         <form method="post" action="{{ url('app_login') }}">
  5.             {% if app.user %}
  6.                 <div class="mb-3">
  7.                     You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  8.                 </div>
  9.             {% endif %}
  10.             <div class="card">
  11.                 <div class="card-content">
  12.                     <div class="row">
  13.                         <div class="input-field col s12 center">
  14.                             <img src="{{ logo_web }}" alt="" width="250px">
  15.                         </div>
  16.                     </div>
  17.                     <div class="row">
  18.                         <div class="input-field col s12">
  19.                             <i class="material-icons prefix color-primario">person</i>
  20.                             <input type="text" value="{{ last_username }}" name="username" id="usuario_ingresar"  >
  21.                             <label for="usuario_ingresar" class="center-align">Usuario / DNI</label>
  22.                         </div>
  23.                     </div>
  24.                     <div class="row ">
  25.                         <div class="input-field col s12">
  26.                             <i class="material-icons prefix color-primario">lock</i>
  27.                             <input name="password" id="password_ingresar" type="password">
  28.                             <label for="password_ingresar" class="">Contraseña</label>
  29.                         </div>
  30.                     </div>
  31.                     {% if error %}
  32.                         <!-- caja de error -->
  33.                         <div class="row">
  34.                             <div class="col s12">
  35.                                 <div class="card-panel card-error red lighten-4 red-text text-darken-2">
  36.                                     <p class="center-align">{{ error.messageKey|trans(error.messageData, 'security') }}</p>
  37.                                     <p></p>
  38.                                 </div>
  39.                             </div>
  40.                         </div>
  41.                         <!-- fin caja de error -->
  42.                     {% endif %}
  43.                     <input type="hidden" name="_csrf_token"
  44.                         value="{{ csrf_token('authenticate') }}">
  45.                     <div class="row margin">
  46.                         <div class="col s12">
  47.                             <button type="submit" class="btn waves-effect waves-light col s12 back-primario" id="boton_ingresar">Ingresar</button>
  48.                         </div>
  49.                     </div>
  50.                     <div class="row">
  51.                         <div class="input-field col s6 m6 left-align">
  52.                             <span class="margin right-align medium-small">
  53.                                 <a class="activator" href="#" id="2">¿Olvidó su contraseña?</a></span>
  54.                         </div>
  55.                         <div class="input-field col s6 m6 right-align">
  56.                         </div>
  57.                     </div>
  58.             </div>
  59.         </form>
  60.         <div class="card-reveal" >
  61.             {{ form_start(formForgot) }}
  62.             <div id="cambiar" >
  63.                 <span class="card-title grey-text text-darken-4">SOLICITAR CONTRASEÑA <i class="material-icons right">close</i></span>
  64.                 <hr>
  65.                 <p>Ingrese los siguientes datos.</p>
  66.                 <div class="row ">
  67.                     <div class="input-field col s12">
  68.                         <i class="material-icons  prefix">portrait</i>
  69.                         {{ form_widget(formForgot.dni) }}
  70.                         {{ form_label(formForgot.dni) }}
  71.                         <span class="helper-text" data-error="wrong" data-success="right">Ingrese su DNI sin puntos</span>
  72.                     </div>
  73.                 </div>
  74.                 <div class="row">
  75.                     <div class="col s12 m12 left-align">
  76.                         <button type="submit" class="btn-flat waves-effect waves-light grey lighten-2 ">
  77.                             ENVIAR SOLICITUD </button>
  78.                     </div>
  79.                 </div>
  80.             </div>
  81.             {{ form_end(formForgot) }}
  82.         </div>
  83.     </div>
  84.     {% if aspirante is defined %}
  85.         <div class="col l12 m12 s12 center">
  86.             <a class="white-text" style="padding:0.2rem;" href="{{ path('aspirante_registry') }}"><i class="material-icons">person_add</i> Quiero registrarme al PODA</a>
  87.         </div>
  88.     {% endif %}
  89. {% endblock %}
  90. {% block js_document_ready %}
  91.     {% if persona is defined and persona is not null %}
  92.         $('#modalForgot').modal('open');
  93.     {% endif %}
  94. {% endblock %}
  95. {% block dialogos_modales %}
  96.     <!-- Modal Structure -->
  97.     {% if persona is defined and persona is not null %}
  98.         <div id="modalForgot" class="modal">
  99.             <form action="{{ url('app_forgot_ini', { id: persona.id }) }}" method="post">
  100.                 <div class="modal-content">
  101.                     <h4>Recupero de contraseña de acceso al Portal</h4>
  102.                     <p>Estimado/a {{ persona.nombres }} se le enviará un correo a 
  103.                     <b>{{ persona.emailPersonal |hide_email }}</b> con un enlace para iniciar el proceso 
  104.                     de recuperación de contraseña.</p>
  105.                 </div>
  106.                 <div class="modal-footer">
  107.                     <a href="#!" class="modal-close waves-effect waves-green btn-flat">Cancelar</a>
  108.                     {# the argument of csrf_token() is an arbitrary string used to generate the token #}
  109.                     <input type="hidden" name="ini_forgot_token" value="{{ csrf_token('iniciar-forgot') }}"/>
  110.                     <button class="btn identidad-color darken-2 waves-effect waves-light">
  111.                         Iniciar
  112.                         <i class="material-icons right">done</i>
  113.                     </button>
  114.                 </div>
  115.             </form>
  116.         </div>
  117.     {% endif %}
  118.     
  119. {% endblock %}