{% extends "@crud\\crud\\show.html.twig" %}
{% block principal_heading %}
{% endblock %}
{% block showdata %}
<div class="container-fluid">
<div id="accordion" class="accordion-style1 panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
<i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
{% set tabtxt = 'usuario.datos.personales' %}
{{ tabtxt|trans({},'crud') }}
</a>
</h4>
</div>
<div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseOne">
<div class="panel-body" style="border-width: 1px; border-color: red">
<div class="row">
<div id="personFoto" class="col-xs-12 col-sm-6 col-md-2" style="text-align: center">
{% if entity.foto %}
<img width="176" height="176" src="{{ entity.foto.url }}">
{% else %}
<img width="176" height="176" src="{{ asset('images/foto_hombre.jpg') }}">
{% endif %}
</div>
<div class="col-xs-12 col-sm-6 col-md-10">
<div class="row">
<div class="col-xs-12 col-sm-6">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ showFields['username']['label']|trans({},'crud') }}
</label>
</th>
<td>
{{ entity.username }}
</td>
</tr>
</table>
</div>
<div class="col-xs-12 col-sm-6">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ showFields['nombreCompleto']['label']|trans({},'crud') }}
</label>
</th>
<td>
{{ entity.nombreCompleto }}
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ showFields['telefono']['label']|trans({},'crud') }}
</label>
</th>
<td>
{{ entity.telefono }}
</td>
</tr>
</table>
</div>
<div class="col-xs-12 col-sm-6">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ showFields['movil']['label']|trans({},'crud') }}
</label>
</th>
<td>
{{ entity.movil }}
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ showFields['email']['label']|trans({},'crud') }}
</label>
</th>
<td>
{{ entity.email }}
</td>
</tr>
</table>
</div>
</div>
{% block cambia_password %}
{% endblock cambia_password %}
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
<i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
{% set tabtxt = 'usuario.datos.usuario' %}
{{ tabtxt|trans({},'crud') }}
</a>
</h4>
</div>
<div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseTwo">
<div class="panel-body" style="border-width: 1px; border-color: red">
<div class="row">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.fechaRegistro' | trans({}, 'crud') }}
</label>
</th>
<td>
{% if entity.fechaRegistro %}{{ entity.fechaRegistro | date('d/m/Y') }}{% endif %}
</td>
</tr>
</table>
</div>
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.fechaVigenciaPassword' | trans({}, 'crud') }}
</label>
</th>
<td>
{% if entity.fechaVigenciaPassword %}{{ entity.fechaVigenciaPassword | date('d/m/Y') }}{% endif %}
</td>
</tr>
</table>
</div>
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.intentosFallidos' | trans({}, 'crud') }}
</label>
</th>
<td>
{{ entity.intentosFallidos }}
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.activo' | trans({}, 'crud') }}
</label>
</th>
<td>
<div style="text-align: center">
<label class="block">
<input class="ace ace-switch ace-switch-5" type="checkbox" style="width: 100%" {% if entity.activo %}checked="{{ entity.activo }}"{% endif %}>
<span class="lbl" data-lbl="{{ 'choice_value.yes' | trans({}, 'crud') | upper}} {{ 'choice_value.no' | trans({}, 'crud') | upper}}"></span>
</label>
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.eliminado' | trans({}, 'crud') }}
</label>
</th>
<td>
<div style="text-align: center">
<label class="block">
<input class="ace ace-switch ace-switch-5" type="checkbox" style="width: 100%" {% if entity.eliminado %}checked="{{ entity.eliminado }}"{% endif %}>
<span class="lbl" data-lbl="{{ 'choice_value.yes' | trans({}, 'crud') | upper}} {{ 'choice_value.no' | trans({}, 'crud') | upper}}"></span>
</label>
</div>
</td>
</tr>
</table>
</div>
{% if entity.eliminado %}
<div class="col-xs-12 col-sm-4">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.fechaEliminacion' | trans({}, 'crud') }}
</label>
</th>
<td>
{% if entity.fechaEliminacion %}{{ entity.fechaEliminacion | date('d/m/Y') }}{% endif %}
</td>
</tr>
</table>
</div>
{% endif %}
</div>
{% if not entity.activo %}
<div class="row">
<div class="col-xs-12">
<table class="table table-striped table-bordered table-hover">
<tr>
<th style="width: {{ widthLabel }};">
<label>
{{ 'admin.fields.causaBloqueo' | trans({}, 'crud') }}
</label>
</th>
<td>
{{ entity.causaBloqueo }}
</td>
</tr>
</table>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
<i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
{% set tabtxt = 'usuario.datos.assignedRoles' %}
{{ tabtxt|trans({},'crud') }}
</a>
</h4>
</div>
<div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseThree">
<div class="panel-body" style="border-width: 1px; border-color: red">
{% for rol in entity.assignedRoles %}
<div class="row">
<div class="col-xs-12">
{{ rol }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}