{% extends "layout_inicio.html.twig" %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('ace/js/bootbox.js') }}"></script>
{% endblock javascripts %}
{% block jquery %}
{{ parent() }}
<script type="text/javascript">
$(function()
{
$('#frmConfirmaIngreso').submit(function(e){
if ($('#password').val() != $('#confpassword').val())
{
e.preventDefault();
bootbox.dialog({
message: "{{ 'seguridad.contrasena.confirmacion' | trans() }}",
buttons: {
"success" : {
"label" : "OK",
"className" : "btn-sm btn-primary"
}
}
});
}
});
});
</script>
{% endblock jquery %}
{% block content %}
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-list-ol orange"></i>
{{ mensaje }}
</h4>
</div>
<div class="widget-body" style="display: block;">
<div class="widget-main no-padding">
<br>
<div class="row" style="text-align: center">
<div class="col-xs-12 col-sm-3 hidden-xs">
</div>
<div class="col-xs-12 col-sm-6">
{% if error_pass is defined %}
<div class="alert alert-danger">
<strong>
<i class="ace-icon fa fa-info-circle bigger-150"></i>
{{ error_pass | raw }}
</strong>
<br>
</div>
{% endif %}
<div class="alert alert-info">
<strong>
<i class="ace-icon fa fa-info-circle bigger-150"></i>
{{ 'seguridad.contrasena.inicio' | trans() }}
</strong>
<br><br>
{{ textoFuerzaPass | raw }}
<br>
</div>
<form class="form" name="frmConfirmaIngreso" id="frmConfirmaIngreso" action="{{ path('usuario_cambia_password', {'idUsuario': usuario.id, 'must': must}) }}" method="post">
<table class="table table-bordered">
<tr>
<th style="width: 30%;">
<label>
{% trans %}seguridad.autenticacion.nombre{% endtrans %}:
</label>
</th>
<td>
{{ usuario.nombreCompleto }}
</td>
</tr>
<tr>
<th style="width: 30%;">
<label>
{% trans %}seguridad.autenticacion.user{% endtrans %}:
</label>
</th>
<td>
{{ usuario.username }}
</td>
</tr>
<tr>
<th style="width: 30%;">
<label class="required">
{% trans %}seguridad.autenticacion.actualpassword{% endtrans %}:
</label>
</th>
<td colspan="2">
<input name="password_old" type="password" id="password_old" required="true" style="width:100%;">
</td>
</tr>
<tr>
<th style="width: 30%;">
<label class="required">
{% trans %}seguridad.autenticacion.password{% endtrans %}:
</label>
</th>
<td colspan="2">
<input name="password" type="password" id="password" required="true" style="width:100%;">
</td>
</tr>
<tr>
<th style="width: 30%;">
<label class="required">
{% trans %}seguridad.autenticacion.repassword{% endtrans %}:
</label>
</th>
<td colspan="2">
<input name="confpassword" type="password" id="confpassword" required="true" style="width:100%;">
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center;">
<div class="hr hr-8 hr-dotted"></div>
<input class="btn" type="submit" value="{%trans%}botones.accept{% endtrans%}">
</td>
</tr>
</table>
</form>
</div>
<div class="col-xs-12 col-sm-3 hidden-xs">
</div>
</div>
</div>
</div>
</div>
{% endblock %}