src/templates/ReservistaProceso/show.html.twig line 1032

Open in your IDE?
  1. {% extends "@crud\\crud\\show.html.twig" %}
  2. {% block jquery %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         var inputEmail; 
  6.         
  7.         $(function()
  8.         {
  9.             $("#botonTerminar").click(function(e){
  10.                 e.preventDefault();
  11.                 var ok=true;
  12.                 var msg='';
  13.                 if ($('#resultadoIdoneo').prop('checked'))
  14.                 {
  15.                     if (!$('#form_unidad').val())
  16.                     {
  17.                         ok=false;
  18.                         msg = 'Debe asignar la unidad militar';
  19.                     }
  20.                 }
  21.                 else
  22.                 {
  23.                     if ($('#resultadoNoIdoneo').prop('checked'))
  24.                     {
  25.                         if (!($('#causaPsicologica').prop('checked') || $('#causaMedica').prop('checked') || $('#causaLaboratorios').prop('checked')))
  26.                         {
  27.                             ok=false;
  28.                             msg = 'Debe asignar la causa de rechazo';
  29.                         }
  30.                         else
  31.                         {
  32.                             if (!$('#observaciones').val())
  33.                             {
  34.                                 ok=false;
  35.                                 msg = 'Debe indicar las observaciones acerca del rechazo';
  36.                             }
  37.                             else
  38.                             {
  39.                                 if (!($('#volverEste').prop('checked') || $('#volverProximo').prop('checked') || $('#volverNunca').prop('checked')))
  40.                                 {
  41.                                     ok=false;
  42.                                     msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
  43.                                 }
  44.                             }
  45.                         }
  46.                     }
  47.                     else
  48.                     {
  49.                         ok=false;
  50.                         msg = 'Debe indicar un resultado del proceso';
  51.                     }
  52.                 }
  53.                 if (ok)
  54.                 {
  55.                     $('#divResultado').mask('&nbsp;&nbsp;&nbsp;&nbsp;Terminando proceso...');
  56.                     $('#form_resultados').ajaxSubmit({
  57.                         type: $('#form_resultados').attr('method'),
  58.                         url: $('#form_resultados').attr('action'),
  59.                         dataType: 'json',
  60.                         data: { _xml_http_request: true },
  61.                         success: function(data) {
  62.                             if (data.ok)
  63.                             {  
  64.                                 if (data.fullMasculino || data.fullFemenino)
  65.                                 {
  66.                                     var genero='';
  67.                                     if (data.fullMasculino)
  68.                                         genero = 'masculino';
  69.                                     else
  70.                                         genero = 'femenino';
  71.                                     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', 
  72.                                         function(r) {
  73.                                             if (r) {
  74.                                                 var url = '{{ path('ajax_nominaPDF', {'proceso': entity.procesoRegistro.id, 'unidad':'__UNIDAD__'}) }}';
  75.                                                 url = url.replace('__UNIDAD__', data.unidadId);
  76.                                                 $.ajax({
  77.                                                    type: "GET",                              
  78.                                                    url:  url,
  79.                                                    //dataType: 'html',
  80.                                                    //data: { _xml_http_request: true },
  81.                                                    success: function(data){
  82.                                                         var mio=0;
  83.                                                         window.open('{{ path('exportar_reporte_PDF', {'routeClassName': 'listaasignacionunidad'}) }}', '_blank');
  84.                                                         document.location.reload();
  85.                                                    }
  86.                                     });
  87.                                 }
  88.                                     });
  89.                                 }
  90.                                 else
  91.                                     document.location.reload();
  92.                             }
  93.                             else
  94.                             {
  95.                                 $('#divResultado').unmask();
  96.                                 showError(bootbox, data.msg);
  97.                             }
  98.                         }
  99.                     })
  100.                 }
  101.                 else
  102.                 {
  103.                     showError(bootbox, msg);
  104.                 }
  105.             }); 
  106.             $( "#dialog-verify-email" ).dialog({
  107.                 autoOpen: false,
  108.                 height: 310,
  109.                 width: 400,
  110.                 modal: true,
  111.                 resizable: false,
  112.                 title_html: true,
  113.                 title: '<div id="texto" class="widget-header widget-header-small"><h4 class="smaller red"><i class="fas fa-globe"></i>&nbsp;Verificar correo electrónico</h4></div>',
  114.                 buttons: {
  115.                     Aceptar: function() {
  116.                         $('#dialog-verify-email').parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando código...');
  117.                         $('#form_verify_email_code').ajaxSubmit({
  118.                             type: $('#form_verify_email_code').attr('method'),
  119.                             url: $('#form_verify_email_code').attr('action'),
  120.                             dataType: 'json',
  121.                             data: { _xml_http_request: true },
  122.                             success: function(data) {
  123.                                 $('#dialog-verify-email').parent().unmask();
  124.                                 if (data.ok)
  125.                                 {  
  126.                                     $( "#dialog-verify-email" ).dialog( "close" );
  127.                                      quickUpdate(inputEmail);
  128.                                 }
  129.                                 else
  130.                                 {
  131.                                     showError(bootbox, data.msg);
  132.                                 }
  133.                             }
  134.                         });
  135.                     },
  136.                     Cancelar: function() {
  137.                         $( "#dialog-verify-email" ).dialog( "close" );
  138.                     }
  139.                 }
  140.             });
  141.         
  142.             $( "#dialog-change-canton" ).dialog({
  143.                 autoOpen: false,
  144.                 height: 310,
  145.                 width: 400,
  146.                 modal: true,
  147.                 resizable: false,
  148.                 title_html: true,
  149.                 title: '<div id="texto" class="widget-header widget-header-small"><h4 class="smaller red"><i class="fas fa-globe"></i>&nbsp;Modificar lugar de residencia</h4></div>',
  150.                 buttons: {
  151.                     Aceptar: function() {
  152.                         $('#dialog-change-canton').parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;Guardando...');
  153.                         $('#quick_form_association_class').val('NmclDominioLocalizacion');
  154.                         $('#quick_form_class').val('ReservistaProceso');
  155.                         $('#quick_form_id').val('{{ entity.id }}');
  156.                         $('#quick_form_field').val('lugarResidencia');
  157.                         $('#quick_input_valor').val($( "#form_parroquia" ).val());                        
  158.                         
  159.                         quickUpdateCanton();
  160.                     },
  161.                     Cancelar: function() {
  162.                         $("#dialog-change-canton").dialog("close");
  163.                     }
  164.                 }
  165.             });
  166.             
  167.             $('.quick_update_input').keyup(function(){
  168.                 var td = $(this).parent();
  169.                 var input = td.find('input');
  170.                 var newValue = input.val();
  171.                 var actualValue = input.attr('actualvalue');
  172.                 if (newValue !== actualValue)
  173.                 {
  174.                     td.find('button').removeClass('hide');
  175.                 }
  176.                 else
  177.                 {
  178.                     td.find('button').addClass('hide');
  179.                 }
  180.             });
  181.             
  182.             $('.quick_update_input_cancel').click(function(){
  183.                 var td = $(this).parent();
  184.                 var input = td.find('input');
  185.                 var actualValue = input.attr('actualvalue');
  186.                 input.val(actualValue);
  187.                 td.find('button').addClass('hide');
  188.             });
  189.             
  190.             $('.quick_update_input_save').click(function(){
  191.                 var td = $(this).parent();
  192.                 var input = td.find('input');
  193.                 
  194.                 $('#quick_form_association_class').val('');
  195.                 $('#quick_form_class').val(input.attr('classname'));
  196.                 $('#quick_form_id').val(input.attr('entityid'));
  197.                 $('#quick_form_field').val(input.attr('field'));
  198.                 $('#quick_input_valor').val(input.val());
  199.                 if ($('#quick_form_field').val()==='email')
  200.                 {
  201.                     if (validEmail(input.val()))
  202.                     {
  203.                         inputEmail = input;
  204.                         verificaEmail(input.val());
  205.                     }
  206.                     else
  207.                     {
  208.                         showError(bootbox, 'Formato de correo electrónico incorrecto');
  209.                     }
  210.                 }
  211.                 else
  212.                 {
  213.                     quickUpdate(input);
  214.                 }
  215.             });
  216.             
  217.             $('.quick_update_select').change(function(){
  218.                 var td = $(this).parent();
  219.                 var input = td.find('select');
  220.                 var newValue = input.val();
  221.                 var actualValue = input.attr('actualvalue');
  222.                 if (newValue !== actualValue)
  223.                 {
  224.                     td.find('button').removeClass('hide');
  225.                 }
  226.                 else
  227.                 {
  228.                     td.find('button').addClass('hide');
  229.                 }
  230.             });
  231.         
  232.             $('.quick_update_select_cancel').click(function(){
  233.                 var td = $(this).parent();
  234.                 var input = td.find('select');
  235.                 var actualValue = input.attr('actualvalue');
  236.                 input.val(actualValue);
  237.                 td.find('button').addClass('hide');
  238.             });
  239.             
  240.             $('.quick_update_select_save').click(function(){
  241.                 var td = $(this).parent();
  242.                 var input = td.find('select');
  243.                 
  244.                 $('#quick_form_association_class').val(input.attr('association'));
  245.                 $('#quick_form_class').val(input.attr('classname'));
  246.                 $('#quick_form_id').val(input.attr('entityid'));
  247.                 $('#quick_form_field').val(input.attr('field'));
  248.                 $('#quick_input_valor').val(input.val());
  249.                 quickUpdate(input);
  250.             });
  251.             
  252.             $('#quick_update_canton').click(function(){
  253.                 $('#form_region').val($('#inforegion').attr('regionid'));
  254.                 $('#form_provincia').val($('#infoprovincia').attr('provinciaid'));
  255.                 $('#form_canton').val($('#infocanton').attr('cantonid'));
  256.                 $('#form_parroquia').val($('#infolugarResidencia').attr('parroquiaid'));
  257.                 $('#dialog-change-canton').dialog ('open');
  258.             });
  259.             $('#addDestreza').click(function(){
  260.                 
  261.                 if ($('option.option_destreza:not(.hide)').length>0)
  262.                 {
  263.                     var tr = $('#tablaDestrezas').find('thead').find('tr.patron');
  264.                     tr='<tr>'+tr.html()+'</tr>';
  265.                     $('#tablaDestrezas').find('tbody').prepend(tr);
  266.                     tr = $('#tablaDestrezas').find('tbody').find('tr').first();
  267.                     tr.find('.select-destreza').change();
  268.                 }
  269.             });
  270.             
  271.             $('#addEstudio').click(function(){
  272.                 
  273.                 var tr = $('#tablaEstudios').find('thead').find('tr.patron');
  274.                 tr='<tr>'+tr.html()+'</tr>';
  275.                 $('#tablaEstudios').find('tbody').prepend(tr);
  276.                 
  277.                 tr = $('#tablaEstudios').find('tbody').find('tr').first();
  278.                 tr.find('.date-picker').addClass('unset');
  279.                 setDatePicker();
  280.             });
  281.             
  282.             $('#btn_verificar_estudios').click(function(e){
  283.                 e.preventDefault();
  284.                 $('#table_estudios').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando estudios...');
  285.                 var url = '{{ path('reservista_verifica_estudios', {'identificacion': entity.reservista.identificacion }) }}';
  286.                 $.getJSON(url , function(result){
  287.                     $('#table_estudios').parent().parent().unmask();
  288.                     if (result.ok)
  289.                     {
  290.                         $('#table_estudios tbody').html('');
  291.                         var flen = result.estudios.length;
  292.                         if (flen>0)
  293.                         {
  294.                             var i;
  295.                             for (i=0; i<flen; i++)
  296.                             {
  297.                                 $('#table_estudios tbody').append('<tr><td>'+result.estudios[i].institucion+'</td><td>'+result.estudios[i].titulo+'</td></tr>');
  298.                             }
  299.                         }
  300.                         else
  301.                         {
  302.                             $('#table_estudios tbody').append('<tr><td colspan="3" style="text-align: center">No hay estudios registrados</td></tr>');
  303.                         }
  304.                     }
  305.                 });
  306.             });
  307.             
  308.             cleanDestrezasOptions();
  309.             
  310.             setDatePicker();
  311.         });
  312.         
  313.         function setDatePicker()
  314.         {
  315.             $('.date-picker.unset').each(function(){
  316.                 $(this).datepicker({
  317.                     autoclose: true,
  318.                     todayHighlight: true,
  319.                     language: 'es'
  320.                 })
  321.                 .next().on(ace.click_event, function(){
  322.                     $(this).prev().focus();
  323.                 });
  324.                 $(this).removeClass('unset');
  325.             });
  326.         }
  327.         
  328.         function destrezaCancel(elem)
  329.         {
  330.             var tr = $(elem).parent().parent();
  331.             var select = tr.find('select');
  332.             var input = tr.find('input');
  333.             var textarea = tr.find('textarea');
  334.             if (select.val() !== select.attr('actualvalue'))
  335.             {
  336.                 select.val(select.attr('actualvalue'));
  337.                 select.change();
  338.             }
  339.             if (input.val() !== input.attr('actualvalue'))
  340.             {
  341.                 input.val(input.attr('actualvalue'));
  342.             }
  343.             if (textarea.val() !== textarea.attr('actualvalue'))
  344.             {
  345.                 textarea.val(textarea.attr('actualvalue'));
  346.             }
  347.             tr.find('.button').addClass('hide');
  348.         };
  349.             
  350.         function destrezaDelete(elem)
  351.         {
  352.             if (confirm('Está seguro que va a eliminar la destreza'))
  353.             {
  354.                 var tr = $(elem).parent().parent();
  355.                 var id = tr.attr('destrezaid');
  356.                 if (id)
  357.                 {
  358.                     var url="{{ path('crud_quick_delete', {'id': '__ID__', 'className': 'ReservistaDestreza'}) }}";
  359.                     url = url.replace('__ID__', id);
  360.                     tr.mask('&nbsp;&nbsp;&nbsp;&nbsp;Eliminando...');
  361.                     $.getJSON(url , function(result){
  362.                         if (result.ok)
  363.                         {
  364.                             tr.remove();
  365.                             cleanDestrezasOptions();
  366.                         }
  367.                         else
  368.                         {
  369.                             tr.unmask();
  370.                             showError(bootbox, result.msg);
  371.                         }
  372.                     });
  373.                 }
  374.                 else
  375.                 {
  376.                     tr.remove();
  377.                     cleanDestrezasOptions();
  378.                 }
  379.             }
  380.         }
  381.         
  382.         function destrezaSave(elem)
  383.         {
  384.             var tr = $(elem).parent().parent();
  385.             var select = tr.find('select');
  386.             var input = tr.find('input');
  387.             var textarea = tr.find('textarea');
  388.             
  389.             $('#quick_form_destreza').val(select.val());
  390.             $('#quick_form_tiempo').val(input.val());
  391.             $('#quick_form_detalle').val(textarea.val());
  392.             
  393.             tr.mask('&nbsp;&nbsp;&nbsp;&nbsp;Guardando...');
  394.             $('#formDestrezaSave').ajaxSubmit({
  395.                 type: $('#formDestrezaSave').attr('method'),
  396.                 url: $('#formDestrezaSave').attr('action'),
  397.                 dataType: 'json',
  398.                 data: { _xml_http_request: true },
  399.                 success: function(data) {
  400.                     tr.unmask();
  401.                     if (data.ok)
  402.                     {
  403.                         tr.attr('destrezaid',data.id);
  404.                         select.attr('actualvalue', select.val());
  405.                         select.prop('disabled', true);
  406.                         input.attr('actualvalue', input.val());
  407.                         textarea.attr('actualvalue', textarea.val());
  408.                         tr.find('.button').addClass('hide');
  409.                     }
  410.                     else
  411.                     {
  412.                         showError(bootbox, data.msg);
  413.                     }
  414.                 }
  415.             });
  416.         }
  417.         
  418.         function cleanDestrezasOptions()
  419.         {
  420.             $('option.option_destreza').removeClass('hide');
  421.             $('#tablaDestrezas').children('tbody').find('.select-destreza').each(function(){
  422.                 var value = $(this).val();
  423.                 if (value)
  424.                 {
  425.                     $('option.destreza_'+value).addClass('hide');
  426.                 }
  427.             });
  428.             
  429.         }
  430.         
  431.         function estudioCancel(elem)
  432.         {
  433.             var tr = $(elem).parent().parent();
  434.             var titulo = tr.find('input.estudio_titulo');
  435.             var institucion = tr.find('input.estudio_institucion');
  436.             var nivel = tr.find('select.estudio_nivel');
  437.             var cursando = tr.find('select.estudio_cursando');
  438.             var fecha = tr.find('input.estudio_fecha');
  439.             titulo.val(titulo.attr('actualvalue'));
  440.             institucion.val(institucion.attr('actualvalue'));
  441.             nivel.val(nivel.attr('actualvalue'));
  442.             cursando.val(cursando.attr('actualvalue'));
  443.             fecha.val(fecha.attr('actualvalue'));
  444.             if (cursando.val()==='YES')
  445.             {
  446.                 fecha.parent().addClass('hide');
  447.             }
  448.             else
  449.             {
  450.                 fecha.parent().removeClass('hide');
  451.             }
  452.             tr.find('.button').addClass('hide');
  453.         };
  454.             
  455.         function estudioDelete(elem)
  456.         {
  457.             if (confirm('Está seguro que va a eliminar el estudio'))
  458.             {
  459.                 var tr = $(elem).parent().parent();
  460.                 var id = tr.attr('estudioid');
  461.                 if (id)
  462.                 {
  463.                     var url="{{ path('crud_quick_delete', {'id': '__ID__', 'className': 'ReservistaEstudio'}) }}";
  464.                     url = url.replace('__ID__', id);
  465.                     tr.mask('&nbsp;&nbsp;&nbsp;&nbsp;Eliminando...');
  466.                     $.getJSON(url , function(result){
  467.                         if (result.ok)
  468.                         {
  469.                             tr.remove();
  470.                         }
  471.                         else
  472.                         {
  473.                             tr.unmask();
  474.                             showError(bootbox, result.msg);
  475.                         }
  476.                     });
  477.                 }
  478.                 else
  479.                 {
  480.                     tr.remove();
  481.                 }
  482.             }
  483.         }
  484.         
  485.         function estudioSave(elem)
  486.         {
  487.             var tr = $(elem).parent().parent();
  488.             var id = tr.attr('estudioid');
  489.             if (id)
  490.             {
  491.                 $('#quick_form_habilidad_id').val(id);
  492.             }
  493.             else
  494.             {
  495.                 $('#quick_form_habilidad_id').val('');
  496.             }                
  497.             var titulo = tr.find('input.estudio_titulo');
  498.             var institucion = tr.find('input.estudio_institucion');
  499.             var nivel = tr.find('select.estudio_nivel');
  500.             var cursando = tr.find('select.estudio_cursando');
  501.             var fecha = tr.find('input.estudio_fecha');
  502.             
  503.             if (!titulo.val() || !institucion.val() || !nivel.val() ||  !cursando.val() || (cursando.val()=='NO' && !fecha.val()))
  504.             {
  505.                 showError(bootbox, 'Debe indicar toda la información sobre el estudio cursado');
  506.                 return;
  507.             }
  508.             $('#quick_form_habilidad_titulo').val(titulo.val());
  509.             $('#quick_form_habilidad_institucion').val(institucion.val());
  510.             $('#quick_form_habilidad_nivel').val(nivel.val());
  511.             $('#quick_form_habilidad_cursando').val(cursando.val());
  512.             $('#quick_form_habilidad_fecha').val(fecha.val());
  513.                
  514.             tr.mask('&nbsp;&nbsp;&nbsp;&nbsp;Guardando...');
  515.             $('#formEstudioSave').ajaxSubmit({
  516.                 type: $('#formEstudioSave').attr('method'),
  517.                 url: $('#formEstudioSave').attr('action'),
  518.                 dataType: 'json',
  519.                 data: { _xml_http_request: true },
  520.                 success: function(data) {
  521.                     tr.unmask();
  522.                     if (data.ok)
  523.                     {
  524.                         tr.attr('estudioid',data.id);     
  525.                         titulo.attr('actualvalue', titulo.val());
  526.                         institucion.attr('actualvalue', institucion.val());
  527.                         nivel.attr('actualvalue', nivel.val());
  528.                         cursando.attr('actualvalue', cursando.val());
  529.                         fecha.attr('actualvalue', fecha.val());
  530.                         tr.find('.button').addClass('hide');
  531.                     }
  532.                     else
  533.                     {
  534.                         showError(bootbox, data.msg);
  535.                     }
  536.                 }
  537.             });
  538.         }
  539.         function validEmail(email)
  540.         {
  541.             var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\.\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  542.              return filter.test(email);
  543.         }
  544.         
  545.         function verificaEmail(email)
  546.         {
  547.             inputEmail.parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando correo electrónico...');
  548.             $('#verify_email').val(email);
  549.             $('#text_email').html(email);
  550.             $('#form_verify_email').ajaxSubmit({
  551.                 type: $('#form_verify_email').attr('method'),
  552.                 url: $('#form_verify_email').attr('action'),
  553.                 dataType: 'json',
  554.                 data: { _xml_http_request: true },
  555.                 success: function(data) {
  556.                     inputEmail.parent().unmask();
  557.                     if (data.ok)
  558.                     {  
  559.                         $('#dialog-verify-email').dialog('open');
  560.                     }
  561.                     else
  562.                     {
  563.                         showError(bootbox, data.msg);
  564.                     }
  565.                 }
  566.             });
  567.         }
  568.         
  569.         function quickUpdate(input)
  570.         {
  571.             input.parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;Guardando...');
  572.             var newValue = input.val();
  573.             var actualValue = input.attr('actualvalue');
  574.             $('#formQuickUpdate').ajaxSubmit({
  575.                 type: $('#formQuickUpdate').attr('method'),
  576.                 url: $('#formQuickUpdate').attr('action'),
  577.                 dataType: 'json',
  578.                 data: { _xml_http_request: true },
  579.                 success: function(data) {
  580.                     input.parent().unmask();
  581.                     if (data.ok)
  582.                     {
  583.                         if ($('#quick_form_field').val()=='paisResidencia' && (actualValue.toLowerCase()=='ecuador' || newValue.toLowerCase()=='ecuador'))
  584.                         {
  585.                             $('.ecuador').toggleClass('hide'); 
  586.                         }
  587.                         input.attr('actualvalue', newValue);
  588.                         input.parent().find('button').addClass('hide');
  589.                     }
  590.                     else
  591.                     {
  592.                         showError(bootbox, data.msg);
  593.                     }
  594.                 }
  595.             });
  596.         }
  597.                        
  598.         function quickUpdateCanton()
  599.         {
  600.             $('#formQuickUpdate').ajaxSubmit({
  601.                 type: $('#formQuickUpdate').attr('method'),
  602.                 url: $('#formQuickUpdate').attr('action'),
  603.                 dataType: 'json',
  604.                 data: { _xml_http_request: true },
  605.                 success: function(data) {
  606.                     $('#dialog-change-canton').parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;Guardando...');
  607.                     if (data.ok)
  608.                     {
  609.                         $('#inforegion').html($( "#form_region option:selected" ).text());
  610.                         $('#inforegion').attr('regionid', $( "#form_region" ).val());
  611.                         $('#infoprovincia').html($( "#form_provincia option:selected" ).text());
  612.                         $('#infoprovincia').attr('provinciaid', $( "#form_provincia" ).val());
  613.                         $('#infocanton').html($( "#form_canton option:selected" ).text());
  614.                         $('#infocanton').attr('cantonid', $( "#form_canton" ).val());
  615.                         $('#infolugarResidencia').html($( "#form_parroquia option:selected" ).text());
  616.                         $('#infolugarResidencia').attr('parroquiaid', $( "#form_parroquia" ).val());
  617.                         $( "#dialog-change-canton" ).dialog("close");
  618.                     }
  619.                     else
  620.                     {
  621.                         showError(bootbox, data.msg);
  622.                     }
  623.                 }
  624.             });
  625.         }
  626.                                               
  627.         function selectDestrezaChange(select)
  628.         {
  629.             var lastValue=$(select).attr('lastValue');
  630.             var value = $(select).val();
  631.             if (!value && lastValue)
  632.             {
  633.                 $(select).val(lastValue);
  634.             }
  635.             else
  636.             if (value)
  637.             {
  638.                 $('option.destreza_'+lastValue).removeClass('hide');
  639.                 $(select).attr('lastValue', value);
  640.                 $('option.destreza_'+value).addClass('hide');
  641.             }
  642.             destrezaChange(select)
  643.         }
  644.         
  645.         function destrezaChange(elem)
  646.         {
  647.             var tr = $(elem).parent().parent();
  648.             var select = tr.find('select');
  649.             var input = tr.find('input');
  650.             var textarea = tr.find('textarea');
  651.             if (select.val() !== select.attr('actualvalue') ||
  652.                 input.val() !== input.attr('actualvalue') ||
  653.                 textarea.val() !== textarea.attr('actualvalue'))
  654.             {
  655.                 tr.find('.button').removeClass('hide');
  656.             }
  657.             else
  658.             {
  659.                 tr.find('.button').addClass('hide');
  660.             }
  661.             
  662.         }
  663.                                                 
  664.         function estudioChange(elem)
  665.         {
  666.             var tr = $(elem).parent().parent();
  667.             if ($(elem).hasClass('estudio_fecha'))
  668.             {
  669.                 tr = tr.parent();
  670.             }
  671.             var titulo = tr.find('input.estudio_titulo');
  672.             var institucion = tr.find('input.estudio_institucion');
  673.             var nivel = tr.find('select.estudio_nivel');
  674.             var cursando = tr.find('select.estudio_cursando');
  675.             var fecha = tr.find('input.estudio_fecha');
  676.             if ($(elem).hasClass('estudio_cursando'))
  677.             {
  678.                 if (cursando.val()==='YES')
  679.                 {
  680.                     fecha.parent().addClass('hide');
  681.                 }
  682.                 else
  683.                 {
  684.                     fecha.parent().removeClass('hide');
  685.                 }
  686.                 fecha.val(fecha.attr('actualvalue'));
  687.             }
  688.             if (titulo.val() !== titulo.attr('actualvalue') ||
  689.                 institucion.val() !== institucion.attr('actualvalue') ||
  690.                 nivel.val() !== nivel.attr('actualvalue') ||
  691.                 cursando.val() !== cursando.attr('actualvalue') ||
  692.                 fecha.val() !== fecha.attr('actualvalue'))
  693.             {
  694.                 tr.find('.button').removeClass('hide');
  695.             }
  696.             else
  697.             {
  698.                 tr.find('.button').addClass('hide');
  699.             }
  700.         }
  701.                                                                     
  702.         {% include 'RegionProvinciaCantonParroquia\\jquery_functions.html.twig' with {'distintivo': '', 'parroquiaField': 'parroquia'} %}
  703.     </script>    
  704.         
  705. {% endblock %}
  706. {% block principal_heading %}
  707.     <div class="widget-header widget-header-flat">
  708.         <h4 class="widget-title lighter">
  709.             <i class="fas fa-search orange"></i>
  710.             Visualización del reservista
  711.         </h4>
  712.     <!--div class="widget-toolbar">
  713.         <a href="#" data-action="collapse">
  714.             <i class="fas fa-chevron-up"></i>
  715.         </a>
  716.     </div-->
  717.     </div>
  718. {% endblock %}
  719. {% block showdata %}
  720.     {% block prev_acuartelamiento %}        
  721.     {% endblock prev_acuartelamiento %} 
  722.                         
  723.     {{ render(controller('App\\Crud\\Controller\\crudPlainController::showAction', {'rol': rol, 'routeClassName':'reservista', 'id':entity.reservista.id, 'parentRouteClassName':routeClassName })) }}
  724.     
  725.     <div class="panel panel-default">
  726.         <div class="panel-heading">
  727.             <h4 class="panel-title green">
  728.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosDisponibilidad">
  729.                     <i class="bigger-160 ace-icon fa fa-check-square" data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  730.                     &nbsp;Disponibilidad
  731.                 </a>
  732.             </h4>
  733.         </div>
  734.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosDisponibilidad">
  735.             <div class="panel-body" style="border-width: 1px; border-color: red">
  736.                 <div class="row">
  737.                     <div class="col-xs-12 col-sm-6">
  738.                         <table class="table table-striped table-bordered table-hover">
  739.                             <tr>
  740.                                 <th style="width: {{ widthLabel }}">
  741.                                     <label>
  742.                                         Actividad actual
  743.                                     </label>
  744.                                 </th>
  745.                                 <td>
  746.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  747.                                         <select style="width: 100%" class="chosen-select quick_update_select" classname="ReservistaProceso" entityid="{{ entity.id }}" field="disponibilidad" association="" actualvalue="{{ entity.disponibilidad }}">
  748.                                             <option value="">--- Seleccione ---</option>
  749.                                             {% for key,actividad in actividades %}
  750.                                                 <option value="{{ key }}" {% if key == entity.disponibilidad %}selected="true"{% endif %}>{{ actividad }}</option>
  751.                                             {% endfor %}
  752.                                         </select>
  753.                                         <button class="hide quick_update_select_save"><i class="fas fa-save"></i></button>
  754.                                         <button class="hide quick_update_select_cancel"><i class="fas fa-ban red"></i></button>
  755.                                     {% else %}
  756.                                         {{ entity.actividad }}
  757.                                     {% endif %}
  758.                                 </td>                
  759.                             </tr>
  760.                         </table>
  761.                     </div>
  762.                     <div class="col-xs-12 col-sm-6">
  763.                         <table class="table table-striped table-bordered table-hover">
  764.                             <tr>
  765.                                 <th style="width: {{ widthLabel }}">
  766.                                     <label>
  767.                                         En caso de emergencia puede estar disponible en
  768.                                     </label>
  769.                                 </th>
  770.                                 <td>
  771.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  772.                                         <select style="width: 100%" class="chosen-select quick_update_select" classname="ReservistaProceso" entityid="{{ entity.id }}" field="disponibilidad" association="" actualvalue="{{ entity.disponibilidad }}">
  773.                                             <option value="">--- Seleccione ---</option>
  774.                                             {% for key,disponibilidad in disponibilidades %}
  775.                                                 <option value="{{ key }}" {% if key == entity.disponibilidad %}selected="true"{% endif %}>{{ disponibilidad }}</option>
  776.                                             {% endfor %}
  777.                                         </select>
  778.                                         <button class="hide quick_update_select_save"><i class="fas fa-save"></i></button>
  779.                                         <button class="hide quick_update_select_cancel"><i class="fas fa-ban red"></i></button>
  780.                                     {% else %}
  781.                                         {{ entity.disponibilidad }}
  782.                                     {% endif %}
  783.                                 </td>                
  784.                             </tr>            
  785.                         </table>
  786.                     </div> 
  787.                 </div> 
  788.             </div> 
  789.        </div>
  790.    </div>
  791.                 
  792.     <div class="panel panel-default">
  793.         <div class="panel-heading">
  794.             <h4 class="panel-title green">
  795.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosCentro">
  796.                     <i class="bigger-160 ace-icon fa fa-calendar" data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  797.                     &nbsp;{% trans from 'crud' %} registroenlinea.fields.centroMovilizacionTitle {% endtrans %}
  798.                 </a>
  799.             </h4>
  800.         </div>
  801.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosCentro">
  802.             <div class="panel-body" style="border-width: 1px; border-color: red">
  803.                 <table width="100%" class="table table-striped table-bordered table-hover pdffont">
  804.                     <tr>
  805.                         <th style="width: {{ widthLabel }}">
  806.                             <label>
  807.                                 {% trans from 'crud' %} registroenlinea.fields.centroMovilizacionPresentarse {% endtrans %}
  808.                             </label>
  809.                         </th>
  810.                         <td>
  811.                             {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  812.                                 <select id='quick_form_centro' style="width: 100%" class="chosen-select quick_update_select" classname="ReservistaProceso" entityid="{{ entity.id }}" field="centroMovilizacion" association="CentroMovilizacion" actualvalue="{{ entity.centroMovilizacion.id }}">
  813.                                     {% for centro in centros %}
  814.                                         <option value="{{ centro.id }}" {% if centro.id == entity.centroMovilizacion.id %}selected="true"{% endif %}>{{ centro }}</option>
  815.                                     {% endfor %}
  816.                                 </select>
  817.                                 <button class="hide quick_update_select_save"><i class="fas fa-save"></i></button>
  818.                                 <button class="hide quick_update_select_cancel"><i class="fas fa-ban red"></i></button>
  819.                             {% else %}
  820.                                 {{ entity.centroMovilizacion.id }}
  821.                             {% endif %}
  822.                         </td>                
  823.                     </tr>            
  824.                 </table>
  825.             </div> 
  826.        </div>
  827.    </div>
  828.                 
  829.     <div class="panel panel-default">
  830.         <div class="panel-heading">
  831.             <h4 class="panel-title green">
  832.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosResidencia">
  833.                     <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>
  834.                     &nbsp;Lugar de residencia
  835.                 </a>
  836.             </h4>
  837.         </div>
  838.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosResidencia">
  839.             <div class="panel-body" style="border-width: 1px; border-color: red">
  840.                 <div class="row">
  841.                     <div class="col-xs-12 col-sm-6">
  842.                         <table class="table table-striped table-bordered table-hover">
  843.                             <tr>
  844.                                 <th style="width: {{ widthLabel }}">
  845.                                     <label>
  846.                                         {% trans from 'crud' %} reclutaproceso.fields.paisResidencia {% endtrans %}
  847.                                     </label>
  848.                                 </th>
  849.                                 <td>
  850.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  851.                                         <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="paisResidencia" value="{{ entity.paisResidencia }}" actualvalue="{{ entity.paisResidencia }}">
  852.                                         <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  853.                                         <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  854.                                     {% else %}
  855.                                         {{ entity.paisResidencia }}
  856.                                     {% endif %}
  857.                                 </td>
  858.                             </tr>
  859.                             <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  860.                                 <th style="width: {{ widthLabel }}">
  861.                                     <label>
  862.                                     {% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}
  863.                                     </label>
  864.                                 </th>
  865.                                 <td>
  866.                                     <span id="inforegion" regionid="{% if entity.region %}{{ entity.region.id }}{% endif %}">{{ entity.region }}</span>
  867.                                 </td>
  868.                             </tr>
  869.                             <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  870.                                 <th style="width: {{ widthLabel }}">
  871.                                     <label>
  872.                                     {% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}
  873.                                     </label>
  874.                                 </th>
  875.                                 <td>
  876.                                     <span id="infoprovincia" provinciaid="{% if entity.provincia %}{{ entity.provincia.id }}{% endif %}">{{ entity.provincia }}</span>
  877.                                 </td>
  878.                             </tr>
  879.                             <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  880.                                 <th style="width: {{ widthLabel }}">
  881.                                     <label>
  882.                                     {% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}
  883.                                     </label>
  884.                                 </th>
  885.                                 <td>
  886.                                     <span id="infocanton" cantonid="{% if entity.canton %}{{ entity.canton.id }}{% endif %}">{{ entity.canton }}</span>
  887.                                 </td>
  888.                             </tr>
  889.                             <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  890.                                 <th style="width: {{ widthLabel }}">
  891.                                     <label>
  892.                                     {% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}
  893.                                     </label>
  894.                                 </th>
  895.                                 <td>
  896.                                     <span id="infolugarResidencia" parroquiaid="{% if entity.lugarResidencia %}{{ entity.lugarResidencia.id }}{% endif %}">{{ entity.lugarResidencia }}</span>&nbsp;&nbsp;
  897.                                     {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  898.                                         <button id="quick_update_canton" classname="ReservistaProceso" entityid="{{ entity.id }}" field="lugarResidencia" info="infolugarResidencia"><i class="fas fa-pen-alt"></i></button>
  899.                                     {% endif %}
  900.                                 </td>
  901.                             </tr>
  902.                         </table>
  903.                     </div>
  904.                     <div class="col-xs-12 col-sm-6">
  905.                         <table class="table table-striped table-bordered table-hover">
  906.                                 <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  907.                                     <th style="width: {{ widthLabel }}">
  908.                                         <label>
  909.                                         {% trans from 'crud' %} reclutaproceso.fields.callePrincipalResidencia {% endtrans %}
  910.                                         </label>
  911.                                     </th>
  912.                                     <td>
  913.                                         {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  914.                                             <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="callePrincipalResidencia" value="{{ entity.callePrincipalResidencia }}" actualvalue="{{ entity.callePrincipalResidencia }}">
  915.                                             <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  916.                                             <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  917.                                         {% else %}
  918.                                             {{ entity.callePrincipalResidencia }}
  919.                                         {% endif %}
  920.                                     </td>
  921.                                 </tr>
  922.                                 <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  923.                                     <th style="width: {{ widthLabel }}">
  924.                                         <label>
  925.                                         {% trans from 'crud' %} reclutaproceso.fields.calleSecundariaResidencia {% endtrans %}
  926.                                         </label>
  927.                                     </th>
  928.                                     <td>
  929.                                         {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  930.                                             <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="calleSecundariaResidencia" value="{{ entity.calleSecundariaResidencia }}" actualvalue="{{ entity.calleSecundariaResidencia }}">
  931.                                             <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  932.                                             <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  933.                                         {% else %}
  934.                                             {{ entity.calleSecundariaResidencia }}
  935.                                         {% endif %}
  936.                                     </td>
  937.                                 </tr>
  938.                                 <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  939.                                     <th style="width: {{ widthLabel }}">
  940.                                         <label>
  941.                                         {% trans from 'crud' %} reclutaproceso.fields.numeroCasa {% endtrans %}
  942.                                         </label>
  943.                                     </th>
  944.                                     <td>
  945.                                         {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  946.                                             <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="numeroCasa" value="{{ entity.numeroCasa }}" actualvalue="{{ entity.numeroCasa }}">
  947.                                             <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  948.                                             <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  949.                                         {% else %}
  950.                                             {{ entity.numeroCasa }}
  951.                                         {% endif %}
  952.                                     </td>
  953.                                 </tr>
  954.                                 <tr class="ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}">
  955.                                     <th style="width: {{ widthLabel }}">
  956.                                         <label>
  957.                                         {% trans from 'crud' %} reclutaproceso.fields.referencias {% endtrans %}
  958.                                         </label>
  959.                                     </th>
  960.                                     <td>
  961.                                         {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  962.                                             <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="referencias" value="{{ entity.referencias }}" actualvalue="{{ entity.referencias }}">
  963.                                             <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  964.                                             <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  965.                                         {% else %}
  966.                                             {{ entity.referencias }}
  967.                                         {% endif %}
  968.                                     </td>
  969.                                 </tr>
  970.                                 <tr class="ecuador {% if entity.paisResidencia=='Ecuador' %}hide{% endif %}">
  971.                                     <th style="width: {{ widthLabel }}">
  972.                                         <label>
  973.                                         {% trans from 'crud' %} reclutaproceso.fields.direccion {% endtrans %}
  974.                                         </label>
  975.                                     </th>
  976.                                     <td>
  977.                                         {% if rol=='reservista' and (tab is not defined or tab != 'registro')  %}
  978.                                             <input type="text" style="width:100%" class="quick_update_input" classname="ReservistaProceso" entityid="{{ entity.id }}" field="referencias" value="{{ entity.referencias }}" actualvalue="{{ entity.referencias }}">
  979.                                             <button class="hide quick_update_input_save"><i class="fas fa-save"></i></button>
  980.                                             <button class="hide quick_update_input_cancel"><i class="fas fa-ban red"></i></button>
  981.                                         {% else %}
  982.                                             {{ entity.referencias }}
  983.                                         {% endif %}
  984.                                     </td>
  985.                                 </tr>
  986.                         </table>
  987.                     </div>
  988.                 </div>
  989.             </div>
  990.         </div>
  991.     </div>
  992.     <div class="panel panel-default">
  993.         <div class="panel-heading">
  994.             <h4 class="panel-title green">
  995.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosAntecedentes">
  996.                     <i class="bigger-160 ace-icon fa fa-star-of-life " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  997.                     &nbsp;Antecedentes
  998.                 </a>
  999.             </h4>
  1000.         </div>
  1001.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosAntecedentes">
  1002.             <div class="panel-body" style="border-width: 1px; border-color: red">
  1003.                 <div class="row">
  1004.                     <div class="col-xs-12">
  1005.                         <table id="tabla_acuartelamiento" class="table table-striped table-bordered table-hover">
  1006.                             <tr>
  1007.                                 <th style="width: {{ widthLabel }}">
  1008.                                     <label>
  1009.                                         {% trans from 'crud' %} reclutaproceso.fields.resultadosAntecedentes {% endtrans %}
  1010.                                     </label>
  1011.                                 </th>
  1012.                                 <td>
  1013.                                     <p><input type='radio' id='antecedentes_1' {% if entity.resultadosAntecedentes==1%}checked='true'{% endif %} disabled='true'>&nbsp;Antecedentes penales</p>   
  1014.                                     <p><input type='radio' id='antecedentes_2' {% if entity.resultadosAntecedentes==2%}checked='true'{% endif %} disabled='true'>&nbsp;Impedimento de salida del país</p>   
  1015.                                     <p><input type='radio' id='antecedentes_3' {% if entity.resultadosAntecedentes==3%}checked='true'{% endif %} disabled='true'>&nbsp;Alerta migratoria</p>   
  1016.                                     <p><input type='radio' id='antecedentes_4' {% if entity.resultadosAntecedentes==4%}checked='true'{% endif %} disabled='true'>&nbsp;Orden de Captura</p>   
  1017.                                 </td>   
  1018.                             </tr>
  1019.                         </table>
  1020.                     </div>
  1021.                 </div>
  1022.             </div>
  1023.         </div>
  1024.     </div>
  1025.     <div class="panel panel-default">
  1026.         <div class="panel-heading">
  1027.             <h4 class="panel-title green">
  1028.                 <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosEstudios">
  1029.                     <i class="bigger-160 ace-icon fa fa-graduation-cap  " data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
  1030.                     &nbsp;Estudios
  1031.                 </a>
  1032.             </h4>
  1033.         </div>
  1034.         <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosEstudios">
  1035.             <div class="panel-body" style="border-width: 1px; border-color: red">
  1036.                 <div class="row">
  1037.                     <div class="col-xs-12">
  1038.                         <table id="tabla_acuartelamiento" class="table table-striped table-bordered table-hover">
  1039.                             <tr>
  1040.                                 <th style="width: {{ widthLabel }}">
  1041.                                     <label>
  1042.                                         {% trans from 'crud' %} reclutaproceso.fields.nivelInstruccion {% endtrans %}:
  1043.                                         <br><button id="btn_verificar_estudios" title="Consultar servicio"><i class="fas fa-recycle green"></i></button>
  1044.                                     </label>
  1045.                                     
  1046.                                 </th>
  1047.                                 <td>
  1048.                                     <table id="table_estudios" class="table">
  1049.                                         <thead>
  1050.                                             <tr>
  1051.                                                 <th>{% trans from 'crud' %} reclutaproceso.fields.estudioInstitucion {% endtrans %}</th>
  1052.                                                 <th>{% trans from 'crud' %} reclutaproceso.fields.estudioTitulo {% endtrans %}</th>
  1053.                                             </tr>
  1054.                                         </thead>
  1055.                                         <tbody>
  1056.                                             {% for estudio in entity.resultadosEstudios %}
  1057.                                                 <tr>                                               
  1058.                                                     <td>{{ estudio.institucion }}</td>
  1059.                                                     <td>{{ estudio.titulo }}</td>
  1060.                                                 </tr>
  1061.                                             {% endfor %}
  1062.                                         </tbody>
  1063.                                     </table>
  1064.                                 </td>
  1065.                             </tr>
  1066.                             <tr>
  1067.                                 <th style="width: {{ widthLabel }}">
  1068.                                     <label>
  1069.                                         Otros no registrados en SENESCYT:
  1070.                                     </label>
  1071.                                 </th>
  1072.                                 <td>
  1073.                                     <table id="tablaEstudios" class="table">
  1074.                                         <thead>
  1075.                                             <tr>
  1076.                                                 <th>Título o Certificación obtenida</th>
  1077.                                                 <th>Institución que emite</th>
  1078.                                                 <th>Nivel</th>
  1079.                                                 <th>En curso</th>
  1080.                                                 <th>Fecha emisión</th>
  1081.                                                 <th style="width: 100px">{% if rol=='reservista' and (tab is not defined or tab !='registro') %}<button title="Adicionar estudio" id="addEstudio"><i class="fas fa-plus-circle green"></i></button>{% endif %}</th>
  1082.                                             </tr>
  1083.                                             <tr class="patron hide">                                               
  1084.                                                 <td>
  1085.                                                     <input class="estudio_titulo" type="text" style="width: 100%" onkeyup='javascript:estudioChange(this);' actualvalue="">
  1086.                                                 </td>
  1087.                                                 <td>
  1088.                                                     <input class="estudio_institucion" type="text" style="width: 100%" onkeyup='javascript:estudioChange(this);' actualvalue="">
  1089.                                                 </td>
  1090.                                                 <td>
  1091.                                                     <select style="width: 100%" class="chosen-select estudio_nivel" onchange="javascript:estudioChange(this);" actualvalue="">
  1092.                                                         <option value="">-- Seleccione --</option>
  1093.                                                         {% for nivel in niveles %}
  1094.                                                             <option value="{{ nivel.id }}">{{ nivel }}</option>
  1095.                                                         {% endfor %}
  1096.                                                     </select>
  1097.                                                 </td>
  1098.                                                 <td>
  1099.                                                     <select style="width: 100%" class="estudio_cursando" onchange="javascript:estudioChange(this);" actualvalue="">
  1100.                                                         <option value="">-- Seleccione --</option>
  1101.                                                         <option value="YES">En curso</option>
  1102.                                                         <option value="NO">Finalizado</option>
  1103.                                                     </select>
  1104.                                                 </td>
  1105.                                                 <td>
  1106.                                                     <div class="input-group">
  1107.                                                         <input type="text" style="width: 100%" class="estudio_fecha form-control date-picker" data-date-format="dd-mm-yyyy" onchange="javascript:estudioChange(this);" actualvalue="">
  1108.                                                         <span class="input-group-addon"><i class="fas fa-calendar bigger-110"></i></span>
  1109.                                                     </div>
  1110.                                                 </td>
  1111.                                                 <th>
  1112.                                                     <button title="Guardar cambios" class="hide button quick_destreza_save" onclick="javascript:estudioSave(this);"><i class="fas fa-save"></i></button>
  1113.                                                     <button title="Deshacer cambios" class="hide button quick_destreza_cancel" onclick="javascript:estudioCancel(this);"><i class="fas fa-ban red"></i></button>
  1114.                                                     <button title="Eliminar" class='quick_destreza_delete' onclick="javascript:estudioDelete(this);"><i class="fas fa-trash-alt red"></i></button>
  1115.                                                 </th>
  1116.                                             </tr>
  1117.                                         </thead>
  1118.                                         <tbody>
  1119.                                             {% for estudio in estudios %}
  1120.                                                 <tr estudioid="{{ estudio.id }}">                                               
  1121.                                                     <td>
  1122.                                                         <input class="estudio_titulo" type="text" style="width: 100%" onkeyup='javascript:estudioChange(this);' value="{{ estudio.titulo }}" actualvalue="{{ estudio.titulo }}">
  1123.                                                     </td>
  1124.                                                     <td>
  1125.                                                         <input class="estudio_institucion" type="text" style="width: 100%" onkeyup='javascript:estudioChange(this);' value="{{ estudio.institucion }}" actualvalue="{{ estudio.institucion }}">
  1126.                                                     </td>
  1127.                                                     <td>
  1128.                                                         <select style="width: 100%" class="estudio_nivel chosen-select" onchange="javascript:estudioChange(this);" actualvalue="{{ estudio.nivel.id }}">
  1129.                                                             <option value="">-- Seleccione --</option>
  1130.                                                             {% for nivel in niveles %}
  1131.                                                                 <option value="{{ nivel.id }}" {% if estudio.nivel.id==nivel.id %}selected="true"{% endif %}>{{ nivel }}</option>
  1132.                                                             {% endfor %}
  1133.                                                         </select>
  1134.                                                     </td>
  1135.                                                     <td>
  1136.                                                         <select style="width: 100%" class="estudio_cursando" onchange="javascript:estudioChange(this);" actualvalue="{% if estudio.cursando %}YES{% else %}NO{% endif %}">
  1137.                                                             <option value="">-- Seleccione --</option>
  1138.                                                             <option value="YES" {% if estudio.cursando %}selected="true"{% endif %}>En curso</option>
  1139.                                                             <option value="NO" {% if not estudio.cursando %}selected="true"{% endif %}>Finalizado</option>
  1140.                                                         </select>
  1141.                                                     </td>
  1142.                                                     <td>
  1143.                                                         <div class="input-group {% if estudio.cursando %}hide{% endif %}">
  1144.                                                             <input type="text" style="width: 100%" class="estudio_fecha form-control date-picker unset" data-date-format="dd-mm-yyyy" onchange="javascript:estudioChange(this);" value="{{ estudio.fechaEmision | date('d/m/Y') }}" actualvalue="{{ estudio.fechaEmision | date('d/m/Y') }}">
  1145.                                                             <span class="input-group-addon"><i class="fas fa-calendar bigger-110"></i></span>
  1146.                                                         </div>
  1147.                                                     </td>
  1148.                                                     <th>
  1149.                                                         <button title="Guardar cambios" class="hide button quick_estudio_save" onclick="javascript:estudioSave(this);"><i class="fas fa-save"></i></button>
  1150.                                                         <button title="Deshacer cambios" class="hide button quick_estudio_cancel" onclick="javascript:estudioCancel(this);"><i class="fas fa-ban red"></i></button>
  1151.                                                         <button title="Eliminar" class='quick_estudio_delete' onclick="javascript:estudioDelete(this);"><i class="fas fa-trash-alt red"></i></button>
  1152.                                                     </th>
  1153.                                                 </tr>
  1154.                                             {% endfor %}
  1155.                                         </tbody>
  1156.                                     </table>
  1157.                                 </td>
  1158.                             </tr>
  1159.                             <tr>
  1160.                                 <th style="width: {{ widthLabel }}">
  1161.                                     <label>
  1162.                                         Otras habilidades:
  1163.                                     </label>
  1164.                                 </th>
  1165.                                 <td>
  1166.                                     <table id="tablaDestrezas" class="table">
  1167.                                         <thead>
  1168.                                             <tr>
  1169.                                                 <th style="width: 280px">Destreza/Habilidad</th>
  1170.                                                 <th style="width: 165px">Tiempo de experiencia</th>
  1171.                                                 <th>Detalles</th>
  1172.                                                 <th style="width: 100px">{% if rol=='reservista' and (tab is not defined or tab !='registro') %}<button title="Adicionar habilidad" id="addDestreza"><i class="fas fa-plus-circle green"></i></button>{% endif %}</th>
  1173.                                             </tr>
  1174.                                             <tr class="patron hide">                                               
  1175.                                                 <td>
  1176.                                                     <select style="width: 100%" class="chosen-select select-destreza" onchange="javascript:selectDestrezaChange(this);" actualvalue="" lastValue="">
  1177.                                                         <option class="option_destreza_empty" value="">-- Seleccione --</option>
  1178.                                                         {% for destreza in destrezas %}
  1179.                                                             <option class="option_destreza destreza_{{ destreza.id }}" value="{{ destreza.id }}">{{ destreza }}</option>
  1180.                                                         {% endfor %}
  1181.                                                     </select>
  1182.                                                 </td>
  1183.                                                 <td><input type="text" style="width: 100%" onkeyup='javascript:destrezaChange(this);' actualvalue=""></td>
  1184.                                                 <td><textarea style="width: 100%" onkeyup='javascript:destrezaChange(this);' actualvalue=""></textarea></td>
  1185.                                                 <th>
  1186.                                                     <button title="Guardar cambios" class="hide button quick_destreza_save" onclick="javascript:destrezaSave(this);"><i class="fas fa-save"></i></button>
  1187.                                                     <button title="Deshacer cambios" class="hide button quick_destreza_cancel" onclick="javascript:destrezaCancel(this);"><i class="fas fa-ban red"></i></button>
  1188.                                                     <button title="Eliminar" class='quick_destreza_delete' onclick="javascript:destrezaDelete(this);"><i class="fas fa-trash-alt red"></i></button>
  1189.                                                 </th>
  1190.                                             </tr>
  1191.                                         </thead>
  1192.                                         <tbody>
  1193.                                             {% for habilidad in habilidades %}
  1194.                                                 <tr destrezaid="{{ habilidad.id }}">                                               
  1195.                                                     <td>
  1196.                                                         <select style="width: 100%" class="chosen-select select-destreza" onchange="javascript:selectDestrezaChange(this)" actualvalue="{{ habilidad.destreza.id }}" lastValue="{{ habilidad.destreza.id }}" disabled="true">
  1197.                                                             <option class="option_destreza_empty" value="">-- Seleccione --</option>
  1198.                                                             {% for destreza in destrezas %}
  1199.                                                                 <option class="option_destreza destreza_{{ destreza.id }}" value="{{ destreza.id }}" {% if destreza.id == habilidad.destreza.id %}selected="true"{% endif %}>{{ destreza }}</option>
  1200.                                                             {% endfor %}
  1201.                                                         </select>
  1202.                                                     </td>
  1203.                                                     <td><input type="text" style="width: 100%" onkeyup='javascript:destrezaChange(this)' value="{{ habilidad.tiempo }}" actualvalue="{{ habilidad.tiempo }}"></td>
  1204.                                                     <td><textarea style="width: 100%" onkeyup='javascript:destrezaChange(this)' actualvalue="{{ habilidad.detalles }}">{{ habilidad.detalles }}</textarea></td>
  1205.                                                     <th>
  1206.                                                         <button title="Guardar cambios" class="hide button quick_destreza_save" onclick="javascript:destrezaSave(this)"><i class="fas fa-save"></i></button>
  1207.                                                         <button title="Deshacer cambios" class="hide button quick_destreza_cancel" onclick="javascript:destrezaCancel(this)"><i class="fas fa-ban red"></i></button>
  1208.                                                         <button title="Eliminar" class='quick_destreza_delete' onclick="javascript:destrezaDelete(this)"><i class="fas fa-trash-alt red"></i></button>
  1209.                                                     </th>
  1210.                                                 </tr>
  1211.                                             {% endfor %}
  1212.                                         </tbody>
  1213.                                     </table>
  1214.                                 </td>
  1215.                             </tr>
  1216.                         </table>
  1217.                         {% block more_acuartelamiento %}        
  1218.                         {% endblock more_acuartelamiento %}        
  1219.                     </div>
  1220.                 </div>
  1221.             </div>
  1222.         </div>
  1223.     </div>
  1224.     {% block more_seccion %}        
  1225.         <div class="panel panel-default">
  1226.             <div class="panel-heading">
  1227.                 <h4 class="panel-title green">
  1228.                     <a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#datosPersonales">
  1229.                         <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>
  1230.                         &nbsp;Resultados del proceso
  1231.                     </a>
  1232.                 </h4>
  1233.             </div>
  1234.             <div style="" aria-expanded="true" class="panel-collapse collapse in " id="datosPersonales">
  1235.                 {% if not entity.certificadoVacunacionOk %}
  1236.                     <div id='no_cupo' class='hide'>
  1237.                         <i class="fas fa-ban red bigger-300"></i>
  1238.                         <span id="span_no_idoneo" style="color: red; font-weight: bold; font-size: 20px">
  1239.                             NO PUEDE REGISTRARSE RESULTADO PORQUE NO SE HA VALIDADO EL CERTIFICADO DE VACUNACIÓN
  1240.                         </span>
  1241.                     </div>           
  1242.                 {% else %}
  1243.                     <div id="divResultado" class="panel-body" style="border-width: 1px; border-color: red">
  1244.                         <div class="row">
  1245.                             <div class="col-xs-12">
  1246.                                 {% if entity.fechaResultado %}
  1247.                                     {% if entity.idoneo %}
  1248.                                         <p color='green'>IDÓNEO</p>
  1249.                                         <table class="table table-striped table-bordered table-hover">
  1250.                                             <tr>
  1251.                                                 <th style="width: {{ widthLabel }}">
  1252.                                                     <label>
  1253.                                                         Unidad asignada:
  1254.                                                     </label>
  1255.                                                 </th>
  1256.                                                 <td>
  1257.                                                     {{ entity.unidadMilitar }}
  1258.                                                 </td>
  1259.                                                 <th style="width: {{ widthLabel }}">
  1260.                                                     <label>
  1261.                                                         Centro instrucción:
  1262.                                                     </label>
  1263.                                                 </th>
  1264.                                                 <td>
  1265.                                                     {{ entity.unidadMilitar.centroInstruccion }}
  1266.                                                 </td>
  1267.                                             </tr>
  1268.                                         </table>
  1269.                                     {% else %}
  1270.                                         <p color='red'>NO IDÓNEO</p>
  1271.                                         <table class="table table-striped table-bordered table-hover">
  1272.                                             <tr>
  1273.                                                 <th style="width: {{ widthLabel }}">
  1274.                                                     <label>
  1275.                                                         Causa rechazo:
  1276.                                                     </label>
  1277.                                                 </th>
  1278.                                                 <td>
  1279.                                                     {{ entity.causaRechazo }}
  1280.                                                 </td>
  1281.                                             </tr>
  1282.                                             <tr>
  1283.                                                 <th style="width: {{ widthLabel }}">
  1284.                                                     <label>
  1285.                                                         Observaciones:
  1286.                                                     </label>
  1287.                                                 </th>
  1288.                                                 <td>
  1289.                                                     {{ entity.observaciones }}
  1290.                                                 </td>
  1291.                                             </tr>
  1292.                                             <tr>
  1293.                                                 <th style="width: {{ widthLabel }}">
  1294.                                                     <label>
  1295.                                                         Volver a presentarse:
  1296.                                                     </label>
  1297.                                                 </th>
  1298.                                                 <td>
  1299.                                                     {{ entity.volverPresentarse }}
  1300.                                                 </td>
  1301.                                             </tr>
  1302.                                         </table>
  1303.                                     {% endif %}
  1304.                                 {% endif %}
  1305.                                     {% if not entity.fechaResultado or (not entity.idoneo and entity.volverPresentarse.getValue()=='MISMO') %}
  1306.                                         <form id='form_resultados' method='post' action='{{ path('aspirante_salvar_resultado') }}'>
  1307.                                             <input type='hidden' name='resultado[reclutaProceso]' value='{{ entity.id }}'>
  1308.                                             <table class="table table-striped table-bordered table-hover">
  1309.                                                 <tr>
  1310.                                                     <th style="width: {{ widthLabel }}">
  1311.                                                         <label>
  1312.                                                             Resultado:
  1313.                                                         </label>
  1314.                                                     </th>
  1315.                                                     <td colspan='3'>
  1316.                                                         <input type='radio' class='resultado' id='resultadoIdoneo' name='resultado[resultado]' value='idoneo'>&nbsp;&nbsp;Idóneo
  1317.                                                         &nbsp;&nbsp;&nbsp;&nbsp;
  1318.                                                         <input type='radio' class='resultado' id='resultadoNoIdoneo' name='resultado[resultado]' value='noidoneo'>&nbsp;&nbsp;No Idóneo
  1319.                                                     </td>
  1320.                                                 </tr>
  1321.                                                 <tr id='trUnidadAsignar' class='hide'>
  1322.                                                     <th style="width: {{ widthLabel }}">
  1323.                                                         <label>
  1324.                                                             Unidad asignada:
  1325.                                                         </label>
  1326.                                                     </th>
  1327.                                                     <td colspan='3'>
  1328.                                                         <a id="botonAsignar" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('aspirante_asignar_unidad', {'reclutaProceso': entity.id }) }}">
  1329.                                                             Asignar Unidad
  1330.                                                         </a>
  1331.                                                     </td>
  1332.                                                 </tr>
  1333.                                                 <tr id='trUnidad' class='hide'>
  1334.                                                     <th style="width: {{ widthLabel }}">
  1335.                                                         <label>
  1336.                                                             Unidad asignada:
  1337.                                                         </label>
  1338.                                                     </th>
  1339.                                                     <td>
  1340.                                                         <span id='span_unidad'></span>
  1341.                                                         <input type='hidden' id='form_unidad' name='resultado[unidad]'>
  1342.                                                     </td>
  1343.                                                     <th style="width: {{ widthLabel }}">
  1344.                                                         <label>
  1345.                                                             Centro instrucción:
  1346.                                                         </label>
  1347.                                                     </th>
  1348.                                                     <td>
  1349.                                                         <span id='span_centro'></span>
  1350.                                                     </td>
  1351.                                                 </tr>
  1352.                                                 <tr id='trCausaRechazo' class='hide'>
  1353.                                                     <th style="width: {{ widthLabel }}">
  1354.                                                         <label>
  1355.                                                             Causa rechazo:
  1356.                                                         </label>
  1357.                                                     </th>
  1358.                                                     <td>
  1359.                                                         <input type='radio' id='causaPsicologica' name='resultado[causa]' value='PSICOLOGICA'>&nbsp;&nbsp;Psicológica
  1360.                                                     </td>
  1361.                                                     <td>
  1362.                                                         <input type='radio' id='causaMedica' name='resultado[causa]' value='MEDICA'>&nbsp;&nbsp;Médica
  1363.                                                     </td>
  1364.                                                     <td>
  1365.                                                         <input type='radio' id='causaLaboratorios' name='resultado[causa]' value='LABORATORIO'>&nbsp;&nbsp;Laboratorio
  1366.                                                     </td>
  1367.                                                 </tr>
  1368.                                                 <tr id='trObservaciones' class='hide'>
  1369.                                                     <th style="width: {{ widthLabel }}">
  1370.                                                         <label>
  1371.                                                             Observaciones:
  1372.                                                         </label>
  1373.                                                     </th>
  1374.                                                     <td colspan='3'>
  1375.                                                         <textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
  1376.                                                     </td>
  1377.                                                 </tr>
  1378.                                                 <tr id='trVolver' class='hide'>
  1379.                                                     <th style="width: {{ widthLabel }}">
  1380.                                                         <label>
  1381.                                                             Volver a presentarse:
  1382.                                                         </label>
  1383.                                                     </th>
  1384.                                                     <td>
  1385.                                                         <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO'>&nbsp;&nbsp;En este proceso
  1386.                                                     </td>
  1387.                                                     <td>
  1388.                                                         <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO'>&nbsp;&nbsp;Próximo proceso
  1389.                                                     </td>
  1390.                                                     <td>
  1391.                                                         <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA'>&nbsp;&nbsp;Nunca
  1392.                                                     </td>
  1393.                                                 </tr>
  1394.                                             </table>
  1395.                                         </form>
  1396.                                     {% endif %}
  1397.                             </div>
  1398.                         </div>
  1399.                     </div>
  1400.                 {% endif %}
  1401.             </div>
  1402.         </div>
  1403.     {% endblock more_seccion %}        
  1404.         <form id="formQuickUpdate" action="{{ path('crud_quick_update') }}" method="POST" class="hide">
  1405.             <input type="hidden" id="quick_form_class" name="quick[class]">
  1406.             <input type="hidden" id="quick_form_id" name="quick[id]">
  1407.             <input type="hidden" id="quick_form_field" name="quick[field]">
  1408.             <input type="hidden" id="quick_form_association_class" name="quick[association]">
  1409.             <input type="text" id="quick_input_valor" name="quick[valor]" style="width: 100%">
  1410.         </form>
  1411.         <form id="formDestrezaSave" action="{{ path('reservista_update_habilidad') }}" method="POST" class="hide">
  1412.             <input type="hidden" id="quick_form_reservista" name="quick[reservista]" value="{{ entity.reservista.id }}">
  1413.             <input type="hidden" id="quick_form_destreza" name="quick[destreza]">
  1414.             <input type="hidden" id="quick_form_tiempo" name="quick[tiempo]">
  1415.             <input type="hidden" id="quick_form_detalle" name="quick[detalle]">
  1416.         </form>
  1417.         <form id="formEstudioSave" action="{{ path('reservista_update_estudio') }}" method="POST" class="hide">
  1418.             <input type="hidden" id="quick_form_habilidad_id" name="quick[id]">
  1419.             <input type="hidden" id="quick_form_habilidad_reservista" name="quick[reservista]" value="{{ entity.reservista.id }}">
  1420.             <input type="hidden" id="quick_form_habilidad_titulo" name="quick[titulo]">
  1421.             <input type="hidden" id="quick_form_habilidad_institucion" name="quick[institucion]">
  1422.             <input type="hidden" id="quick_form_habilidad_nivel" name="quick[nivel]">
  1423.             <input type="hidden" id="quick_form_habilidad_cursando" name="quick[cursando]">
  1424.             <input type="hidden" id="quick_form_habilidad_fecha" name="quick[fecha]">
  1425.         </form>
  1426.         
  1427.     <div id="dialog-verify-email" title="Verificar correo electrónico">
  1428.         <form id="form_verify_email" action="{{ path('verifica_email') }}" method="POST">
  1429.             <input type="hidden" id="verify_email" name="verify_email">
  1430.         </form>
  1431.         <form id="form_verify_email_code" action="{{ path('verifica_email_code') }}" method="POST">
  1432.             <p>Se ha enviado un correo electrónico a su dirección: <span id="text_email"></span>.</p>
  1433.             <p>Revise su correo e introduzca el código de verificación envíado.</p>
  1434.             <p>Código de verificación: <input type="text" name="verify_email_code"></p>
  1435.         </form>
  1436.     </div>    
  1437.             
  1438.     <div id="dialog-change-canton">
  1439.         <table class="table table-striped table-bordered table-hover">
  1440.             <tr class="reside_ecuador">
  1441.                 <th style="width: 20%">
  1442.                     <label id="label_form_medico">
  1443.                         {% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}:
  1444.                     </label>
  1445.                 </th>
  1446.                 <td style="vertical-align: middle">
  1447.                     <select id='form_region' style="width: 100%" class="chosen-select" onchange='javascript:regionChange()'>
  1448.                         <option value=''>-- Seleccione --</option>
  1449.                         {% for region in regiones %}
  1450.                             <option value='{{ region.id }}'>{{ region }}</option>
  1451.                         {% endfor %}
  1452.                     </select>
  1453.                 </td>    
  1454.             </tr>    
  1455.             <tr class="reside_ecuador">
  1456.                 <th style="width: 20%">
  1457.                     <label id="label_form_medico">
  1458.                         {% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}:
  1459.                     </label>
  1460.                 </th>
  1461.                 <td style="vertical-align: middle">
  1462.                     <select id='form_provincia' style="width: 100%" class="chosen-select" onchange='javascripts:provinciaChange()'>
  1463.                         <option value=''>-- Seleccione --</option>
  1464.                         {% for provincia in provincias %}
  1465.                             <option value='{{ provincia.id }}'>{{ provincia }}</option>
  1466.                         {% endfor %}
  1467.                     </select>
  1468.                 </td>    
  1469.             </tr>    
  1470.             <tr class="reside_ecuador">
  1471.                 <th style="width: 20%">
  1472.                     <label id="label_form_medico">
  1473.                         {% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}:
  1474.                     </label>
  1475.                 </th>
  1476.                 <td style="vertical-align: middle">
  1477.                     <select id='form_canton' style="width: 100%" class="chosen-select" onchange='javascripts:cantonChange()'>
  1478.                         <option value=''>-- Seleccione --</option>
  1479.                         {% for canton in cantones %}
  1480.                             <option value='{{ canton.id }}'>{{ canton }}</option>
  1481.                         {% endfor %}
  1482.                     </select>
  1483.                 </td>    
  1484.             </tr>    
  1485.             <tr class="reside_ecuador">
  1486.                 <th style="width: 20%">
  1487.                     <label class="required">
  1488.                         {% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}:
  1489.                     </label>
  1490.                 </th>
  1491.                 <td style="vertical-align: middle">
  1492.                     <select id='form_parroquia' name="form[parroquiaResidencia]" style="width: 100%" class="chosen-select">
  1493.                         <option value=''>-- Seleccione --</option>
  1494.                         {% for parroquia in parroquias %}
  1495.                             <option value='{{ parroquia.id }}'>{{ parroquia }}</option>
  1496.                         {% endfor %}
  1497.                     </select>
  1498.                 </td>    
  1499.             </tr>   
  1500.         </table>
  1501.     </div>            
  1502.             
  1503.             
  1504.             
  1505.         
  1506. {% endblock %} 
  1507. {% block actions %}
  1508.     <div class="row">
  1509.         <div class="col-xs-6">
  1510.             <center>
  1511.                 {% block action_retorno %}
  1512.                     {#<a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_index', {'routeClassName': routeClassName}) }}">#}
  1513.                     <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'}) }}">
  1514.                         {% trans from 'crud' %}botones.regresar{% endtrans %}
  1515.                     </a>
  1516.                 {% endblock %} 
  1517.             </center>
  1518.         </div>   
  1519.         {% if not entity.fechaResultado %}
  1520.             {% if entity.certificadoVacunacionOk %}
  1521.                 <div class="col-xs-6 forChanges">
  1522.                     <center>
  1523.                         <a id="botonTerminar" class="btn btn-white btn-inverse btn-bold btn-round" href="">Terminar proceso</a>
  1524.                     </center>
  1525.                 </div>    
  1526.             {% endif %}            
  1527.         {% else %}            
  1528.             <div class="col-xs-6 forChanges">
  1529.                 <center>
  1530.                     <a id="botonImprimir"  target="_blank" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('imprimirFichaProceso', {'idReclutaProceso': entity.id }) }}">Imprimir resultado</a>
  1531.                 </center>
  1532.             </div>    
  1533.         {% endif %}            
  1534.     </div>
  1535. {% endblock %}