src/templates/Recluta/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.                                     {{ entity.telefono }}
  94.                                 </td>
  95.                             </tr>
  96.                             <tr>
  97.                                 <th style="width: {{ widthLabel }}">
  98.                                     <label>
  99.                                         {% trans from 'crud' %} recluta.fields.telefonoEmergencias {% endtrans %}
  100.                                     </label>
  101.                                 </th>
  102.                                 <td>
  103.                                     {{ entity.telefonoEmergencias }}
  104.                                 </td>
  105.                             </tr>
  106.                             <tr>
  107.                                 <th style="width: {{ widthLabel }}">
  108.                                     <label>
  109.                                         {% trans from 'crud' %} recluta.fields.email {% endtrans %}
  110.                                     </label>
  111.                                 </th>
  112.                                 <td>
  113.                                     {{ entity.email }}
  114.                                 </td>
  115.                             </tr>
  116.                             <tr>
  117.                                 <th style="width: {{ widthLabel }}">
  118.                                     <label>
  119.                                          {% trans from 'crud' %} recluta.fields.estatura {% endtrans %}
  120.                                     </label>
  121.                                 </th>
  122.                                 <td>
  123.                                     {{ entity.estatura }}
  124.                                 </td>
  125.                             </tr>                            
  126.                             <tr>
  127.                                 <th style="width: {{ widthLabel }}">
  128.                                     <label>
  129.                                          {% trans from 'crud' %} recluta.fields.certifCovid {% endtrans %}
  130.                                    </label>
  131.                                 </th>
  132.                                 <td>
  133.                                         {% if entity.getCertifCovid() %}  
  134.                                             <a href="{{ absolute_url(entity.getCertifCovid().getUrl()) }}" target="blank" class="btn btn-success"><i class="bigger-160 ace-icon fa fa-download"></i>Descargar el Certificado Adjunto</a>
  135.                                         {% else %}
  136.                                             <div class="alert alert-danger alert-block">No adjunta certificado</div>
  137.                                         {% endif %}                                    
  138.                                         <br/><br/>    
  139.                                         <div id="certificado_attach">
  140.                                         </div>
  141.                                         <br/>Para descargar el certificado de vacunación acceda a: <a href="https://certificados-vacunas.msp.gob.ec/" target="blank"> VACUNACIÓN MSP ECUADOR - Click Aquí!!!</a>
  142.                                 </td>
  143.                             </tr>
  144.                             
  145.                         </table>
  146.                     </div>
  147.                     <div class="col-xs-12 col-sm-6 col-md-3">
  148.                         <div style="text-align: center">                           
  149.                             {% if entity.getFoto() %}  
  150.                                 <img width="300px" src="{{ absolute_url(entity.getFoto().getUrl()) }}">
  151.                             {% else %}
  152.                                 {% if entity.sexo=='Masculino' %}
  153.                                     <img width="300px" src="{{ asset('images/foto_hombre.jpg') }}">
  154.                                 {% else %}
  155.                                     <img width="300px" src="{{ asset('images/foto_mujer.jpg') }}">
  156.                                 {% endif %}
  157.                             {% endif %}
  158.                         </div>
  159.                     </div>
  160.                     <div class="col-xs-12 col-sm-6 col-md-3">
  161.                         {% if entity.fotoCedula %}
  162.                             <img width="300px" src="data:image/*;base64,{{ entity.fotoCedula }}">
  163.                         {% endif %}
  164.                     </div>
  165.                 </div>
  166.             </div>
  167.         </div>
  168.     </div>
  169.     
  170.     <div class="panel panel-default">
  171.         <div class="panel-heading">
  172.             <h4 class="panel-title green">
  173.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  174.                     <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>
  175.                     &nbsp;Datos de Nacimiento
  176.                 </a>
  177.             </h4>
  178.         </div>
  179.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  180.             <div class="panel-body" style="border-width: 1px; border-color: red">
  181.                 <div class="row">
  182.                     <div class="col-xs-12 col-sm-6">
  183.                         <table class="table table-striped table-bordered table-hover">
  184.                             <tr>
  185.                                 <th style="width: {{ widthLabel }}">
  186.                                     <label>
  187.                                         {% trans from 'crud' %} recluta.fields.fechaNacimiento {% endtrans %}
  188.                                     </label>
  189.                                 </th>
  190.                                 <td>
  191.                                     {{ entity.fechaNacimiento | date('d-m-Y') }}
  192.                                 </td>
  193.                             </tr>
  194.                             <tr>
  195.                                 <th style="width: {{ widthLabel }}">
  196.                                     <label>
  197.                                         {% trans from 'crud' %} recluta.fields.paisNacimiento {% endtrans %}
  198.                                     </label>
  199.                                 </th>
  200.                                 <td>
  201.                                     {{ entity.paisNacimiento }}
  202.                                 </td>
  203.                             </tr>
  204.                             <tr>
  205.                                 <th style="width: {{ widthLabel }}">
  206.                                     <label>
  207.                                         {% trans from 'crud' %} recluta.fields.edad {% endtrans %}
  208.                                     </label>
  209.                                 </th>
  210.                                 <td>
  211.                                     {{ entity.edad }}
  212.                                 </td>
  213.                             </tr>
  214.                         </table>
  215.                     </div>
  216.                     <div class="col-xs-12 col-sm-6">
  217.                         <table class="table table-striped table-bordered table-hover">
  218.                             <tr class="hidden">
  219.                                 <th style="width: {{ widthLabel }}">
  220.                                     <label>
  221.                                         {% trans from 'crud' %} recluta.fields.region {% endtrans %}
  222.                                     </label>
  223.                                 </th>
  224.                                 <td>
  225.                                     {% if entity.lugarNacimiento %}
  226.                                         {{ entity.lugarNacimiento.dominioPadre.dominioPadre.dominioPadre }}
  227.                                     {% endif %}
  228.                                 </td>
  229.                             </tr>
  230.                             <tr class="hidden">
  231.                                 <th style="width: {{ widthLabel }}">
  232.                                     <label>
  233.                                         {% trans from 'crud' %} recluta.fields.provincia {% endtrans %}
  234.                                     </label>
  235.                                 </th>
  236.                                 <td>
  237.                                     {% if entity.lugarNacimiento %}
  238.                                         {{ entity.lugarNacimiento.dominioPadre.dominioPadre }}
  239.                                     {% endif %}
  240.                                 </td>
  241.                             </tr>
  242.                             <tr class="hidden">
  243.                                 <th style="width: {{ widthLabel }}">
  244.                                     <label>
  245.                                         {% trans from 'crud' %} recluta.fields.canton {% endtrans %}
  246.                                     </label>
  247.                                 </th>
  248.                                 <td>
  249.                                     {% if entity.lugarNacimiento %}
  250.                                         {{ entity.lugarNacimiento.dominioPadre }}
  251.                                     {% endif %}
  252.                                 </td>
  253.                             </tr>
  254.                             <tr>
  255.                                 <th style="width: {{ widthLabel }}">
  256.                                     <label>
  257.                                         {% trans from 'crud' %} recluta.fields.lugarNacimiento {% endtrans %}
  258.                                     </label>
  259.                                 </th>
  260.                                 <td>
  261.                                     {{ entity.lugarNacimientoStr }}
  262.                                 </td>
  263.                             </tr>
  264.                         </table>
  265.                     </div>
  266.                 </div>
  267.             </div>
  268.         </div>
  269.     </div>
  270. {% endblock show_data %}