{% extends "layout_inicio.html.twig" %}
{% block javascripts %}
{{ parent() }}
<!--script src="{{ asset('js/jquery/jquery-1.8.0.js') }}" type="text/javascript"></script-->
<script type="text/javascript">
$(document).ready(function() {
$("#captcha_refresh").click(function (){
$("#captcha_img").html('<i class="ace-icon fa fa-spinner orange fa-spin bigger-220"></i>');
$("#captcha_img").html('<img width="90%" src="{{path('captcha')}}?rdn='+Math.random()+'" />');
});
});
/*var videoFile = 'http://www.bschool.ec/web/images/Tunnel_Animation.mp4';
$('#divVideo video source').attr({'src': videoFile, 'autoplay': autoplay,});
$("#divVideo video")[0].load();*/
function myFunction() {
var x = document.getElementById("password");
if (x.type === "password") {
x.type = "text";
document.getElementById('btnEye').className = 'ace-icon fa fa-eye';
} else {
x.type = "password";
document.getElementById('btnEye').className = 'ace-icon fa fa-eye-slash';
}
}
</script>
{% endblock %}
{% block notice %}
<div class="ingresar_notice">
{% for notice_level in ['notice','success','danger','info', 'warning'] %}
{% set session_var = notice_level %}
{% for flashMessage in app.session.flashbag.get(session_var) %}
<div class="alert alert-{{session_var}}">
<button type="button" class="close" data-dismiss="alert">
<i class="ace-icon fa fa-times"></i>
</button>
<strong>
<i class="ace-icon fa fa-info-circle bigger-150"></i>
{{ flashMessage | trans([],'message') | raw }}
</strong>
<br>
</div>
{% endfor %}
{% endfor %}
{% if error_msj != '' %}
<div class="alert alert-danger alert-inicio">
<button type="button" class="close" data-dismiss="alert">
<i class="ace-icon fa fa-times"></i>
</button>
<strong>
<i class="ace-icon fa fa-info-circle bigger-150"></i>
{{ error_msj | raw }}
</strong>
<br>
</div>
<script type="text/javascript">
var error='{{ error_msj | raw }}';
/*errorAlert(error);*/
jAlert('<h1 class="red"><i class="fa fa-exclamation-triangle red"></i> ERROR </h1>'+'<div class="panel bigger-110">'+error+'</div>','Error');
</script>
{% endif %}
{% if msj is defined and msj != '' %}
<div class="alert alert-danger alert-inicio">
<button type="button" class="close" data-dismiss="alert">
<i class="ace-icon fa fa-times"></i>
</button>
<strong>
<i class="ace-icon fa fa-info-circle bigger-150"></i>
{{ msj | raw }}
</strong>
<br>
</div>
{% endif %}
</div>
{% endblock %}
{% block content %}
{% if last_username is not defined %}
{% set last_username = '' %}
{% endif %}
<div class="widget-box transparent">
<div class="widget-body" style="display: block;">
<div class="widget-main no-padding content_ini" id="divVideo">
<!--video autoplay loop style="width: 100%">
<source src="http://www.bschool.ec/web/images/Tunnel_Animation.mp4" type="video/mp4" />
</video-->
<div class="content_ini_image" >
<div style="position: relative; top: 7%; left: 0px; bottom: 0px; right: 0px;">
<form class="form" id="ingresar" action="{{path('login_check')}}" method="POST">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="row vertical-center">
<div class="space-24 hidden-xs"></div>
<div class="col-sm-2 hidden-xs" style="text-align: left">
</div>
<div class="col-sm-8 col-xs-12" style="text-align: center;">
<div class="col-lg-10 col-sm-10 col-xs-10 login-box">
<div class="form-group">
<div>
<h1 class="text-left ">{% trans %}home.bienvenido{% endtrans %}</h1>
<div class="space-8"></div>
<span class="input-icon input-icon-right col-xs-12 no-padding">
<input class="form-control input-inicio" placeholder="{% trans %}seguridad.autenticacion.user{% endtrans %}" type="text" id="username" name="_username" value="{{last_username}}" required="true">
<i class="ace-icon fa fa-user grey"> </i>
</span>
</div>
</div>
<div class="form-group">
<div>
<div class="space-8"></div>
<span class="input-icon input-icon-right col-xs-12 no-padding">
<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">
<i class="ace-icon fa fa-eye-slash" id="btnEye" onclick="myFunction()"> </i>
</span>
</div>
</div>
<div class="form-group">
<span class="col-xs-10 no-padding">
<div id="captcha_img" style="background-color: #fff; max-width: 100%;" ><img width="80%" src="{{path('captcha')}}"/></div>
</span>
<span class="col-xs-2">
<div class="space-10 hidden-xs"></div>
<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>
</span>
</div>
<div class="form-group">
<div >
<div class="space-8"></div>
<span class="input-icon input-icon-right col-xs-12 no-padding">
<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">
<i class="ace-icon fa fa-refresh grey"> </i>
</span>
</div>
</div>
<div class="form-group">
<div class="row center">
<div class="space-8"></div>
<input class="btn btn-large btn-round bigger-150 btn-inicio-st" type="submit" value={%trans%}botones.enter{% endtrans%}>
</div>
</div>
<!---div>
<div class="space-8"></div>
<div class="forget_password_st no-padding">
<a class="pull-left text-left bigger-120" href="{{path('usuario_activa_cuenta')}} ">{% trans %}seguridad.autenticacion.activar{% endtrans %}</a>
</div>
<div class="forget_password_st no-padding">
<a class="pull-right text-left bigger-120" href="{{path('usuario_recupera_password')}} ">{% trans %}seguridad.autenticacion.noremember{% endtrans %}</a>
</div>
</div-->
</div>
<div class="col-lg-2 col-sm-2 col-xs-2" style="text-align: left">
<!--img width="80%" src="{{ asset('images/logo_ST_blanco.png') }}"-->
</div>
</div>
<div class="col-sm-2 hidden-xs" style="text-align: left">
</div>
</div>
</form>
</div>
</div>
<div class="row" style="background: #000; margin-top: 100px;">
<div class="col-sm-11 col-xs-12" style="min-height: 100px; color: #fff; padding-top: 30px;" >
Desarrollado por Strategic Thrusts S.A. @2022
</div>
</div>
</div>
</div>
</div>
{% endblock %}