src/templates/Security/ingresar.html.twig line 1

Open in your IDE?
  1. {% extends "layout_inicio.html.twig" %}
  2. {% block javascripts %}
  3.     {{ parent() }}
  4.     <!--script src="{{ asset('js/jquery/jquery-1.8.0.js') }}" type="text/javascript"></script-->
  5.     <script type="text/javascript">
  6.         $(document).ready(function() {
  7.             $("#captcha_refresh").click(function (){
  8.                 $("#captcha_img").html('<i class="ace-icon fa fa-spinner orange fa-spin bigger-220"></i>');
  9.                 $("#captcha_img").html('<img width="90%" src="{{path('captcha')}}?rdn='+Math.random()+'" />');
  10.             });     
  11.         });  
  12.         
  13.        /*var videoFile = 'http://www.bschool.ec/web/images/Tunnel_Animation.mp4';
  14.        $('#divVideo video source').attr({'src': videoFile, 'autoplay': autoplay,});
  15.        $("#divVideo video")[0].load();*/
  16.         function myFunction() {
  17.             var x = document.getElementById("password");
  18.             if (x.type === "password") {
  19.               x.type = "text";
  20.               document.getElementById('btnEye').className = 'ace-icon fa fa-eye';
  21.               
  22.             } else {
  23.               x.type = "password";
  24.               document.getElementById('btnEye').className = 'ace-icon fa fa-eye-slash';
  25.             }
  26.             
  27.             
  28.         }
  29.     </script>
  30. {% endblock %}
  31. {% block notice %}
  32.     <div class="ingresar_notice">
  33.         {% for notice_level in ['notice','success','danger','info', 'warning'] %}
  34.             {% set session_var = notice_level %}
  35.             {% for flashMessage in app.session.flashbag.get(session_var) %}
  36.                 <div class="alert alert-{{session_var}}">
  37.                     <button type="button" class="close" data-dismiss="alert">
  38.                         <i class="ace-icon fa fa-times"></i>
  39.                     </button>
  40.                     <strong>
  41.                         <i class="ace-icon fa fa-info-circle bigger-150"></i>
  42.                         {{ flashMessage | trans([],'message') | raw }}
  43.                     </strong>
  44.                     <br>
  45.                 </div>
  46.             {% endfor %}
  47.         {% endfor %}
  48.         {% if error_msj != '' %}
  49.                 <div class="alert alert-danger alert-inicio">
  50.                     <button type="button" class="close" data-dismiss="alert">
  51.                         <i class="ace-icon fa fa-times"></i>
  52.                     </button>
  53.                     <strong>
  54.                         <i class="ace-icon fa fa-info-circle bigger-150"></i>
  55.                         {{ error_msj | raw }}
  56.                     </strong>
  57.                     <br>
  58.                 </div>
  59.                     <script type="text/javascript">
  60.                         var error='{{ error_msj | raw }}';                    
  61.                         /*errorAlert(error);*/
  62.                         jAlert('<h1 class="red"><i class="fa fa-exclamation-triangle red"></i> ERROR </h1>'+'<div class="panel bigger-110">'+error+'</div>','Error');
  63.                     </script>
  64.         {% endif %} 
  65.         {% if msj is defined and msj != '' %}
  66.             <div class="alert alert-danger alert-inicio">
  67.                 <button type="button" class="close" data-dismiss="alert">
  68.                     <i class="ace-icon fa fa-times"></i>
  69.                 </button>
  70.                 <strong>
  71.                     <i class="ace-icon fa fa-info-circle bigger-150"></i>
  72.                     {{ msj | raw }}
  73.                 </strong>
  74.                 <br>
  75.             </div>
  76.         {% endif %}  
  77.     </div>
  78. {% endblock %}
  79. {% block content %}
  80.     {% if last_username is not defined %}
  81.         {% set last_username = '' %}
  82.     {% endif %}
  83.     <div class="widget-box transparent">      
  84.         <div class="widget-body" style="display: block;">
  85.             <div class="widget-main no-padding content_ini" id="divVideo">
  86.                     <!--video autoplay loop style="width: 100%">
  87.                       <source src="http://www.bschool.ec/web/images/Tunnel_Animation.mp4" type="video/mp4" />
  88.                     </video-->
  89.                 <div class="content_ini_image" >     
  90.                     <div style="position: relative; top: 7%; left: 0px; bottom: 0px; right: 0px;">
  91.                         <form class="form" id="ingresar" action="{{path('login_check')}}" method="POST">
  92. <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  93.                             <div class="row vertical-center"> 
  94.                                 <div class="space-24 hidden-xs"></div>
  95.                                 <div class="col-sm-2 hidden-xs" style="text-align: left">
  96.                                                               
  97.                                 </div>    
  98.                                 <div class="col-sm-8 col-xs-12" style="text-align: center;">                                                                                                                 
  99.                                     <div class="col-lg-10 col-sm-10 col-xs-10  login-box">
  100.                                         <div class="form-group">
  101.                                             <div>
  102.                                                 <h1 class="text-left ">{% trans %}home.bienvenido{% endtrans %}</h1> 
  103.                                               <div class="space-8"></div>
  104.                                               <span class="input-icon input-icon-right col-xs-12 no-padding">
  105.                                                 <input class="form-control input-inicio" placeholder="{% trans %}seguridad.autenticacion.user{% endtrans %}" type="text" id="username" name="_username" value="{{last_username}}" required="true">
  106.                                                 <i class="ace-icon fa fa-user grey">&nbsp;</i>
  107.                                               </span>
  108.                                             </div>
  109.                                         </div>
  110.                                         <div class="form-group">                                
  111.                                             <div>
  112.                                                 <div class="space-8"></div>
  113.                                               <span class="input-icon input-icon-right col-xs-12 no-padding">
  114.                                                 <input type="password" required="" class="form-control input-inicio" placeholder="{% trans %}seguridad.autenticacion.password{% endtrans %}" type="password" value="" id="password" name="_password" style="width:100%; color: #bdb6b6;" required="true">
  115.                                                 <i class="ace-icon fa fa-eye-slash" id="btnEye" onclick="myFunction()">&nbsp;</i>
  116.                                               </span>
  117.                                             </div>
  118.                                         </div>
  119.                                         <div class="form-group">
  120.                                               <span class="col-xs-10 no-padding">
  121.                                                   <div id="captcha_img" style="background-color: #fff; max-width: 100%;" ><img width="80%" src="{{path('captcha')}}"/></div>
  122.                                               </span>
  123.                                               <span class="col-xs-2">
  124.                                                   <div class="space-10 hidden-xs"></div>
  125.                                                   <a id="captcha_refresh" href="#" style='float:left'><img style="max-width: 80%; min-width: 40px;" src="{{ asset('images/icon/captcha_new.png') }}" title="Cambiar código"></a>
  126.                                               </span>
  127.                                         </div> 
  128.                                         <div class="form-group">
  129.                                             <div >
  130.                                                 <div class="space-8"></div>
  131.                                               <span class="input-icon input-icon-right col-xs-12 no-padding">
  132.                                                 <input type="text" class="form-control input-inicio" placeholder="{% trans %}seguridad.autenticacion.captcha{% endtrans %}" id="captcha_codigo" name="captcha_codigo" style="width:100%;" required="true">
  133.                                                 <i class="ace-icon fa fa-refresh grey">&nbsp;</i>
  134.                                               </span>
  135.                                             </div>
  136.                                         </div>                                                         
  137.                                         <div class="form-group">
  138.                                             <div class="row center">
  139.                                                 <div class="space-8"></div>
  140.                                               <input class="btn btn-large btn-round bigger-150 btn-inicio-st" type="submit" value={%trans%}botones.enter{% endtrans%}>
  141.                                             </div>
  142.                                         </div>
  143.                                         <!---div>
  144.                                             <div class="space-8"></div>
  145.                                             <div class="forget_password_st no-padding">
  146.                                                <a class="pull-left text-left bigger-120" href="{{path('usuario_activa_cuenta')}} ">{% trans %}seguridad.autenticacion.activar{% endtrans %}</a>
  147.                                             </div>
  148.                                             <div class="forget_password_st no-padding">
  149.                                                <a  class="pull-right text-left bigger-120" href="{{path('usuario_recupera_password')}} ">{% trans %}seguridad.autenticacion.noremember{% endtrans %}</a>
  150.                                             </div>
  151.                                         </div-->
  152.                                     </div>
  153.                                 <div class="col-lg-2 col-sm-2 col-xs-2" style="text-align: left">
  154.                                     <!--img width="80%" src="{{ asset('images/logo_ST_blanco.png') }}"-->                            
  155.                                 </div>
  156.                             </div> 
  157.                                 <div class="col-sm-2 hidden-xs" style="text-align: left">
  158.                                                               
  159.                                 </div>    
  160.                             </div>    
  161.                         </form>
  162.                     </div>
  163.                 </div>        
  164.                 <div class="row" style="background: #000; margin-top: 100px;">
  165.                     <div class="col-sm-11 col-xs-12" style="min-height: 100px; color: #fff; padding-top: 30px;" >
  166.                     Desarrollado por Strategic Thrusts S.A. @2022
  167.                     </div>
  168.                 </div>
  169.             </div>                   
  170.         </div>                   
  171.     </div>
  172.                                    
  173. {% endblock %}