src/templates/ReclutaProceso/show.html.twig line 403

Open in your IDE?
  1. {% extends "@crud\\crud\\show.html.twig" %}
  2. {% block jquery %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         $(function()
  6.         {
  7.             $(".resultado").click(function(e){
  8.                 if ($('#resultadoIdoneo').prop('checked'))
  9.                 {
  10.                     $('#trUnidadAsignar').removeClass('hide');
  11.                     $('#trCausaRechazo').addClass('hide');
  12.                     $('#trObservaciones').addClass('hide');
  13.                     $('#trVolver').addClass('hide');
  14.                 }
  15.                 else
  16.                 {
  17.                     $('#trUnidadAsignar').addClass('hide');
  18.                     $('#trUnidad').addClass('hide');
  19.                     $('#trCausaRechazo').removeClass('hide');
  20.                     $('#trObservaciones').removeClass('hide');
  21.                     $('#trVolver').removeClass('hide');
  22.                 }
  23.             });        
  24.             $("#botonAsignar").click(function(e){
  25.                 e.preventDefault();
  26.                 $('#divResultado').mask('&nbsp;&nbsp;&nbsp;&nbsp;Asignando unidad...');
  27.                 var url = $(this).attr('href');
  28.                 $.getJSON(url , function(result){
  29.                     $('#divResultado').unmask();
  30.                     if (result.ok)
  31.                     {
  32.                         if (result.choose)
  33.                         {
  34.                             $("#chooseCentro").html(result.centro);
  35.                             $("#selectUnidad").html(result.unidades);
  36.                     $("#selectUnidad").addClass('chosen-select');
  37.                     $('.chosen-select').chosen({allow_single_deselect:true}); 
  38.                             $("#chooseUnidad").dialog("open");
  39.                         }
  40.                         else
  41.                         {
  42.                             $('#trUnidadAsignar').addClass('hide');
  43.                             $('#trUnidad').removeClass('hide');
  44.                             $('#span_unidad').html(result.unidad);
  45.                             $('#form_unidad').val(result.unidadId);
  46.                             $('#span_centro').html(result.centro);
  47.                         }
  48.                     }
  49.                     else
  50.                     {
  51.                         showError(bootbox, result.msg);
  52.                     }
  53.                 });
  54.             }); 
  55.             $("#botonTerminar").click(function(e){
  56.                 e.preventDefault();
  57.                 var ok=true;
  58.                 var msg='';
  59.                 if ($('#resultadoIdoneo').prop('checked'))
  60.                 {
  61.                     if (!$('#form_unidad').val())
  62.                     {
  63.                         ok=false;
  64.                         msg = 'Debe asignar la unidad militar';
  65.                     }
  66.                 }
  67.                 else
  68.                 {
  69.                     if ($('#resultadoNoIdoneo').prop('checked'))
  70.                     {
  71.                         if (!($('#causaPsicologica').prop('checked') || $('#causaMedica').prop('checked') || $('#causaLaboratorios').prop('checked')))
  72.                         {
  73.                             ok=false;
  74.                             msg = 'Debe asignar la causa de rechazo';
  75.                         }
  76.                         else
  77.                         {
  78.                             if (!$('#observaciones').val())
  79.                             {
  80.                                 ok=false;
  81.                                 msg = 'Debe indicar las observaciones acerca del rechazo';
  82.                             }
  83.                             else
  84.                             {
  85.                                 if (!($('#volverEste').prop('checked') || $('#volverProximo').prop('checked') || $('#volverNunca').prop('checked')))
  86.                                 {
  87.                                     ok=false;
  88.                                     msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
  89.                                 }
  90.                             }
  91.                         }
  92.                     }
  93.                     else
  94.                     {
  95.                         ok=false;
  96.                         msg = 'Debe indicar un resultado del proceso';
  97.                     }
  98.                 }
  99.                 if (ok)
  100.                 {
  101.                     $('#divResultado').mask('&nbsp;&nbsp;&nbsp;&nbsp;Terminando proceso...');
  102.                     $('#form_resultados').ajaxSubmit({
  103.                         type: $('#form_resultados').attr('method'),
  104.                         url: $('#form_resultados').attr('action'),
  105.                         dataType: 'json',
  106.                         data: { _xml_http_request: true },
  107.                         success: function(data) {
  108.                             if (data.ok)
  109.                             {  
  110.                                 if (data.fullMasculino || data.fullFemenino)
  111.                                 {
  112.                                     var genero='';
  113.                                     if (data.fullMasculino)
  114.                                         genero = 'masculino';
  115.                                     else
  116.                                         genero = 'femenino';
  117.                                     jConfirm('Asignación exitosa. Con esta asignación se ha alcanzado el cupo '+genero+' de la unidad. ¿Desea ver la nómina de los asignados a la unidad?', 'Alerta', 
  118.                                         function(r) {
  119.                                             if (r) {
  120.                                                 var url = '{{ path('ajax_nominaPDF', {'proceso': entity.procesoReclutamiento.id, 'unidad':'__UNIDAD__'}) }}';
  121.                                                 url = url.replace('__UNIDAD__', data.unidadId);
  122.                                                 $.ajax({
  123.                                                    type: "GET",                              
  124.                                                    url:  url,
  125.                                                    //dataType: 'html',
  126.                                                    //data: { _xml_http_request: true },
  127.                                                    success: function(data){
  128.                                                         var mio=0;
  129.                                                         window.open('{{ path('exportar_reporte_PDF', {'routeClassName': 'listaasignacionunidad'}) }}', '_blank');
  130.                                                         document.location.reload();
  131.                                                    }
  132.                                     });
  133.                                 }
  134.                                     });
  135.                                 }
  136.                                 else
  137.                                     document.location.reload();
  138.                             }
  139.                             else
  140.                             {
  141.                                 $('#divResultado').unmask();
  142.                                 showError(bootbox, data.msg);
  143.                             }
  144.                         }
  145.                     })
  146.                 }
  147.                 else
  148.                 {
  149.                     showError(bootbox, msg);
  150.                 }
  151.             }); 
  152.             $('#chooseUnidad').dialog ({
  153.                 autoOpen : false,
  154.                 height: 500,
  155.                 width: 500,
  156.                 modal: true,
  157.                 resizable: false,
  158.                 title: '<div id="texto" class="widget-header widget-header-small"><h4 class="smaller green"><i class="fas fa-home"></i>&nbsp;Seleccionar Unidad Militar</h4></div>',
  159.                 title_html: true,
  160.                 buttons: {
  161.                     Asignar: function() {
  162.                         if ($("#selectUnidad").val())
  163.                         {
  164.                             $('#trUnidadAsignar').addClass('hide');
  165.                             $('#trUnidad').removeClass('hide');
  166.                             $('#span_unidad').html($('#selectUnidad option:selected').text());
  167.                             $('#form_unidad').val($("#selectUnidad").val());
  168.                             $('#span_centro').html($('#chooseCentro').html());
  169.                             $( "#chooseUnidad" ).dialog( "close" );
  170.                         }
  171.                         else
  172.                         alert('Debe seleccionar una unidad');
  173.                     },
  174.                     Cancelar: function() {
  175.                         $( "#chooseUnidad" ).dialog( "close" );
  176.                     }
  177.                 }
  178.             });    
  179.         
  180.         });
  181.         
  182.     </script>    
  183.         
  184. {% endblock %}
  185. {% block principal_heading %}
  186.     <div class="widget-header widget-header-flat">
  187.         <h4 class="widget-title lighter">
  188.             <i class="fas fa-search orange"></i>
  189.             Visualización del aspirante
  190.         </h4>
  191.     <!--div class="widget-toolbar">
  192.         <a href="#" data-action="collapse">
  193.             <i class="fas fa-chevron-up"></i>
  194.         </a>
  195.     </div-->
  196.     </div>
  197. {% endblock %}
  198. {% block showdata %}
  199.     
  200.     {% block prev_acuartelamiento %}        
  201.     {% endblock prev_acuartelamiento %} 
  202.                         
  203.     {{ render(controller('App\\Crud\\Controller\\crudPlainController::showAction', {'rol': rol, 'routeClassName':'recluta', 'id':entity.recluta, 'parentRouteClassName':routeClassName })) }}
  204.     <div class="panel panel-default">
  205.         <div class="panel-heading">
  206.             <h4 class="panel-title green">
  207.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  208.                     <i class="bigger-160 ace-icon fa fa-home " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  209.                     &nbsp;Lugar de residencia
  210.                 </a>
  211.             </h4>
  212.         </div>
  213.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  214.             <div class="panel-body" style="border-width: 1px; border-color: red">
  215.                 <div class="row">
  216.                     <div class="col-xs-12 col-sm-6">
  217.                         <table class="table table-striped table-bordered table-hover">
  218.                             <tr>
  219.                                 <th style="width: {{ widthLabel }}">
  220.                                     <label>
  221.                                         {% trans from 'crud' %} reclutaproceso.fields.paisResidencia {% endtrans %}
  222.                                     </label>
  223.                                 </th>
  224.                                 <td>
  225.                                     {{ entity.paisResidencia }}
  226.                                 </td>
  227.                             </tr>
  228.                             {% if entity.paisResidencia=='Ecuador' %}
  229.                                 <tr>
  230.                                     <th style="width: {{ widthLabel }}">
  231.                                         <label>
  232.                                         {% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}
  233.                                         </label>
  234.                                     </th>
  235.                                     <td>
  236.                                         {{ entity.region }}
  237.                                     </td>
  238.                                 </tr>
  239.                                 <tr>
  240.                                     <th style="width: {{ widthLabel }}">
  241.                                         <label>
  242.                                         {% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}
  243.                                         </label>
  244.                                     </th>
  245.                                     <td>
  246.                                         {{ entity.provincia }}
  247.                                     </td>
  248.                                 </tr>
  249.                                 <tr>
  250.                                     <th style="width: {{ widthLabel }}">
  251.                                         <label>
  252.                                         {% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}
  253.                                         </label>
  254.                                     </th>
  255.                                     <td>
  256.                                         {{ entity.canton }}
  257.                                     </td>
  258.                                 </tr>
  259.                                 <tr>
  260.                                     <th style="width: {{ widthLabel }}">
  261.                                         <label>
  262.                                         {% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}
  263.                                         </label>
  264.                                     </th>
  265.                                     <td>
  266.                                         {{ entity.lugarResidencia }}
  267.                                     </td>
  268.                                 </tr>
  269.                             {% endif %}
  270.                         </table>
  271.                     </div>
  272.                     <div class="col-xs-12 col-sm-6">
  273.                         <table class="table table-striped table-bordered table-hover">
  274.                             {% if entity.paisResidencia=='Ecuador' %}
  275.                                 <tr>
  276.                                     <th style="width: {{ widthLabel }}">
  277.                                         <label>
  278.                                         {% trans from 'crud' %} reclutaproceso.fields.callePrincipalResidencia {% endtrans %}
  279.                                         </label>
  280.                                     </th>
  281.                                     <td>
  282.                                         {{ entity.callePrincipalResidencia }}
  283.                                     </td>
  284.                                 </tr>
  285.                                 <tr>
  286.                                     <th style="width: {{ widthLabel }}">
  287.                                         <label>
  288.                                         {% trans from 'crud' %} reclutaproceso.fields.calleSecundariaResidencia {% endtrans %}
  289.                                         </label>
  290.                                     </th>
  291.                                     <td>
  292.                                         {{ entity.calleSecundariaResidencia }}
  293.                                     </td>
  294.                                 </tr>
  295.                                 <tr>
  296.                                     <th style="width: {{ widthLabel }}">
  297.                                         <label>
  298.                                         {% trans from 'crud' %} reclutaproceso.fields.numeroCasa {% endtrans %}
  299.                                         </label>
  300.                                     </th>
  301.                                     <td>
  302.                                         {{ entity.numeroCasa }}
  303.                                     </td>
  304.                                 </tr>
  305.                                 <tr>
  306.                                     <th style="width: {{ widthLabel }}">
  307.                                         <label>
  308.                                         {% trans from 'crud' %} reclutaproceso.fields.referencias {% endtrans %}
  309.                                         </label>
  310.                                     </th>
  311.                                     <td>
  312.                                         {{ entity.referencias }}
  313.                                     </td>
  314.                                 </tr>
  315.                             {% else %}
  316.                                 <tr>
  317.                                     <th style="width: {{ widthLabel }}">
  318.                                         <label>
  319.                                         {% trans from 'crud' %} reclutaproceso.fields.direccion {% endtrans %}
  320.                                         </label>
  321.                                     </th>
  322.                                     <td>
  323.                                         {{ entity.referencias }}
  324.                                     </td>
  325.                                 </tr>
  326.                             {% endif %}
  327.                         </table>
  328.                     </div>
  329.                 </div>
  330.             </div>
  331.         </div>
  332.     </div>
  333.     <div class="panel panel-default">
  334.         <div class="panel-heading">
  335.             <h4 class="panel-title green">
  336.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  337.                     <i class="bigger-160 ace-icon fa fa-home " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  338.                     &nbsp;Datos del acuartelamiento
  339.                 </a>
  340.             </h4>
  341.         </div>
  342.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  343.             <div class="panel-body" style="border-width: 1px; border-color: red">
  344.                 <div class="row">
  345.                     <div class="col-xs-12">
  346.                         <table id="tabla_acuartelamiento" class="table table-striped table-bordered table-hover">
  347.                             <tr>
  348.                                 <th style="width: {{ widthLabel }}">
  349.                                     <label>
  350.                                         {% trans from 'crud' %} reclutaproceso.fields.centroMovilizacion {% endtrans %}
  351.                                     </label>
  352.                                 </th>
  353.                                 <td>
  354.                                     {% block centro_movilizacion %}
  355.                                     {{ entity.centroMovilizacion }}
  356.                                     {% endblock centro_movilizacion %}
  357.                                 </td>
  358.                             </tr>
  359.                             <tr>
  360.                                 <th style="width: {{ widthLabel }}">
  361.                                     <label>
  362.                                         {% trans from 'crud' %} reclutaproceso.fields.direccionAcuartelamiento {% endtrans %}
  363.                                     </label>
  364.                                 </th>
  365.                                 <td>
  366.                                     <span id="direccion_acuartelamiento">
  367.                                         {{ entity.centroMovilizacion.direccionAcuartelamiento?entity.centroMovilizacion.direccionAcuartelamiento:entity.centroMovilizacion.direccion }}
  368.                                     </span>
  369.                                 </td>
  370.                             </tr>
  371.                             {#% if entity.turno %}
  372.                                 <tr>
  373.                                     <th style="width: {{ widthLabel }}">
  374.                                         <label>
  375.                                             {% trans from 'crud' %} reclutaproceso.fields.turno {% endtrans %}
  376.                                         </label>
  377.                                     </th>
  378.                                     <td>
  379.                                         <span id="span_turno">
  380.                                         {{ entity.turno }}
  381.                                         </span>
  382.                                     </td>
  383.                                 </tr>
  384.                             {% endif %#}
  385.                             <tr>
  386.                                 <th style="width: {{ widthLabel }}">
  387.                                     <label>
  388.                                         {% trans from 'crud' %} reclutaproceso.fields.resultadosAntecedentes {% endtrans %}
  389.                                     </label>
  390.                                 </th>
  391.                                 <td>
  392.                                     <p><input type='radio' id='antecedentes_1' {% if entity.resultadosAntecedentes==1%}checked='true'{% endif %} disabled='true'>&nbsp;Antecedentes penales</p>   
  393.                                     <p><input type='radio' id='antecedentes_2' {% if entity.resultadosAntecedentes==2%}checked='true'{% endif %} disabled='true'>&nbsp;Impedimento de salida del país</p>   
  394.                                     <p><input type='radio' id='antecedentes_3' {% if entity.resultadosAntecedentes==3%}checked='true'{% endif %} disabled='true'>&nbsp;Alerta migratoria</p>   
  395.                                     <p><input type='radio' id='antecedentes_4' {% if entity.resultadosAntecedentes==4%}checked='true'{% endif %} disabled='true'>&nbsp;Orden de Captura</p>   
  396.                                 </td>   
  397.                             </tr>
  398.                             <tr>
  399.                                 <th style="width: {{ widthLabel }}">
  400.                                     <label>
  401.                                         {% trans from 'crud' %} reclutaproceso.fields.nivelInstruccion {% endtrans %}:
  402.                                     </label>
  403.                                 </th>
  404.                                 <td>
  405.                                     <table class="table">
  406.                                         <tr>
  407.                                             <th>{% trans from 'crud' %} reclutaproceso.fields.estudioInstitucion {% endtrans %}</th>
  408.                                             <th>{% trans from 'crud' %} reclutaproceso.fields.estudioTitulo {% endtrans %}</th>
  409.                                         </tr>
  410.                                         {% for estudio in entity.resultadosEstudios %}
  411.                                             <tr>                                               
  412.                                                 <td>{{ estudio.institucion }}</td>
  413.                                                 <td>{{ estudio.titulo }}</td>
  414.                                             </tr>
  415.                                         {% endfor %}
  416.                                     </table>
  417.                                 </td>
  418.                             </tr>
  419.                             <tr>
  420.                                 <th style="width: {{ widthLabel }}">
  421.                                     <label>
  422.                                         Encuesta psicológica:
  423.                                     </label>
  424.                                 </th>
  425.                                 <td>
  426.                                     {% if entity.turno %}
  427.                                         Terminada
  428.                                     {% else %}
  429.                                         No terminada
  430.                                     {% endif %}
  431.                                 </td>
  432.                                 </tr>
  433.                         </table>
  434.                         {% block more_acuartelamiento %}        
  435.                         {% endblock more_acuartelamiento %}        
  436.                     </div>
  437.                 </div>
  438.             </div>
  439.         </div>
  440.     </div>
  441. <!--
  442.     {% block more_seccion %}        
  443.         <div class="panel panel-default">
  444.             <div class="panel-heading">
  445.                 <h4 class="panel-title green">
  446.                     <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  447.                         <i class="bigger-160 ace-icon fa fa-home " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  448.                         &nbsp;Resultados del proceso
  449.                     </a>
  450.                 </h4>
  451.             </div>
  452.             <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  453.                 {% if not entity.certificadoVacunacionOk %}
  454.                     <div id='no_cupo' class='hide'>
  455.                         <i class="fas fa-ban red bigger-300"></i>
  456.                         <span id="span_no_idoneo" style="color: red; font-weight: bold; font-size: 20px">
  457.                             NO PUEDE REGISTRARSE RESULTADO PORQUE NO SE HA VALIDADO EL CERTIFICADO DE VACUNACIÓN
  458.                         </span>
  459.                     </div>           
  460.                 {% else %}
  461.                     <div id="divResultado" class="panel-body" style="border-width: 1px; border-color: red">
  462.                         <div class="row">
  463.                             <div class="col-xs-12">
  464.                                 {% if entity.fechaResultado %}
  465.                                     {% if entity.idoneo %}
  466.                                         <p color='green'>IDÓNEO</p>
  467.                                         <table class="table table-striped table-bordered table-hover">
  468.                                             <tr>
  469.                                                 <th style="width: {{ widthLabel }}">
  470.                                                     <label>
  471.                                                         Unidad asignada:
  472.                                                     </label>
  473.                                                 </th>
  474.                                                 <td>
  475.                                                     {{ entity.unidadMilitar }}
  476.                                                 </td>
  477.                                                 <th style="width: {{ widthLabel }}">
  478.                                                     <label>
  479.                                                         Centro instrucción:
  480.                                                     </label>
  481.                                                 </th>
  482.                                                 <td>
  483.                                                     {{ entity.unidadMilitar.centroInstruccion }}
  484.                                                 </td>
  485.                                             </tr>
  486.                                         </table>
  487.                                     {% else %}
  488.                                         <p color='red'>NO IDÓNEO</p>
  489.                                         <table class="table table-striped table-bordered table-hover">
  490.                                             <tr>
  491.                                                 <th style="width: {{ widthLabel }}">
  492.                                                     <label>
  493.                                                         Causa rechazo:
  494.                                                     </label>
  495.                                                 </th>
  496.                                                 <td>
  497.                                                     {{ entity.causaRechazo }}
  498.                                                 </td>
  499.                                             </tr>
  500.                                             <tr>
  501.                                                 <th style="width: {{ widthLabel }}">
  502.                                                     <label>
  503.                                                         Observaciones:
  504.                                                     </label>
  505.                                                 </th>
  506.                                                 <td>
  507.                                                     {{ entity.observaciones }}
  508.                                                 </td>
  509.                                             </tr>
  510.                                             <tr>
  511.                                                 <th style="width: {{ widthLabel }}">
  512.                                                     <label>
  513.                                                         Volver a presentarse:
  514.                                                     </label>
  515.                                                 </th>
  516.                                                 <td>
  517.                                                     {{ entity.volverPresentarse }}
  518.                                                 </td>
  519.                                             </tr>
  520.                                         </table>
  521.                                     {% endif %}
  522.                                 {% endif %}
  523.                                     {% if not entity.fechaResultado or (not entity.idoneo and entity.volverPresentarse=='MISMO') %}
  524.                                         <form id='form_resultados' method='post' action='{{ path('aspirante_salvar_resultado') }}'>
  525.                                             <input type='hidden' name='resultado[reclutaProceso]' value='{{ entity.id }}'>
  526.                                             <table class="table table-striped table-bordered table-hover">
  527.                                                 <tr>
  528.                                                     <th style="width: {{ widthLabel }}">
  529.                                                         <label>
  530.                                                             Resultado:
  531.                                                         </label>
  532.                                                     </th>
  533.                                                     <td colspan='3'>
  534.                                                         <input type='radio' class='resultado' id='resultadoIdoneo' name='resultado[resultado]' value='idoneo'>&nbsp;&nbsp;Idóneo
  535.                                                         &nbsp;&nbsp;&nbsp;&nbsp;
  536.                                                         <input type='radio' class='resultado' id='resultadoNoIdoneo' name='resultado[resultado]' value='noidoneo'>&nbsp;&nbsp;No Idóneo
  537.                                                     </td>
  538.                                                 </tr>
  539.                                                 <tr id='trUnidadAsignar' class='hide'>
  540.                                                     <th style="width: {{ widthLabel }}">
  541.                                                         <label>
  542.                                                             Unidad asignada:
  543.                                                         </label>
  544.                                                     </th>
  545.                                                     <td colspan='3'>
  546.                                                         <a id="botonAsignar" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('aspirante_asignar_unidad', {'reclutaProceso': entity.id }) }}">
  547.                                                             Asignar Unidad
  548.                                                         </a>
  549.                                                     </td>
  550.                                                 </tr>
  551.                                                 <tr id='trUnidad' class='hide'>
  552.                                                     <th style="width: {{ widthLabel }}">
  553.                                                         <label>
  554.                                                             Unidad asignada:
  555.                                                         </label>
  556.                                                     </th>
  557.                                                     <td>
  558.                                                         <span id='span_unidad'></span>
  559.                                                         <input type='hidden' id='form_unidad' name='resultado[unidad]'>
  560.                                                     </td>
  561.                                                     <th style="width: {{ widthLabel }}">
  562.                                                         <label>
  563.                                                             Centro instrucción:
  564.                                                         </label>
  565.                                                     </th>
  566.                                                     <td>
  567.                                                         <span id='span_centro'></span>
  568.                                                     </td>
  569.                                                 </tr>
  570.                                                 <tr id='trCausaRechazo' class='hide'>
  571.                                                     <th style="width: {{ widthLabel }}">
  572.                                                         <label>
  573.                                                             Causa rechazo:
  574.                                                         </label>
  575.                                                     </th>
  576.                                                     <td>
  577.                                                         <input type='radio' id='causaPsicologica' name='resultado[causa]' value='PSICOLOGICA'>&nbsp;&nbsp;Psicológica
  578.                                                     </td>
  579.                                                     <td>
  580.                                                         <input type='radio' id='causaMedica' name='resultado[causa]' value='MEDICA'>&nbsp;&nbsp;Médica
  581.                                                     </td>
  582.                                                     <td>
  583.                                                         <input type='radio' id='causaLaboratorios' name='resultado[causa]' value='LABORATORIO'>&nbsp;&nbsp;Laboratorio
  584.                                                     </td>
  585.                                                 </tr>
  586.                                                 <tr id='trObservaciones' class='hide'>
  587.                                                     <th style="width: {{ widthLabel }}">
  588.                                                         <label>
  589.                                                             Observaciones:
  590.                                                         </label>
  591.                                                     </th>
  592.                                                     <td colspan='3'>
  593.                                                         <textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
  594.                                                     </td>
  595.                                                 </tr>
  596.                                                 <tr id='trVolver' class='hide'>
  597.                                                     <th style="width: {{ widthLabel }}">
  598.                                                         <label>
  599.                                                             Volver a presentarse:
  600.                                                         </label>
  601.                                                     </th>
  602.                                                     <td>
  603.                                                         <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO'>&nbsp;&nbsp;En este proceso
  604.                                                     </td>
  605.                                                     <td>
  606.                                                         <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO'>&nbsp;&nbsp;Próximo proceso
  607.                                                     </td>
  608.                                                     <td>
  609.                                                         <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA'>&nbsp;&nbsp;Nunca
  610.                                                     </td>
  611.                                                 </tr>
  612.                                             </table>
  613.                                         </form>
  614.                                     {% endif %}
  615.                             </div>
  616.                         </div>
  617.                     </div>
  618.                 {% endif %}
  619.             </div>
  620.         </div>
  621.     {% endblock more_seccion %}        
  622.     <div id="chooseUnidad">
  623.         <h4><span id="chooseCentro"></span></h4>
  624.         <p>Seleccione la unidad</p>
  625.         <select id="selectUnidad"></select>
  626.     </div>
  627. {% endblock %} 
  628. {% block actions %}
  629.     <div class="row">
  630.         <div class="col-xs-6">
  631.             <center>
  632.                 {% block action_retorno %}
  633.                     {#<a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_index', {'routeClassName': routeClassName}) }}">#}
  634.                     <a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_back_to_list', {'routeClassName': routeClassName, 'id': entity.id, 'from': 'show'}) }}">
  635.                         {% trans from 'crud' %}botones.regresar{% endtrans %}
  636.                     </a>
  637.                 {% endblock %} 
  638.             </center>
  639.         </div>   
  640.         {% if not entity.fechaResultado %}
  641.             {% if entity.certificadoVacunacionOk %}
  642.                 <div class="col-xs-6 forChanges">
  643.                     <center>
  644.                         <a id="botonTerminar" class="btn btn-white btn-inverse btn-bold btn-round" href="">Terminar proceso</a>
  645.                     </center>
  646.                 </div>    
  647.             {% endif %}            
  648.         {% else %}            
  649.             <div class="col-xs-6 forChanges">
  650.                 <center>
  651.                     <a id="botonImprimir"  target="_blank" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('imprimirFichaProceso', {'idReclutaProceso': entity.id }) }}">Imprimir resultado</a>
  652.                 </center>
  653.             </div>    
  654.         {% endif %}                     
  655.         </div>
  656. -->
  657. {% endblock %}