src/templates/Reservistas/show_data.html.twig line 1

Open in your IDE?
  1. {% extends "@crud\\crud\\show_data.html.twig" %}
  2. {% block show_data %}  
  3.         {% if parentRouteClassName == 'certificadovacunacion' %}
  4.             <script>
  5.                 jQuery().ready(function ($) {
  6.                     var urlcovid = '{{ path('dropzone_single_show_component', {'routeClassName': 'recluta', 'field': 'certifCovid', 'parentId':'__ID__', 'acceptedFiles':'.pdf', 'txt': 'CERTIFICADO DE VACUNACIÓN'}) }}';
  7.                     urlcovid=urlcovid.replace('__ID__', {{ entity.id }});
  8.                     $('#certificado_attach').load(urlcovid);
  9.                 });
  10.             </script>
  11.     {% endif %}
  12.     <div class="panel panel-default">
  13.         <div class="panel-heading">
  14.             <h4 class="panel-title green">
  15.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  16.                     <i class="bigger-160 ace-icon fa fa-user " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  17.                     &nbsp;Datos personales
  18.                 </a>
  19.             </h4>
  20.         </div>
  21.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  22.             <div class="panel-body" style="border-width: 1px; border-color: red">
  23.                 <div class="row">
  24.                     <div class="col-xs-12 col-sm-6">
  25.                         <table class="table table-striped table-bordered table-hover">
  26.                             <tr>
  27.                                 <th style="width: {{ widthLabel }}">
  28.                                     <label>
  29.                                         {% trans from 'crud' %} recluta.fields.cedula {% endtrans %}
  30.                                     </label>
  31.                                 </th>
  32.                                 <td>
  33.                                     {{ entity.identificacion }}
  34.                                 </td>
  35.                             </tr>
  36.                             <!--tr>
  37.                                 <th style="width: {{ widthLabel }}">
  38.                                     <label>
  39.                                         {% trans from 'crud' %} recluta.fields.apellidoPaterno {% endtrans %}
  40.                                     </label>
  41.                                 </th>
  42.                                 <td>
  43.                                     {{ entity.apellidoPaterno }}
  44.                                 </td>
  45.                             </tr>
  46.                             <tr>
  47.                                 <th style="width: {{ widthLabel }}">
  48.                                     <label>
  49.                                         {% trans from 'crud' %} recluta.fields.apellidoMaterno {% endtrans %}
  50.                                     </label>
  51.                                 </th>
  52.                                 <td>
  53.                                     {{ entity.apellidoMaterno }}
  54.                                 </td>
  55.                             </tr-->
  56.                             <tr>
  57.                                 <th style="width: {{ widthLabel }}">
  58.                                     <label>
  59.                                         {% trans from 'crud' %} recluta.fields.nombres {% endtrans %}
  60.                                     </label>
  61.                                 </th>
  62.                                 <td>
  63.                                     {{ entity.nombres }}
  64.                                 </td>
  65.                             </tr>
  66.                             <tr>
  67.                                 <th style="width: {{ widthLabel }}">
  68.                                     <label>
  69.                                         {% trans from 'crud' %} recluta.fields.sexo {% endtrans %}
  70.                                     </label>
  71.                                 </th>
  72.                                 <td>
  73.                                     {{ entity.sexo }}
  74.                                 </td>
  75.                             </tr>
  76.                             <tr>
  77.                                 <th style="width: {{ widthLabel }}">
  78.                                     <label>
  79.                                         {% trans from 'crud' %} recluta.fields.estadoCivil {% endtrans %}
  80.                                     </label>
  81.                                 </th>
  82.                                 <td>
  83.                                     {{ entity.estadoCivil }}
  84.                                 </td>
  85.                             </tr>
  86.                             <tr>
  87.                                 <th style="width: {{ widthLabel }}">
  88.                                     <label>
  89.                                         {% trans from 'crud' %} recluta.fields.telefono {% endtrans %}
  90.                                     </label>
  91.                                 </th>
  92.                                 <td>
  93.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  94.                                         <input type="text" style="width:100%" class="quick_update_input" classname="Reservista" entityid="{{ entity.id }}" field="telefono" value="{{ entity.telefono }}" actualvalue="{{ entity.telefono }}">
  95.                                         <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  96.                                         <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  97.                                     {% else %}
  98.                                         <span id="infotelefono">{{ entity.telefono }}</span>
  99.                                     {% endif %}
  100.                                 </td>
  101.                             </tr>
  102.                             <tr>
  103.                                 <th style="width: {{ widthLabel }}">
  104.                                     <label>
  105.                                         {% trans from 'crud' %} recluta.fields.telefonoEmergencias {% endtrans %}
  106.                                     </label>
  107.                                 </th>
  108.                                 <td>
  109.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  110.                                         <input type="text" style="width:100%" class="quick_update_input" classname="Reservista" entityid="{{ entity.id }}" field="telefonoEmergencias" value="{{ entity.telefonoEmergencias }}" actualvalue="{{ entity.telefonoEmergencias }}">
  111.                                         <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  112.                                         <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  113.                                     {% else %}
  114.                                         {{ entity.telefonoEmergencias }}
  115.                                     {% endif %}
  116.                                 </td>
  117.                             </tr>
  118.                             <tr>
  119.                                 <th style="width: {{ widthLabel }}">
  120.                                     <label>
  121.                                         {% trans from 'crud' %} recluta.fields.email {% endtrans %}
  122.                                     </label>
  123.                                 </th>
  124.                                 <td>
  125.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  126.                                         <input type="text" style="width:100%" class="quick_update_input" classname="Reservista" entityid="{{ entity.id }}" field="email" value="{{ entity.email }}" actualvalue="{{ entity.email }}">
  127.                                         <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  128.                                         <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  129.                                     {% else %}
  130.                                         {{ entity.email }}
  131.                                     {% endif %}
  132.                                 </td>
  133.                             </tr>
  134.                             <tr>
  135.                                 <th style="width: {{ widthLabel }}">
  136.                                     <label>
  137.                                          {% trans from 'crud' %} recluta.fields.estatura {% endtrans %}
  138.                                     </label>
  139.                                 </th>
  140.                                 <td>
  141.                                     {{ entity.estatura }}
  142.                                 </td>
  143.                             </tr>                            
  144.                             <tr>
  145.                                 <th style="width: {{ widthLabel }}">
  146.                                     <label>
  147.                                          {% trans from 'crud' %} recluta.fields.certifCovid {% endtrans %}
  148.                                    </label>
  149.                                 </th>
  150.                                 <td>
  151.                                     <div id="certificado_attach">
  152.                                     </div>
  153.                                     {% if parentRouteClassName != 'certificadovacunacion' %}
  154.                                         {% if entity.getCertifCovid() %}  
  155.                                             <a href="{{ absolute_url(entity.getCertifCovid().getUrl()) }}" target="blank" class="btn btn-success"><i class="bigger-160 ace-icon fa fa-download"></i>Ver Certificado Vacunación</a>
  156.                                         {% else %}
  157.                                             No adjunta certificado
  158.                                         {% endif %}                                    
  159.                                     {% endif %}                                    
  160.                                 </td>
  161.                             </tr>
  162.                             
  163.                         </table>
  164.                     </div>
  165.                     <div class="col-xs-12 col-sm-6 col-md-3">
  166.                         <div style="text-align: center">                           
  167.                             {% if entity.getFoto() %}  
  168.                                 <img width="300px" src="{{ absolute_url(entity.getFoto().getUrl()) }}">
  169.                             {% else %}
  170.                                 {% if entity.sexo=='Masculino' %}
  171.                                     <img width="300px" src="{{ asset('images/foto_hombre.jpg') }}">
  172.                                 {% else %}
  173.                                     <img width="300px" src="{{ asset('images/foto_mujer.jpg') }}">
  174.                                 {% endif %}
  175.                             {% endif %}
  176.                         </div>
  177.                     </div>
  178.                     <!--div class="col-xs-12 col-sm-6 col-md-3">
  179.                         {% if entity.fotoCedula %}
  180.                             <img width="300px" src="data:image/*;base64,{{ entity.fotoCedula }}">
  181.                         {% endif %}
  182.                     </div-->
  183.                 </div>
  184.             </div>
  185.         </div>
  186.     </div>
  187.     
  188.     <div class="panel panel-default">
  189.         <div class="panel-heading">
  190.             <h4 class="panel-title green">
  191.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosNacimiento">
  192.                     <i class="bigger-160 ace-icon fa fa-building " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  193.                     &nbsp;Datos de Nacimiento
  194.                 </a>
  195.             </h4>
  196.         </div>
  197.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosNacimiento">
  198.             <div class="panel-body" style="border-width: 1px; border-color: red">
  199.                 <div class="row">
  200.                     <div class="col-xs-12 col-sm-6">
  201.                         <table class="table table-striped table-bordered table-hover">
  202.                             <tr>
  203.                                 <th style="width: {{ widthLabel }}">
  204.                                     <label>
  205.                                         {% trans from 'crud' %} recluta.fields.fechaNacimiento {% endtrans %}
  206.                                     </label>
  207.                                 </th>
  208.                                 <td>
  209.                                     {{ entity.fechaNacimiento | date('d-m-Y') }}
  210.                                 </td>
  211.                             </tr>
  212.                             <tr>
  213.                                 <th style="width: {{ widthLabel }}">
  214.                                     <label>
  215.                                         {% trans from 'crud' %} recluta.fields.paisNacimiento {% endtrans %}
  216.                                     </label>
  217.                                 </th>
  218.                                 <td>
  219.                                     {{ entity.paisNacimiento }}
  220.                                 </td>
  221.                             </tr>
  222.                             <tr>
  223.                                 <th style="width: {{ widthLabel }}">
  224.                                     <label>
  225.                                         {% trans from 'crud' %} recluta.fields.edad {% endtrans %}
  226.                                     </label>
  227.                                 </th>
  228.                                 <td>
  229.                                     {{ entity.edad }}
  230.                                 </td>
  231.                             </tr>
  232.                         </table>
  233.                     </div>
  234.                     <div class="col-xs-12 col-sm-6">
  235.                         <table class="table table-striped table-bordered table-hover">
  236.                             <tr class="hidden">
  237.                                 <th style="width: {{ widthLabel }}">
  238.                                     <label>
  239.                                         {% trans from 'crud' %} recluta.fields.region {% endtrans %}
  240.                                     </label>
  241.                                 </th>
  242.                                 <td>
  243.                                     {% if entity.lugarNacimiento %}
  244.                                         {{ entity.lugarNacimiento.dominioPadre.dominioPadre.dominioPadre }}
  245.                                     {% endif %}
  246.                                 </td>
  247.                             </tr>
  248.                             <tr class="hidden">
  249.                                 <th style="width: {{ widthLabel }}">
  250.                                     <label>
  251.                                         {% trans from 'crud' %} recluta.fields.provincia {% endtrans %}
  252.                                     </label>
  253.                                 </th>
  254.                                 <td>
  255.                                     {% if entity.lugarNacimiento %}
  256.                                         {{ entity.lugarNacimiento.dominioPadre.dominioPadre }}
  257.                                     {% endif %}
  258.                                 </td>
  259.                             </tr>
  260.                             <tr class="hidden">
  261.                                 <th style="width: {{ widthLabel }}">
  262.                                     <label>
  263.                                         {% trans from 'crud' %} recluta.fields.canton {% endtrans %}
  264.                                     </label>
  265.                                 </th>
  266.                                 <td>
  267.                                     {% if entity.lugarNacimiento %}
  268.                                         {{ entity.lugarNacimiento.dominioPadre }}
  269.                                     {% endif %}
  270.                                 </td>
  271.                             </tr>
  272.                             <tr>
  273.                                 <th style="width: {{ widthLabel }}">
  274.                                     <label>
  275.                                         {% trans from 'crud' %} recluta.fields.lugarNacimiento {% endtrans %}
  276.                                     </label>
  277.                                 </th>
  278.                                 <td>
  279.                                     {{ entity.lugarNacimientoStr }}
  280.                                 </td>
  281.                             </tr>
  282.                         </table>
  283.                     </div>
  284.                 </div>
  285.             </div>
  286.         </div>
  287.     </div>
  288. {% endblock show_data %}