src/templates/Usuario/show.html.twig line 1

Open in your IDE?
  1. {% extends "@crud\\crud\\show.html.twig" %}
  2. {% block principal_heading %}
  3. {% endblock %}
  4. {% block showdata %}
  5.     <div class="container-fluid">
  6.         <div id="accordion" class="accordion-style1 panel-group">
  7.             <div class="panel panel-default">
  8.                 <div class="panel-heading">
  9.                     <h4 class="panel-title">
  10.                         <a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
  11.                             <i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
  12.                             {% set tabtxt = 'usuario.datos.personales' %}
  13.                             &nbsp;{{ tabtxt|trans({},'crud') }}
  14.                         </a>
  15.                     </h4>
  16.                 </div>
  17.                 <div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseOne">
  18.                     <div class="panel-body" style="border-width: 1px; border-color: red">
  19.                         <div class="row">
  20.                             <div id="personFoto" class="col-xs-12 col-sm-6 col-md-2" style="text-align: center">
  21.                                 {% if entity.foto %}                            
  22.                                     <img width="176" height="176" src="{{ entity.foto.url }}">                            
  23.                                 {% else %} 
  24.                                     <img width="176" height="176" src="{{ asset('images/foto_hombre.jpg') }}"> 
  25.                                 {% endif %} 
  26.                             </div>                
  27.                             <div class="col-xs-12 col-sm-6 col-md-10">
  28.                                 <div class="row">
  29.                                     <div class="col-xs-12 col-sm-6">
  30.                                         <table class="table table-striped table-bordered table-hover">
  31.                                             <tr>
  32.                                                 <th style="width: {{ widthLabel }};">
  33.                                                     <label>
  34.                                                         {{ showFields['username']['label']|trans({},'crud') }}
  35.                                                     </label>
  36.                                                 </th>    
  37.                                                 <td>
  38.                                                     {{ entity.username }}
  39.                                                 </td>
  40.                                             </tr>
  41.                                         </table>
  42.                                     </div>
  43.                                     <div class="col-xs-12 col-sm-6">
  44.                                         <table class="table table-striped table-bordered table-hover">
  45.                                             <tr>
  46.                                                 <th style="width: {{ widthLabel }};">
  47.                                                     <label>
  48.                                                         {{ showFields['nombreCompleto']['label']|trans({},'crud') }}
  49.                                                     </label>
  50.                                                 </th>    
  51.                                                 <td>
  52.                                                     {{ entity.nombreCompleto }}
  53.                                                 </td>
  54.                                             </tr>
  55.                                         </table>
  56.                                     </div>
  57.                                 </div>
  58.                                 <div class="row">
  59.                                     <div class="col-xs-12 col-sm-6">
  60.                                         <table class="table table-striped table-bordered table-hover">
  61.                                             <tr>
  62.                                                 <th style="width: {{ widthLabel }};">
  63.                                                     <label>
  64.                                                         {{ showFields['telefono']['label']|trans({},'crud') }}
  65.                                                     </label>
  66.                                                 </th>    
  67.                                                 <td>
  68.                                                     {{ entity.telefono }}
  69.                                                 </td>
  70.                                             </tr>
  71.                                         </table>
  72.                                     </div>
  73.                                     <div class="col-xs-12 col-sm-6">
  74.                                         <table class="table table-striped table-bordered table-hover">
  75.                                             <tr>
  76.                                                 <th style="width: {{ widthLabel }};">
  77.                                                     <label>
  78.                                                         {{ showFields['movil']['label']|trans({},'crud') }}
  79.                                                     </label>
  80.                                                 </th>    
  81.                                                 <td>
  82.                                                     {{ entity.movil }}
  83.                                                 </td>
  84.                                             </tr>
  85.                                         </table>
  86.                                     </div>
  87.                                 </div>
  88.                                 <div class="row">
  89.                                     <div class="col-xs-12 col-sm-6">
  90.                                         <table class="table table-striped table-bordered table-hover">
  91.                                             <tr>
  92.                                                 <th style="width: {{ widthLabel }};">
  93.                                                     <label>
  94.                                                         {{ showFields['email']['label']|trans({},'crud') }}
  95.                                                     </label>
  96.                                                 </th>    
  97.                                                 <td>
  98.                                                     {{ entity.email }}
  99.                                                 </td>
  100.                                             </tr>
  101.                                         </table>
  102.                                     </div>
  103.                                 </div>
  104.                                 {% block cambia_password %}
  105.                                 {% endblock cambia_password %}
  106.                             </div>                
  107.                         </div>    
  108.                     </div>
  109.                 </div>
  110.             </div>            
  111.             <div class="panel panel-default">
  112.                 <div class="panel-heading">
  113.                     <h4 class="panel-title">
  114.                         <a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
  115.                             <i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
  116.                             {% set tabtxt = 'usuario.datos.usuario' %}
  117.                             &nbsp;{{ tabtxt|trans({},'crud') }}
  118.                         </a>
  119.                     </h4>
  120.                 </div>
  121.                 <div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseTwo">
  122.                     <div class="panel-body" style="border-width: 1px; border-color: red">
  123.                         <div class="row">
  124.                             <div class="col-xs-12">
  125.                                 <div class="row">
  126.                                     <div class="col-xs-12 col-sm-4">
  127.                                         <table class="table table-striped table-bordered table-hover">
  128.                                             <tr>
  129.                                                 <th style="width: {{ widthLabel }};">
  130.                                                     <label>
  131.                                                         {{ 'admin.fields.fechaRegistro' | trans({}, 'crud') }}
  132.                                                     </label>
  133.                                                 </th>    
  134.                                                 <td>
  135.                                                     {% if entity.fechaRegistro %}{{ entity.fechaRegistro | date('d/m/Y') }}{% endif %}
  136.                                                 </td>
  137.                                             </tr>
  138.                                         </table>
  139.                                     </div>
  140.                                     <div class="col-xs-12 col-sm-4">
  141.                                         <table class="table table-striped table-bordered table-hover">
  142.                                             <tr>
  143.                                                 <th style="width: {{ widthLabel }};">
  144.                                                     <label>
  145.                                                         {{ 'admin.fields.fechaVigenciaPassword' | trans({}, 'crud') }}
  146.                                                     </label>
  147.                                                 </th>    
  148.                                                 <td>
  149.                                                     {% if entity.fechaVigenciaPassword %}{{ entity.fechaVigenciaPassword | date('d/m/Y') }}{% endif %}
  150.                                                 </td>
  151.                                             </tr>
  152.                                         </table>
  153.                                     </div>
  154.                                     <div class="col-xs-12 col-sm-4">
  155.                                         <table class="table table-striped table-bordered table-hover">
  156.                                             <tr>
  157.                                                 <th style="width: {{ widthLabel }};">
  158.                                                     <label>
  159.                                                         {{ 'admin.fields.intentosFallidos' | trans({}, 'crud') }}
  160.                                                     </label>
  161.                                                 </th>    
  162.                                                 <td>
  163.                                                     {{ entity.intentosFallidos }}
  164.                                                 </td>
  165.                                             </tr>
  166.                                         </table>
  167.                                     </div>
  168.                                 </div>
  169.                                 <div class="row">
  170.                                     <div class="col-xs-12 col-sm-4">
  171.                                         <table class="table table-striped table-bordered table-hover">
  172.                                             <tr>
  173.                                                 <th style="width: {{ widthLabel }};">
  174.                                                     <label>
  175.                                                         {{ 'admin.fields.activo' | trans({}, 'crud') }}
  176.                                                     </label>
  177.                                                 </th>    
  178.                                                 <td>
  179.                                                     <div style="text-align: center">
  180.                                                         <label class="block">
  181.                                                             <input class="ace ace-switch ace-switch-5" type="checkbox" style="width: 100%" {% if entity.activo %}checked="{{ entity.activo }}"{% endif %}>
  182.                                                             <span class="lbl" data-lbl="{{ 'choice_value.yes' | trans({}, 'crud') | upper}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ 'choice_value.no'  | trans({}, 'crud') | upper}}"></span>
  183.                                                         </label>
  184.                                                     </div>        
  185.                                                 </td>
  186.                                             </tr>
  187.                                         </table>
  188.                                     </div>
  189.                                     <div class="col-xs-12 col-sm-4">
  190.                                         <table class="table table-striped table-bordered table-hover">
  191.                                             <tr>
  192.                                                 <th style="width: {{ widthLabel }};">
  193.                                                     <label>
  194.                                                         {{ 'admin.fields.eliminado' | trans({}, 'crud') }}
  195.                                                     </label>
  196.                                                 </th>    
  197.                                                 <td>
  198.                                                     <div style="text-align: center">
  199.                                                         <label class="block">
  200.                                                             <input class="ace ace-switch ace-switch-5" type="checkbox" style="width: 100%" {% if entity.eliminado %}checked="{{ entity.eliminado }}"{% endif %}>
  201.                                                             <span class="lbl" data-lbl="{{ 'choice_value.yes' | trans({}, 'crud') | upper}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ 'choice_value.no'  | trans({}, 'crud') | upper}}"></span>
  202.                                                         </label>
  203.                                                     </div>        
  204.                                                 </td>
  205.                                             </tr>
  206.                                         </table>
  207.                                     </div>
  208.                                     {% if entity.eliminado %}
  209.                                         <div class="col-xs-12 col-sm-4">
  210.                                             <table class="table table-striped table-bordered table-hover">
  211.                                                 <tr>
  212.                                                     <th style="width: {{ widthLabel }};">
  213.                                                         <label>
  214.                                                             {{ 'admin.fields.fechaEliminacion' | trans({}, 'crud') }}
  215.                                                         </label>
  216.                                                     </th>    
  217.                                                     <td>
  218.                                                         {% if entity.fechaEliminacion %}{{ entity.fechaEliminacion | date('d/m/Y') }}{% endif %}
  219.                                                     </td>
  220.                                                 </tr>
  221.                                             </table>
  222.                                         </div>
  223.                                     {% endif %}
  224.                                 </div>
  225.                                 {% if not entity.activo %}
  226.                                     <div class="row">
  227.                                         <div class="col-xs-12">
  228.                                             <table class="table table-striped table-bordered table-hover">
  229.                                                 <tr>
  230.                                                     <th style="width: {{ widthLabel }};">
  231.                                                         <label>
  232.                                                             {{ 'admin.fields.causaBloqueo' | trans({}, 'crud') }}
  233.                                                         </label>
  234.                                                     </th>    
  235.                                                     <td>
  236.                                                         {{ entity.causaBloqueo }}
  237.                                                     </td>
  238.                                                 </tr>
  239.                                             </table>
  240.                                         </div>
  241.                                     </div>
  242.                                 {% endif %}
  243.                             </div>                
  244.                         </div>    
  245.                     </div>
  246.                 </div>
  247.             </div>            
  248.             <div class="panel panel-default">
  249.                 <div class="panel-heading">
  250.                     <h4 class="panel-title">
  251.                         <a id="atab-1" aria-expanded="false" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
  252.                             <i class="bigger-110 fas fa-angle-right" data-icon-hide="fas fa-angle-down" data-icon-show="fas fa-angle-right"></i>
  253.                             {% set tabtxt = 'usuario.datos.assignedRoles' %}
  254.                             &nbsp;{{ tabtxt|trans({},'crud') }}
  255.                         </a>
  256.                     </h4>
  257.                 </div>
  258.                 <div style="" aria-expanded="false" class="panel-collapse collapse in" id="collapseThree">
  259.                     <div class="panel-body" style="border-width: 1px; border-color: red">
  260.                         {% for rol in entity.assignedRoles %}
  261.                             <div class="row">
  262.                                 <div class="col-xs-12">
  263.                                     {{ rol }} 
  264.                                 </div>                
  265.                             </div> 
  266.                         {% endfor %}
  267.                     </div>
  268.                 </div>
  269.             </div>            
  270.         </div>    
  271.     </div>
  272. {% endblock %}