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

Open in your IDE?
  1. {% extends "layout_inicio.html.twig" %}
  2. {% block jquery %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         $(function()
  6.         {
  7.             {#% include 'RegionProvinciaCantonParroquia\\jquery.html.twig' with {'parroquiaField': 'parroquia'} %#}
  8.             var idReservista=0;
  9.             
  10.             $('#cedula').keyup(function(){
  11.                 $('.identidad_verificada').addClass('hide');
  12.                 $('.codigo_dactilar').addClass('hide');
  13.                 $('#tr_no_idoneo').addClass('hide');
  14.                 $("#proxy_codigo_dactilar").val('');
  15.                 $("#codigo_dactilar").val('');
  16.                 $("#proxy_expedicion_cedula").val('');
  17.                 $("#fecha_expedicion_cedula").val('');
  18.                 $("#proxy_captcha").val('');
  19.                 $("#captcha").val('');
  20.                 $('#fuelux-wizard-container').addClass('stopped');
  21.             });
  22.             $('#btn_verificar_id').click(function(e){
  23.                 e.preventDefault();
  24.                 var cedula = $('#cedula').val();
  25.                 if (!cedula)
  26.                 {
  27.                     showError(bootbox,'No ha indicado una identificación para ser verificada');
  28.                 }
  29.                 else
  30.                 {
  31.                     $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando identidad...');
  32.                     var url = '{{ path('reservista_verifica_identidad', {'identificacion': '__ID__'}) }}';
  33.                     url=url.replace('__ID__',cedula);
  34.                     $.getJSON(url , function(result){
  35.                         $('#fuelux-wizard-container').parent().parent().unmask();
  36.                         if (result.ok)
  37.                         {
  38.                             if (result.idoneo || result.causa=='EDAD' || result.causa=='DEFUNCION' )
  39.                             {
  40.                                 //formulario final
  41.                                 /*$('#form_nombres').val(result.nombres);
  42.                                 $('#form_apellidoP').val(result.apellidoP);
  43.                                 $('#form_apellidoM').val(result.apellidoM);
  44.                                 $('#form_edad').val(result.edadString);
  45.                                 $('#form_edadString').val(result.edadString);
  46.                                 $('#form_fechaNacimiento').val(result.fechaNacimiento);
  47.                                 $('#form_paisNacimiento').val(result.paisNacimiento);
  48.                                 $('#form_parroquiaNacimiento').val(result.parroquiaNacimiento);*/
  49.                                 $('#form_cedula').val(cedula);
  50.                                 $('#cedularecluta').val(cedula);
  51.                                 $('#cedularesidencia').val(cedula);
  52.                                 $('#cedulacentro').val(cedula);
  53.                                 $('#form_email').val(result.email);
  54.                                 $('#form_estatura').val(result.estatura);
  55.                                 $('#form_telefono').val(result.telefono);
  56.                                 $('#form_telefonoEmergencias').val(result.telefonoEmergencias);
  57.                                 $('#form_email').val(result.email);
  58.                                 $('#form_idoneo').val(result.idoneo);
  59.                                 $('#form_causa').val(result.causa);
  60.                                 $('#cedula_dactilar').val(cedula);
  61.                                 $('#span_edad1').html(result.edadString);
  62.                                 $('#span_edad2').html(result.edadString);
  63.                                 $('#span_cedula').html(cedula);
  64. //                                $('#form_sexo').val(result.sexo);
  65.                                 $('#form_telefono').val(result.telefono);
  66.                                 $('#span_estadoCivil').html(result.estadoCivil);
  67.                                 $('#span_nombre1').html(result.apellidoP+' '+result.apellidoM+' '+result.nombres);
  68.                                 $('#span_nombre2').html(result.apellidoP+' '+result.apellidoM+' '+result.nombres);
  69.                                 $('#span_fechaNacimiento').html(result.fechaNacimiento);
  70.                                 $('#span_paisNacimiento').html(result.paisNacimiento);
  71.                                 $('#span_lugarNacimiento').html(result.lugarNacimientoStr);
  72.                                 //$('#span_parroquiaNacimiento').html(result.parroquiaNacimiento);
  73.                                 //$('#span_cantonNacimiento').html(result.cantonNacimiento);
  74.                                 //$('#span_provinciaNacimiento').html(result.provinciaNacimiento);
  75.                                 //$('#span_regionNacimiento').html(result.regionNacimiento);
  76.                             }
  77.                             if (result.idoneo)
  78.                             {
  79.                                 $('.identidad_verificada').removeClass('hide');
  80.                                 $('.codigo_dactilar').removeClass('hide');
  81.                                 $('#tr_no_idoneo').addClass('hide');
  82.                                 var urlfoto = '{{ path('dropzone_single_show_component', {'routeClassName': 'reservista', 'field': 'foto', 'parentId':'__ID__', 'acceptedFiles':'image', 'txt': 'FOTO'}) }}';
  83.                                 urlfoto=urlfoto.replace('__ID__',result.reservistaID);
  84.                                 $('#fotorecluta').load(urlfoto);
  85.                                 var urlcovid = '{{ path('dropzone_single_show_component', {'routeClassName': 'reservista', 'field': 'certifCovid', 'parentId':'__ID__', 'acceptedFiles':'pdf', 'txt': 'CERTIFICADO DE VACUNACIÓN'}) }}';
  86.                                 urlcovid=urlcovid.replace('__ID__',result.reservistaID);
  87.                                 $('#covid').load(urlcovid);
  88.                                 $('#fuelux-wizard-container').removeClass('stopped');
  89.                             }
  90.                             else
  91.                             {
  92.                                 if (result.causa=='registrado') {
  93.                                     $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aspirante ya registrado. Cargando ficha de registro...');
  94.                                     var url = '{{ path('crud_plain_show', {'routeClassName': 'reclutaproceso', 'id': '__ID__','origen': 'registroenlinea' }) }}';
  95.                                     url = url.replace('__ID__',result.procesoId);
  96.                                     document.location.href=url;
  97.                                 }
  98.                                 else
  99.                                 if (result.causa=='IDENTIDAD')
  100.                                 {                                            
  101.                                     showError(bootbox, result.msg);
  102.                                 }
  103.                                 else
  104.                                 {
  105.                                     $('.identidad_verificada').removeClass('hide');
  106.                                     $('.codigo_dactilar').addClass('hide');
  107.                                     $('#tr_no_idoneo').removeClass('hide');
  108.                                     $('#span_no_idoneo').html(result.msg);
  109.                                     $('#fuelux-wizard-container').addClass('finished');
  110.                                     $('.btn-success').html('FINALIZAR');
  111.                                     $('#btn_verificar_id').remove();
  112.                                 } 
  113.                             }
  114.                         }
  115.                         else
  116.                         {
  117.                             showError(bootbox, result.msg);
  118.                         }
  119.                     });
  120.                 }
  121.             });
  122.             $('#btn_verificar_antecedentes').click(function(e){
  123.                 e.preventDefault();
  124.                 $('#btn_verificar_antecedentes').addClass('hide');
  125.                 $('#fuelux-wizard-container').addClass('stopped');
  126.                 var cedula = $('#cedularecluta').val();
  127.                 $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando antecedentes...');
  128.                 var url = '{{ path('reservista_verifica_antecedentes', {'identificacion': '__ID__'}) }}';
  129.                 url=url.replace('__ID__',cedula);
  130.                 $.getJSON(url , function(result){
  131.                     $('#table_antecedentes').removeClass('hide');
  132.                     $('#fuelux-wizard-container').parent().parent().unmask();
  133.                     if (result.ok)
  134.                     {
  135.                         if (result.idoneo)
  136.                         {
  137.                             $('#tr_noantecedentes').removeClass('hide');
  138.                             $('#fuelux-wizard-container').removeClass('stopped');
  139.                         }
  140.                         else
  141.                         {
  142.                             $('#antecedentes_'+result.antecedente).prop('checked', true);
  143.                             $('#tr_antecedentes').removeClass('hide');
  144.                             $('#fuelux-wizard-container').addClass('finished');
  145.                             $('.btn-success').html('FINALIZAR');
  146.                         } 
  147.                     }
  148.                     else
  149.                     {
  150.                         $('#btn_verificar_antecedentes').removeClass('hide');
  151.                         showError(bootbox, result.msg);
  152.                     }
  153.                 });
  154.             });
  155.             $('#btn_verificar_estudios').click(function(e){
  156.                 e.preventDefault();
  157.                 $('#btn_verificar_antecedentes').addClass('hide');
  158. //                $('#fuelux-wizard-container').addClass('stopped');
  159.                 var cedula = $('#cedularecluta').val();
  160.                 $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando antecedentes...');
  161.                 var url = '{{ path('reservista_verifica_estudios', {'identificacion': '__ID__'}) }}';
  162.                 url=url.replace('__ID__',cedula);
  163.                 $.getJSON(url , function(result){
  164.                     $('#fuelux-wizard-container').parent().parent().unmask();
  165.                     if (result.ok)
  166.                     {
  167.                         $('#table_estudios').removeClass('hide');
  168.                         var flen = result.estudios.length;
  169.                         if (flen>0)
  170.                         {
  171.                             var i;
  172.                             for (i=0; i<flen; i++)
  173.                             {
  174.                                 $('#estudios').append('<tr><td>'+result.estudios[i].titulo+'</td><td>'+result.estudios[i].institucion+'</td></tr>');
  175.                             }
  176.                         }
  177.                         else
  178.                         {
  179.                             $('#estudios').append('<tr><td colspan="3" style="text-align: center">No hay estudios registrados</td></tr>');
  180.                         }
  181.                     }
  182.                     else
  183.                     {
  184.                         $('#btn_verificar_antecedentes').removeClass('hide');
  185.                         showError(bootbox, result.msg);
  186.                     }
  187.                 });
  188.             });
  189.             $('#proxy_expedicion_cedula').datepicker({
  190.                 autoclose: true,
  191.                 todayHighlight: true,
  192.                 language: 'es'
  193.             })
  194.             .next().on(ace.click_event, function(){
  195.                 $(this).prev().focus();
  196.             });
  197.             $("#captcha_refresh").click(function (e){
  198.                 e.preventDefault();
  199.                 $("#captcha_img").html('<i class="ace-icon fa fa-spinner orange fa-spin bigger-220"></i>');
  200.                 $("#captcha_img").html('<img src="{{path('captcha')}}?rdn='+Math.random()+'" />');
  201.             });    
  202.             $("#proxy_codigo_dactilar").change(function(){
  203.                 $("#codigo_dactilar").val($("#proxy_codigo_dactilar").val());
  204.             });
  205.             $("#proxy_expedicion_cedula").change(function(){
  206.                 $("#fecha_expedicion_cedula").val($("#proxy_expedicion_cedula").val());
  207.             });
  208.             $("#proxy_captcha").change(function(){
  209.                 $("#captcha").val($("#proxy_captcha").val());
  210.             });
  211.             $("#email").change(function(){
  212.                 $("#form_email").val($("#email").val());
  213.             });
  214.             $("#checkResidencia").click(function(){
  215.                 if ($("#checkResidencia").prop('checked'))
  216.                 {
  217.                     $('.reside_ecuador').removeClass('hide');
  218.                     $('.reside_extranjero').addClass('hide');
  219.                     $('#label_referencia').html('Referencia:');
  220.                     $('#label_referencia').removeClass('required');
  221.                     $('#direccionextranjero').val($('#form_referencia').val());
  222.                     $('#form_referencia').val($('#direccionecuador').val());
  223.                     $('#geometriaextranjero').val($('#form_geometria').val());
  224.                     $('#form_geometria').val($('#geometriaecuador').val());       
  225.                     $('#ubicacionextranjerovisible').val($('#textoGeometriaPunto').html());
  226.                     $('#textoGeometriaPunto').html($('#ubicacionecuadorvisible').val());
  227.                 }
  228.                 else
  229.                 {
  230.                     $('#form_paisResidencia').val('');
  231.                     $('.reside_ecuador').addClass('hide');
  232.                     $('.reside_extranjero').removeClass('hide');
  233.                     $('#label_referencia').html('Dirección:');
  234.                     $('#label_referencia').addClass('required');
  235.                     $('#direccionecuador').val($('#form_referencia').val());
  236.                     $('#form_referencia').val($('#direccionextranjero').val());
  237.                     $('#geometriaecuador').val($('#form_geometria').val());
  238.                     $('#form_geometria').val($('#geometriaextranjero').val());       
  239.                     $('#ubicacionecuadorvisible').val($('#textoGeometriaPunto').html());    
  240.                     $('#textoGeometriaPunto').html($('#ubicacionextranjerovisible').val());
  241.                 }
  242.             });
  243.             $('#form_geometria').change(function(){                                        
  244.                 geometria = $('#form_geometria').val();
  245.                 valor = mostrarTextoGeometria(geometria); 
  246.                 $('#textoGeometriaPunto').html(valor);
  247.             });
  248.         });
  249.         
  250.     </script>
  251. {% endblock jquery %}
  252. {% block jquery_functions %}
  253.     {{ parent() }}
  254.     
  255.     {% include 'RegionProvinciaCantonParroquia\\jquery_functions.html.twig'  with {'parroquiaField': 'parroquia'} %}
  256.       
  257.     function finalizaRegistro()
  258.     {
  259.     }
  260.     
  261.     function mostrarTextoGeometria(geometria)
  262.     {
  263.         cadenaRetorno = '';
  264.         if (geometria.length)
  265.         {
  266.             cadena = geometria.replace('POINT(','');
  267.             cadena = cadena.replace(')','');
  268.             punto = cadena.split(' ');  
  269.             cadenaRetorno = 'Lat:'+ parseFloat(punto[1]).toFixed(2) + ' Lon:'+ parseFloat(punto[0]).toFixed(2);
  270.         }
  271.         return cadenaRetorno;
  272.     }
  273.     function showError(bootbox, texto)
  274.     {
  275.         bootbox.dialog({
  276.             message: texto, 
  277.             buttons: {
  278.                 "success" : {
  279.                     "label" : "OK",
  280.                     "className" : "btn-sm btn-primary"
  281.                 }
  282.             }
  283.         });
  284.     }
  285.     
  286. {% endblock jquery_functions %}
  287. {% block content %} 
  288.     <div class="widget-box transparent">
  289.         <div class="widget-header widget-header-flat">
  290.             <h4 class="widget-title lighter">
  291.                 {% if allow %}
  292.                     <i class="fas fa-pencil-alt orange"></i>
  293.                     Actualización en línea de datos de Reservistas
  294.                 {% else %}
  295.                     <i class="fas fa-ban red"></i>
  296.                     {{ msg }}
  297.                 {% endif %}
  298.             </h4>
  299.         </div>
  300.         {% if allow %}
  301.             <div class="widget-body" style="display: block;">
  302.                 <div class="widget-main no-padding">
  303.                     <script type="text/javascript">
  304.                         $(function()
  305.                         {
  306.                             $('.just_numbers').keypress(function(e){
  307.                                 if (e.which<48 || e.which>57 )
  308.                                     e.preventDefault();
  309.                             });
  310.                             
  311.                             $('.chosen-select').chosen({allow_single_deselect:true}); 
  312.                             $('#fuelux-wizard-container')
  313.                             .ace_wizard({
  314.                                     //step: 4, //optional argument. wizard will jump to step "4" at first
  315.                                     //buttons: '.wizard-actions:eq(0)'
  316.                             })
  317.                             .on('actionclicked.fu.wizard' , function(e, info){
  318.                                 if (info.direction=="next")
  319.                                 {
  320.                                     if ($('#fuelux-wizard-container').hasClass('finished'))
  321.                                     {
  322.                                         e.preventDefault();
  323.                                         document.location.href='{{ path('reservista_registro_en_linea') }}';
  324.                                     }
  325.                                     if ($('#fuelux-wizard-container').hasClass('stopped'))
  326.                                     {
  327.                                         e.preventDefault();
  328.                                         return;
  329.                                     }
  330.                                     if (info.step==1)
  331.                                     {
  332.                                         e.preventDefault();
  333.                                         if ($('#codigo_dactilar').val() && $('#fecha_expedicion_cedula').val() && $('#captcha').val())
  334.                                         {
  335.                                             $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando información...');
  336.                                             $('#registro_dactilar').ajaxSubmit({
  337.                                                 type: $('#registro_dactilar').attr('method'),
  338.                                                 url: $('#registro_dactilar').attr('action'),
  339.                                                 dataType: 'json',
  340.                                                 data: { _xml_http_request: true },
  341.                                                 success: function(data) {
  342.                                                     $("#fuelux-wizard-container" ).parent().parent().unmask();
  343.                                                     if (data.ok)
  344.                                                     {  
  345.                                                         if (data.idoneo)
  346.                                                         {
  347.                                                             $('#form_sexo').val(data.dactilarRegCivil.sexo);
  348.                                                             var wizard = $('#fuelux-wizard-container').data('fu.wizard');
  349.                                                             wizard.currentStep = 2;
  350.                                                             wizard.setState();
  351.                                                             $('#btn_verificar_antecedentes').removeClass('hide');
  352.                                                             $('#table_antecedentes').addClass('hide');
  353.                                                             $('#table_estudios').addClass('hide');
  354.                                                             $('#tr_antecedentes').addClass('hide');
  355.                                                             $('#tr_noantecedentes').addClass('hide');
  356.                 
  357.                                                             $('#estudios').html('');
  358.                                                             $('#fuelux-wizard-container').addClass('stopped');
  359.                                                         }
  360.                                                         else
  361.                                                         {
  362.                                                             $('#tr_no_idoneo').removeClass('hide');
  363.                                                             $('#span_no_idoneo').html(data.msg);
  364.                                                             $('#fuelux-wizard-container').addClass('finished');
  365.                                                             $('.btn-success').html('FINALIZAR');
  366.                                                         }
  367.                                                     }
  368.                                                     else
  369.                                                     {
  370.                                                         showError(bootbox,data.msg);
  371.                                                     }
  372.                                                 }
  373.                                             });
  374.                                         }
  375.                                         else
  376.                                         {
  377.                                             showError(bootbox,'Debe indicar el código dactilar, la fecha de expedición de la cédula y el texto que se muestra.');
  378.                                         }
  379.                                     }
  380.                                     if (info.step==3)
  381.                                     {
  382.                                         e.preventDefault();
  383.                                         if (!($('#form_telefonoEmergencias').val() && $('#form_telefono').val() && $('#form_email').val() && $('#form_estatura').val()))
  384.                                         {
  385.                                             showError(bootbox,'Debe indicar la estatura, los teléfonos y el correo electrónico.');
  386.                                         }
  387.                                         else
  388.                                         if (isNaN($('#form_estatura').val()))
  389.                                         {
  390.                                             showError(bootbox,'La estatura debe ser un valor numérico.');
  391.                                         }
  392.                                         else
  393.                                         if (!validEmail($('#form_email').val()))
  394.                                         {
  395.                                             showError(bootbox,'Correo electrónico en formato incorrecto.');
  396.                                         }
  397.                                         else
  398.                                         if (false/*!$('#fuelux-wizard-container').hasClass('mail_verified')*/)
  399.                                         {
  400.                                             $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando correo electrónico...');
  401.                                             $('#verify_email').val( $('#form_email').val() );
  402.                                             $('#text_email').html( $('#form_email').val() );
  403.                                             $('#form_verify_email').ajaxSubmit({
  404.                                                 type: $('#form_verify_email').attr('method'),
  405.                                                 url: $('#form_verify_email').attr('action'),
  406.                                                 dataType: 'json',
  407.                                                 data: { _xml_http_request: true },
  408.                                                 success: function(data) {
  409.                                                     $('#fuelux-wizard-container').parent().parent().unmask();
  410.                                                     if (data.ok)
  411.                                                     {  
  412.                                                         $('#dialog-verify-email').dialog('open');
  413.                                                     }
  414.                                                     else
  415.                                                     {
  416.                                                         showError(bootbox, data.msg);
  417.                                                     }
  418.                                                 }
  419.                                             });
  420.                                         }
  421.                                         else
  422.                                         {
  423.                                             grabaDatosPersonales();
  424.                                         }
  425.                                     }
  426.                                     if (info.step==4)
  427.                                     {
  428.                                         e.preventDefault();
  429.                                         if ($('#fuelux-wizard-container').hasClass('stopped'))
  430.                                         {
  431.                                             return;
  432.                                         }
  433.                                         var salvar = true;
  434.                                         if ($('#checkResidencia').prop('checked'))
  435.                                         {
  436.                                             if (!($('#form_parroquia').val() && $('#form_callePrincipal').val() && 
  437.                                                   $('#form_calleSecundaria').val() && $('#form_nroCasa').val()))
  438.                                             {
  439.                                                 salvar = false;
  440.                                                 showError(bootbox,'Debe indicar todos los campos marcados en rojo.');
  441.                                             }
  442.                                         }
  443.                                         else
  444.                                         {
  445.                                             if (!($('#form_paisResidencia').val() && $('#form_referencia').val()))
  446.                                             {
  447.                                                 salvar=false;
  448.                                                 showError(bootbox,'Debe indicar todos los campos marcados en rojo.');
  449.                                             }
  450.                                         }
  451.                                         
  452.                                         if (!($('#form_centro').val()))
  453.                                         {
  454.                                             e.preventDefault();
  455.                                             salvar=false;
  456.                                             showError(bootbox,'Debe indicar el Centro de Movilización en el que desea capacitarse.');
  457.                                         }
  458.                                         if (salvar)
  459.                                         {
  460.                                             $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Guardando información...');
  461.                                             $('#datos_residencia').ajaxSubmit({
  462.                                                 type: $('#datos_residencia').attr('method'),
  463.                                                 url: $('#datos_residencia').attr('action'),
  464.                                                 dataType: 'json',
  465.                                                 data: { _xml_http_request: true },
  466.                                                 success: function(data) {
  467.                                                     $('#fuelux-wizard-container').parent().parent().unmask();
  468.                                                     if (data.ok)
  469.                                                     {  
  470.                                                         idReservista=data.id;
  471.                                                         var wizard = $('#fuelux-wizard-container').data('fu.wizard');
  472.                                                         wizard.currentStep = 5;
  473.                                                         wizard.setState();
  474.                                                     }
  475.                                                 }
  476.                                             });
  477.                                         }
  478.                                     }
  479.                                 }
  480.                                 else
  481.                                 {
  482.                                     $('#fuelux-wizard-container').removeClass('stopped');
  483.                                 }
  484.                             })
  485.                             .on('finished.fu.wizard', function(e) {
  486.                                 if ($('#fuelux-wizard-container').hasClass('stopped'))
  487.                                 {
  488.                                     e.preventDefault();
  489.                                     return;
  490.                                 }
  491.                                 var salvar = true;                                                                
  492.                                     
  493.                                 if (salvar)
  494.                                 {
  495.                                     $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finalizando...');
  496.                                     var url = '{{ path('crud_plain_show', {'routeClassName': 'reservistaproceso', 'id': '__ID__', 'tab': 'registro' }) }}';
  497.                                     url = url.replace('__ID__',idReservista);
  498.                                     document.location.href=url;
  499.                                 }
  500.                             })
  501.                             .on('stepclicked.fu.wizard', function(e){
  502.                                 e.preventDefault();//this will prevent clicking and selecting steps
  503.                             });
  504.                         });
  505.                         
  506.                         $(function()
  507.                         {
  508.                             var cargainicialresidencia = true;
  509.                             var cargainicialcentro = true;
  510.                             $( "#dialog-mapa-residencia" ).dialog({
  511.                                 autoOpen: false,
  512.                                 height: 610,
  513.                                 width: 750,
  514.                                 modal: true,
  515.                                 resizable: false,
  516.                                 title_html: true,
  517.                                 title: '<div id="texto" class="widget-header widget-header-small"><h4 class="smaller red"><i class="fas fa-globe"></i>&nbsp;Definir Ubicación en Mapa</h4></div>',
  518.                                 buttons: {
  519.                                     Cancelar: function() {
  520.                                         $( "#dialog-mapa-residencia" ).dialog( "close" );
  521.                                     }
  522.                                 }
  523.                             });
  524.                             $( "#dialog-verify-email" ).dialog({
  525.                                 autoOpen: false,
  526.                                 height: 310,
  527.                                 width: 400,
  528.                                 modal: true,
  529.                                 resizable: false,
  530.                                 title_html: true,
  531.                                 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>',
  532.                                 buttons: {
  533.                                     Aceptar: function() {
  534.                                         $('#fuelux-wizard-container').parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando cóodigo...');
  535.                                         $('#form_verify_email_code').ajaxSubmit({
  536.                                             type: $('#form_verify_email_code').attr('method'),
  537.                                             url: $('#form_verify_email_code').attr('action'),
  538.                                             dataType: 'json',
  539.                                             data: { _xml_http_request: true },
  540.                                             success: function(data) {
  541.                                                 $('#fuelux-wizard-container').parent().parent().unmask();
  542.                                                 if (data.ok)
  543.                                                 {  
  544.                                                     $( "#dialog-verify-email" ).dialog( "close" );
  545.                                                     grabaDatosPersonales();
  546.                                                 }
  547.                                                 else
  548.                                                 {
  549.                                                     showError(bootbox, data.msg);
  550.                                                 }
  551.                                             }
  552.                                         });
  553.                                     },
  554.                                     Cancelar: function() {
  555.                                         $( "#dialog-verify-email" ).dialog( "close" );
  556.                                     }
  557.                                 }
  558.                             });
  559.                             $("#maparesidencia").click(function(e){
  560.                                 e.preventDefault(); 
  561.                                 var idcampo = $(this).attr('itemid');
  562.                                 var tipoDibujo = $(this).attr('geom');
  563.                                 var url = "{{ path('dibujarPunto', {'tipoDibujo': '__TIPO__', 'idCampo': '__CAMPO__', 'idContenedorMapa': 'dialog-mapa-residencia'}) }}";
  564.                                 url =url.replace('__TIPO__', tipoDibujo); 
  565.                                 url =url.replace('__CAMPO__', idcampo); 
  566.                                 $("#dialog-mapa-residencia").dialog("open");
  567.                                 if (cargainicialresidencia)
  568.                                 {    
  569.                                     $('#dialog-mapa-residencia').load(url);
  570.                                     cargainicialresidencia = false;
  571.                                 }
  572.                             }); 
  573.                                                                   
  574.                             
  575.                             $("#mapacentro").click(function(e){
  576.                                 e.preventDefault(); 
  577.                                 var idcampo = $(this).attr('itemid');
  578.                                 var tipoDibujo = $(this).attr('geom');
  579.                                 var url = '{{ path('mostrarGeometria', {'tipoDibujo': '__TIPO__', 'idCampo': '__CAMPO__', 'idContenedorMapa': 'dialog-mapa-residencia'}) }}';
  580.                                 url =url.replace('__TIPO__', tipoDibujo); 
  581.                                 url =url.replace('__CAMPO__', idcampo); 
  582.                                 $("#dialog-mapa-residencia").dialog("open");
  583.                                 if (cargainicialcentro)
  584.                                 {    
  585.                                     $('#dialog-mapa-residencia').load(url);
  586.                                     cargainicialcentro = false;
  587.                                 }
  588.                             }); 
  589.                             
  590.                             $('#form_centroMovilizacion').change(function(){
  591.                                 $('#span_centro_region').html('');
  592.                                 $('#span_centro_provincia').html('');
  593.                                 $('#span_centro_canton').html('');
  594.                                 $('#span_centro_parroquia').html('');
  595.                                 $('#span_centro_direccion').html('');
  596.                                 $('#span_centro_direccionAcuartelamiento').html('');
  597.                                 $('#form_final_centro').val($(this).val());
  598.                                 if ($(this).val())
  599.                                 {
  600.                                     $('#tabla_centro').parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
  601.                                     var url = '{{ path('dpa_centro_movilizacion', {'centro': '__ID__'}) }}';
  602.                                     url=url.replace('__ID__',$(this).val());
  603.                                     $.getJSON(url , function(result){
  604.                                         $('#tabla_centro').parent().unmask();
  605.                                         if (result.ok)
  606.                                         {
  607.                                             $('#mapacentro').removeClass('hide');
  608.                                             $('#span_centro_region').html(result.region);
  609.                                             $('#span_centro_provincia').html(result.provincia);
  610.                                             $('#span_centro_canton').html(result.canton);
  611.                                             $('#span_centro_parroquia').html(result.parroquia);
  612.                                             $('#span_centro_direccion').html(result.direccion);
  613.                                             if (result.direccionAcuartelamiento && result.direccionAcuartelamiento!='') {
  614.                                                 $('#span_centro_direccionAcuartelamiento').html(result.direccionAcuartelamiento);
  615.                                             }
  616.                                             else {
  617.                                                 $('#span_centro_direccionAcuartelamiento').html(result.direccion);
  618.                                             }
  619.                                             $('#centrogeometria').val(result.geometria);
  620.                                         }
  621.                                     });
  622.                                 }
  623.                                 else
  624.                                 {
  625.                                     $('#mapacentro').addClass('hide');
  626.                                 }
  627.                             });
  628.                         });
  629.                         function validEmail(email)
  630.                         {
  631.                             var emailPattern = new RegExp("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$");
  632.                             email = email.toUpperCase();
  633.                             var emailOk = emailPattern.exec(email);
  634.                             if (!emailOk || emailOk[0]!=email)
  635.                             {
  636.                                 jAlert('El email no cumple con el formato válido de una dirección de correo electrónico.', 'Error');
  637.                                 return false;
  638.                             }
  639.                             return true;
  640.                         }
  641.                         
  642.                         function grabaDatosPersonales()
  643.                         {
  644.                             $('#form_sexo').removeAttr('disabled');
  645.                             $("#fuelux-wizard-container" ).parent().parent().mask('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verificando información...');
  646.                             $('#datos_recluta').ajaxSubmit({
  647.                                 type: $('#datos_recluta').attr('method'),
  648.                                 url: $('#datos_recluta').attr('action'),
  649.                                 dataType: 'json',
  650.                                 data: { _xml_http_request: true },
  651.                                 success: function(data) {
  652.                                     $("#fuelux-wizard-container" ).parent().parent().unmask();
  653.                                     if (data.ok)
  654.                                     {
  655.                                         
  656.                                         var wizard = $('#fuelux-wizard-container').data('fu.wizard');
  657.                                         wizard.currentStep = 4;
  658.                                         wizard.setState();
  659.                                     }
  660.                                     else
  661.                                     {
  662.                                         showError(bootbox,'Ha ocurrido un error. Intente nuevamente');
  663.                                     }
  664.                                 }
  665.                             });
  666.                         }
  667.                     </script>
  668.                         <div class="row">
  669.                             <div class="col-xs-12">
  670.                                 <div id="fuelux-wizard-container" class="stopped">
  671.                                     <div>
  672.                                         <!-- #section:plugins/fuelux.wizard.steps -->
  673.                                         <ul class="steps">
  674.                                             <li data-step="1" class="active">
  675.                                                 <span class="step">1</span>
  676.                                                     <span class="title">{% trans from 'crud' %} registroenlinea.fields.validacionIdentidad {% endtrans %}</span>
  677.                                             </li>
  678.                                             <li data-step="2" class="active">
  679.                                                 <span class="step">2</span>
  680.                                                     <span class="title">ANTECEDENTES</span>
  681.                                             </li>
  682.                                             <li data-step="3">
  683.                                                 <span class="step">3</span>
  684.                                                     <span class="title">{% trans from 'crud' %} registroenlinea.fields.datosPersonales {% endtrans %}</span>
  685.                                             </li>
  686.                                             <li data-step="4">
  687.                                                 <span class="step">4</span>
  688.                                                     <span class="title">{% trans from 'crud' %} registroenlinea.fields.datosResidenciaCentro {% endtrans %}</span>
  689.                                             </li>
  690.                                             <li data-step="5" class="active">
  691.                                                 <span class="step">5</span>
  692.                                                     <span class="title">ESTUDIOS</span>
  693.                                             </li>
  694.                                         </ul>
  695.                                         <!-- /section:plugins/fuelux.wizard.steps -->
  696.                                     </div>
  697.                                     <hr />
  698.                                     <!-- #section:plugins/fuelux.wizard.container -->
  699.                                     <div class="step-content pos-rel">
  700.                                         <div class="step-pane active" data-step="1">
  701.                                             <input type="hidden" id="identidad_verificada">
  702.                                             <div class="row">
  703.                                                 <div class="col-xs-7">
  704.                                                     <table class="table table-striped table-bordered table-hover">
  705.                                                         <tr id='tr_identificacion'>
  706.                                                             <th style="width: 400px">
  707.                                                                 <label>
  708.                                                                         {% trans from 'crud' %} registroenlinea.fields.ingreseCedula {% endtrans %}
  709.                                                                 </label>
  710.                                                             </th>
  711.                                                             <td style="vertical-align: middle">
  712.                                                                 <input id="cedula" type="text" style="width: 100%">
  713.                                                                 <div> <small><i>Solo números Ejemplo: 9999999999</i></small></div>
  714.                                                             </td>    
  715.                                                             <td class="" style="vertical-align: middle">
  716.                                                                 <a id="btn_verificar_id" class="btn btn-white btn-inverse btn-bold btn-round" href="">
  717.                                                                     VERIFICAR
  718.                                                                 </a>
  719.                                                             </td>    
  720.                                                         </tr>   
  721.                                                         <tr class="identidad_verificada hide">
  722.                                                             <th style="width: 400px">
  723.                                                                 <label>
  724.                                                                         {% trans from 'crud' %} reclutaproceso.fields.recluta {% endtrans %} 
  725.                                                                 </label>
  726.                                                             </th>
  727.                                                             <td style="vertical-align: middle" colspan="2">
  728.                                                                 <span id="span_nombre1"></span>
  729.                                                             </td>    
  730.                                                         </tr>    
  731.                                                         <tr class="identidad_verificada hide">
  732.                                                             <th style="width: 400px">
  733.                                                                 <label>
  734.                                                                         {% trans from 'crud' %} reclutaproceso.fields.reclutaEdad {% endtrans %}
  735.                                                                 </label>
  736.                                                             </th>
  737.                                                             <td style="vertical-align: middle" colspan="2">
  738.                                                                 <span id="span_edad1">19</span>
  739.                                                             </td>    
  740.                                                         </tr>    
  741.                                                         <tr class="codigo_dactilar hide">
  742.                                                             <th style="width: 400px">
  743.                                                                 <label>
  744.                                                                         {% trans from 'crud' %} registroenlinea.fields.ingreseCodigoDactilar {% endtrans %}
  745.                                                                 </label>
  746.                                                             </th>
  747.                                                             <td style="vertical-align: middle" colspan="2">
  748.                                                                 <input type="text" id="proxy_codigo_dactilar" style="width: 100%">
  749.                                                             </td>    
  750.                                                         </tr>    
  751.                                                         <tr class="codigo_dactilar hide">
  752.                                                             <th style="width: 400px">
  753.                                                                 <label>
  754.                                                                         {% trans from 'crud' %} registroenlinea.fields.ingreseFechaCedula {% endtrans %}
  755.                                                                 </label>
  756.                                                             </th>
  757.                                                             <td style="vertical-align: middle" colspan="2">
  758.                                                                 <div class="input-group" id="campo_fecha_proxy_expedicion_cedula">
  759.                                                                     <input type="text" id="proxy_expedicion_cedula" style="width: 100%" class="campo_fecha form-control date-picker" data-date-format="dd-mm-yyyy" />
  760.                                                                     <span class="input-group-addon"><i class="fas fa-calendar bigger-110"></i></span>
  761.                                                                 </div>
  762.                                                             </td>    
  763.                                                         </tr>    
  764.                                                         <tr class="codigo_dactilar hide">
  765.                                                             <th style="width: 400px">
  766.                                                                 <label>
  767.                                                                         {% trans from 'crud' %} registroenlinea.fields.digitarCodigo {% endtrans %}
  768.                                                                 </label>
  769.                                                             </th>
  770.                                                             <td style="vertical-align: middle">
  771.                                                                 <input id="proxy_captcha" type="text" style="width: 100%">
  772.                                                             </td>    
  773.                                                             <td style="vertical-align: middle">
  774.                                                                 <div>
  775.                                                                   <span class="col-xs-8 no-padding">
  776.                                                                     <div id="captcha_img"><img width="100%" src="{{path('captcha')}}" style="min-width: 250px;"/></div>
  777.                                                                   </span>
  778.                                                                   <span class="col-xs-2 no-padding">
  779.                                                                     <a id="captcha_refresh" href=""><img src="{{ asset('images/icon/captcha_new.png') }}" title="Cambiar código" width="40px"></a>
  780.                                                                   </span>
  781.                                                                 </div>
  782.                                                             </td>    
  783.                                                         </tr>   
  784.                                                         <tr id='tr_no_idoneo' class="hide">
  785.                                                             <td colspan="3" style="text-align: center; vertical-align: middle">
  786.                                                                 <i class="fas fa-ban red bigger-300"></i>
  787.                                                                 <span id="span_no_idoneo" style="color: red; font-weight: bold; font-size: 20px"></span>
  788.                                                             </td>
  789.                                                         </tr>
  790.                                                     </table> 
  791.                                                 </div>
  792.                                                 <div class="col-xs-5 codigo_dactilar hide">
  793.                                                     <img src="{{ asset('images/dactilar.png') }}">
  794.                                                 </div>
  795.                                             </div>
  796.                                             <form id='registro_dactilar' action="{{ path('aspirante_registro_dactilar') }}" method="post">
  797.                                                 <input type="hidden" id="cedula_dactilar" name="dactilar[cedula]" style="width: 100%">
  798.                                                 <input type="hidden" id="codigo_dactilar" name="dactilar[codigoDactilar]" style="width: 100%">
  799.                                                 <input type="hidden" id="fecha_expedicion_cedula" name="dactilar[fechaExpedicionCedula]" style="width: 100%" >
  800.                                                 <input type="hidden" id="captcha" style="width: 100%" name="dactilar[captcha]">
  801.                                             </form>
  802.                                         </div>
  803.                                         <div class="step-pane center" data-step="2">
  804.                                             <a id="btn_verificar_antecedentes" class="btn btn-info btn-bold btn-round btn-large bigger-220" href="">
  805.                                                 <i class="ace-icon fa fa-check bigger-110"></i>
  806.                                                 Presiona para VERIFICAR ANTECEDENTES
  807.                                             </a>
  808.                                             <div class="row">
  809.                                                 <div class="col-xs-12">
  810.                                                     <table id="table_antecedentes" class="table table-striped table-bordered table-hover hide">
  811.                                                         <tr>
  812.                                                             <th style="text-align: center; vertical-align: middle">
  813.                                                                     Revisión de Antecedentes
  814.                                                             </th>
  815.                                                         </tr>
  816.                                                         <tr>
  817.                                                             <td><input type='radio' id='antecedentes_1' name='antecedentes[1]' disabled='true'>&nbsp;Antecedentes penales</td>   
  818.                                                         </tr>   
  819.                                                         <tr>
  820.                                                             <td><input type='radio' id='antecedentes_2' name='antecedentes[2]' disabled='true'>&nbsp;Impedimento de salida del país</td>   
  821.                                                         </tr>   
  822.                                                         <tr>
  823.                                                             <td><input type='radio' id='antecedentes_3' name='antecedentes[3]' disabled='true'>&nbsp;Alerta migratoria</td>   
  824.                                                         </tr>   
  825.                                                         <tr>
  826.                                                             <td><input type='radio' id='antecedentes_4' name='antecedentes[4]' disabled='true'>&nbsp;Orden de Captura</td>   
  827.                                                         </tr>   
  828.                                                         <tr>
  829.                                                             <td><input type='radio' id='antecedentes_5' name='antecedentes[5]' disabled='true'>&nbsp;Bajas militares</td>   
  830.                                                         </tr>   
  831.                                                    </table> 
  832.                                                 </div>
  833.                                                 <div id='tr_noantecedentes' class="col-xs-12 col-sm-12 hide">
  834.                                                     <div style="text-align: center; vertical-align: middle">
  835.                                                         <i class="fas fa-check green bigger-300"></i>
  836.                                                                 <span class=" green bigger-300">{% trans from 'crud' %} registroenlinea.fields.habilitado {% endtrans %}</span>
  837.                                                     </div>
  838.                                                 </div>
  839.                                                 <div id='tr_antecedentes' class="col-xs-12 col-sm-12 hide">
  840.                                                     <div style="text-align: center; vertical-align: middle">
  841.                                                         <i class="fas fa-ban red bigger-300"></i>
  842.                                                                 <span class=" red bigger-300">{% trans from 'crud' %} registroenlinea.fields.noHabilitado {% endtrans %}</span>
  843.                                                     </div>
  844.                                                 </div>
  845.                                             </div>
  846.                                         </div>
  847.                                         <div class="step-pane" data-step="3">
  848.                                             <div class="row">
  849.                                                 <div class="col-xs-12">
  850.                                                     <form id='datos_recluta' action="{{ path('salvar_reservista') }}" method="post">
  851.                                                         <table class="table table-striped table-bordered table-hover">
  852.                                                             <tr>
  853.                                                                 <th style="width: 25%">
  854.                                                                     <label id="label_form_anno">
  855.                                                                         {% trans from 'crud' %} recluta.fields.cedula {% endtrans %}
  856.                                                                     </label>
  857.                                                                 </th>
  858.                                                                 <td style="vertical-align: middle">
  859.                                                                     <input type="hidden" id="cedularecluta" name="reservista[cedula]" readonly="true" style="width: 100%">
  860.                                                                     <span id="span_cedula"></span>
  861.                                                                 </td>    
  862.                                                             </tr>    
  863.                                                             <tr>
  864.                                                                 <th style="width: 25%">
  865.                                                                     <label id="label_form_anno">
  866.                                                                         {% trans from 'crud' %} recluta.fields.nombresApellidos {% endtrans %}
  867.                                                                     </label>
  868.                                                                 </th>
  869.                                                                 <td style="vertical-align: middle">
  870.                                                                     <span id="span_nombre2"></span>
  871.                                                                 </td>    
  872.                                                             </tr>    
  873.                                                             <tr>
  874.                                                                 <th style="width: 25%">
  875.                                                                     <label id="label_form_anno">
  876.                                                                         {% trans from 'crud' %} recluta.fields.sexo {% endtrans %}
  877.                                                                     </label>
  878.                                                                 </th>
  879.                                                                 <td style="vertical-align: middle">                                                                   
  880.                                                                     <select id="form_sexo" name="reservista[sexo]"  style="width: 100%" disabled="true">                                                                        
  881.                                                                         <option value='Masculino'>Masculino</option>       
  882.                                                                         <option value='Femenino'>Femenino</option>       
  883.                                                                         <option value='Otro'>Otro</option>       
  884.                                                                     </select>
  885.                                                                 </td>    
  886.                                                             </tr>    
  887.                                                             <tr>
  888.                                                                 <th style="width: 25%">
  889.                                                                     <label id="label_form_anno">
  890.                                                                         {% trans from 'crud' %} recluta.fields.estadoCivil {% endtrans %}
  891.                                                                     </label>
  892.                                                                 </th>
  893.                                                                 <td style="vertical-align: middle">
  894.                                                                     <span id="span_estadoCivil"></span>
  895.                                                                 </td>    
  896.                                                             </tr>    
  897.                                                             <tr>
  898.                                                                 <th style="width: 25%">
  899.                                                                     <label id="label_form_anno" class='required'>
  900.                                                                         {% trans from 'crud' %} recluta.fields.telefono {% endtrans %}
  901.                                                                     </label>
  902.                                                                 </th>
  903.                                                                 <td style="vertical-align: middle">
  904.                                                                     <input type="text" id="form_telefono" name="reservista[telefono]" style="width: 100%" class="just_numbers">
  905.                                                                 </td>    
  906.                                                             </tr>    
  907.                                                             <tr>
  908.                                                                 <th style="width: 25%">
  909.                                                                     <label id="label_form_telefonoEmergencias" class='required align-right'>
  910.                                                                         {% trans from 'crud' %} recluta.fields.telefonoEmergencias {% endtrans %}
  911.                                                                     </label>
  912.                                                                 </th>
  913.                                                                 <td style="vertical-align: middle">
  914.                                                                     <input type="text" id="form_telefonoEmergencias" name="reservista[telefonoEmergencias]" style="width: 100%" class="just_numbers">
  915.                                                                 </td>    
  916.                                                             </tr>    
  917.                                                             <tr>
  918.                                                                 <th style="width: 25%">
  919.                                                                     <label id="label_form_anno" class='required'>
  920.                                                                         {% trans from 'crud' %} recluta.fields.email {% endtrans %}
  921.                                                                     </label>
  922.                                                                 </th>
  923.                                                                 <td style="vertical-align: middle">
  924.                                                                     <input type="text" id="form_email"    name="reservista[email]" style="width: 100%">
  925.                                                                 </td>    
  926.                                                             </tr>    
  927.                                                             <tr>
  928.                                                                 <th style="width: 25%">
  929.                                                                     <label id="label_form_anno" class='required'>
  930.                                                                         {% trans from 'crud' %} recluta.fields.estatura {% endtrans %}
  931.                                                                     </label>
  932.                                                                 </th>
  933.                                                                 <td style="vertical-align: middle">
  934.                                                                     <input type="text" id="form_estatura" name="reservista[estatura]" style="width: 100%" class="just_numbers">
  935.                                                                 </td>    
  936.                                                             </tr>    
  937.                                                             <tr>
  938.                                                                 <th style="width: 25%">
  939.                                                                     <label id="label_form_anno">
  940.                                                                         {% trans from 'crud' %} recluta.fields.edad {% endtrans %}
  941.                                                                     </label>
  942.                                                                 </th>
  943.                                                                 <td style="vertical-align: middle">
  944.                                                                     <span id="span_edad2"></span>
  945.                                                                 </td>    
  946.                                                             </tr>    
  947.                                                             <!--tr>
  948.                                                                 <th style="width: 25%">
  949.                                                                     <label id="label_form_grado">
  950.                                                                         Grado
  951.                                                                     </label>
  952.                                                                 </th>
  953.                                                                 <td style="vertical-align: middle">
  954.                                                                     <select id='form_grado' style="width: 100%" class="chosen-select" name="reservista[grado]">
  955.                                                                         <option value=''>-- Seleccione --</option>
  956.                                                                         {% for grado in grados %}
  957.                                                                             <option value='{{ grado.id }}'>{{ grado }}</option>
  958.                                                                         {% endfor %}
  959.                                                                     </select>
  960.                                                                 </td>    
  961.                                                             </tr>    
  962.                                                             <tr>
  963.                                                                 <th style="width: 25%">
  964.                                                                     <label id="label_form_fuerza">
  965.                                                                         Fuerza
  966.                                                                     </label>
  967.                                                                 </th>
  968.                                                                 <td style="vertical-align: middle">
  969.                                                                     <select id='form_fuerza' style="width: 100%" class="chosen-select" name="reservista[fuerza]">
  970.                                                                         <option value=''>-- Seleccione --</option>
  971.                                                                         {% for fuerza in fuerzas %}
  972.                                                                             <option value='{{ fuerza.id }}'>{{ fuerza }}</option>
  973.                                                                         {% endfor %}
  974.                                                                     </select>
  975.                                                                 </td>    
  976.                                                             </tr>    
  977.                                                             <tr>
  978.                                                                 <th style="width: 25%">
  979.                                                                     <label id="label_form_arma">
  980.                                                                         Arma
  981.                                                                     </label>
  982.                                                                 </th>
  983.                                                                 <td style="vertical-align: middle">
  984.                                                                     <select id='form_arma' style="width: 100%" class="chosen-select" name="reservista[arma]">
  985.                                                                         <option value=''>-- Seleccione --</option>
  986.                                                                         {% for arma in armas %}
  987.                                                                             <option value='{{ arma.id }}'>{{ arma }}</option>
  988.                                                                         {% endfor %}
  989.                                                                     </select>
  990.                                                                 </td>    
  991.                                                             </tr-->    
  992.                                                         </table> 
  993.                                                     </form>
  994.                                                 </div>
  995.                                                 <div class="col-xs-12">
  996.                                                     <div class="col-sm-12">
  997.                                                         <div class="alert alert-success bigger-180"><span>Adjunta tu foto en formato Carnet.</span></div>
  998.                                                     </div>
  999.                                                     <div class="col-sm-9">  
  1000.                                                         
  1001.                                                         <div id="fotorecluta"></div>                                                        
  1002.                                                     </div>
  1003.                                                     <div class="col-sm-3 center"> 
  1004.                                                         <div class="bigger-180 blue">Ejemplo</div>
  1005.                                                         <img border="0" alt="FOTO CARNET" src="{{ asset('images/foto_carnet.png')}}"">                                                           
  1006.                                                     </div>
  1007.                                                 </div>
  1008.                                                 <div class="col-xs-12 space-16">
  1009.                                                 </div>
  1010.                                                 <div class="col-xs-12">
  1011.                                                     <div class="col-sm-12">
  1012.                                                         <div class="alert alert-success bigger-180"><span>Adjunta tu certificado de vacunación en PDF.</span></div>
  1013.                                                     </div>
  1014.                                                     <div class="col-sm-9">
  1015.                                                         <div id="covid"></div>
  1016.                                                     </div>
  1017.                                                     <div class="col-sm-3 center">
  1018.                                                         <div class="alert alert-danger bigger-180"><span class="smaller-70 blue"><br/>Para descargar tu certificado de vacunación accede a: </span><a href="https://certificados-vacunas.msp.gob.ec/" target="blank" class="red"> VACUNACIÓN MSP ECUADOR - Click Aquí!!!</a></div>
  1019.                                                     </div>
  1020.                                                 </div>
  1021.                                             </div>
  1022.                                         </div>
  1023.                                         <div class="step-pane" data-step="4">
  1024.                                             <div class="row">
  1025.                                                 <form id='datos_residencia' action="{{ path('salvar_reservista_proceso') }}" method="post">
  1026.                                                 <div class="col-xs-6  full-row">
  1027.                                                     <table class="table table-striped table-bordered table-hover">
  1028.                                                         <tr>
  1029.                                                             <th colspan="2">
  1030.                                                                     {% trans from 'crud' %} registroenlinea.fields.Nacimiento {% endtrans %}
  1031.                                                             </th>
  1032.                                                         </tr>    
  1033.                                                         <tr>
  1034.                                                             <th style="width: 20%">
  1035.                                                                 <label id="label_form_medico">
  1036.                                                                         {% trans from 'crud' %} recluta.fields.fechaNacimiento {% endtrans %}:
  1037.                                                                 </label>
  1038.                                                             </th>
  1039.                                                             <td style="vertical-align: middle">
  1040.                                                                 <span id="span_fechaNacimiento"></span>
  1041.                                                             </td>    
  1042.                                                         </tr>    
  1043.                                                         <tr>
  1044.                                                             <th style="width: 20%">
  1045.                                                                 <label id="label_form_medico">
  1046.                                                                         {% trans from 'crud' %} recluta.fields.paisNacimiento {% endtrans %}:
  1047.                                                                 </label>
  1048.                                                             </th>
  1049.                                                             <td style="vertical-align: middle">
  1050.                                                                 <span id="span_paisNacimiento"></span>
  1051.                                                             </td>    
  1052.                                                         </tr>    
  1053.                                                         <tr class='hidden'>
  1054.                                                             <th style="width: 20%">
  1055.                                                                 <label id="label_form_medico">
  1056.                                                                         {% trans from 'crud' %} recluta.fields.region {% endtrans %}:
  1057.                                                                 </label>
  1058.                                                             </th>
  1059.                                                             <td style="vertical-align: middle">
  1060.                                                                 <span id="span_regionNacimiento"></span>
  1061.                                                             </td>    
  1062.                                                         </tr>    
  1063.                                                         <tr class='hidden'>
  1064.                                                             <th style="width: 20%">
  1065.                                                                 <label id="label_form_medico">
  1066.                                                                         {% trans from 'crud' %} recluta.fields.provincia {% endtrans %}:
  1067.                                                                 </label>
  1068.                                                             </th>
  1069.                                                             <td style="vertical-align: middle">
  1070.                                                                 <span id="span_provinciaNacimiento"></span>
  1071.                                                             </td>    
  1072.                                                         </tr>    
  1073.                                                         <tr class='hidden'>
  1074.                                                             <th style="width: 20%">
  1075.                                                                 <label id="label_form_medico">
  1076.                                                                         {% trans from 'crud' %} recluta.fields.canton {% endtrans %}:
  1077.                                                                 </label>
  1078.                                                             </th>
  1079.                                                             <td style="vertical-align: middle">
  1080.                                                                 <span id="span_cantonNacimiento"></span>
  1081.                                                             </td>    
  1082.                                                         </tr>    
  1083.                                                         <tr>
  1084.                                                             <th style="width: 20%">
  1085.                                                                 <label id="label_form_medico">
  1086.                                                                         {% trans from 'crud' %} recluta.fields.lugarNacimiento {% endtrans %}:
  1087.                                                                 </label>
  1088.                                                             </th>
  1089.                                                             <td style="vertical-align: middle">
  1090.                                                                 <span id="span_parroquiaNacimiento" class='hidden'></span>
  1091.                                                                 
  1092.                                                                 <span id="span_lugarNacimiento"></span>
  1093.                                                             </td>    
  1094.                                                         </tr>    
  1095.                                                     </table> 
  1096.                                                     
  1097.                                                     <table class="table table-striped table-bordered table-hover">
  1098.                                                         <tr>
  1099.                                                             <th colspan="2">
  1100.                                                                     {% trans from 'crud' %} registroenlinea.fields.centroMovilizacionTitle {% endtrans %}
  1101.                                                             </th>
  1102.                                                         </tr>    
  1103.                                                         <tr>
  1104.                                                             <th style="width: 20%">
  1105.                                                                 <label id="label_form_medico">
  1106.                                                                         {% trans from 'crud' %} registroenlinea.fields.centroMovilizacionPresentarse {% endtrans %}:
  1107.                                                                 </label>
  1108.                                                             </th>
  1109.                                                             <td style="vertical-align: middle">
  1110.                                                                <select id='form_centro' name="form[centroCapacitarse]" style="width: 100%" class="chosen-select">
  1111.                                                                         <option value=''>-- Seleccione --</option>
  1112.                                                                         {% for centro in centrosMovilizacion %}
  1113.                                                                             <option value='{{ centro.id }}'>{{ centro.centroUbicacion }}</option>
  1114.                                                                         {% endfor %}
  1115.                                                                 </select>
  1116.                                                                 
  1117.                                                             </td>    
  1118.                                                         </tr>    
  1119.                                                           
  1120.                                                     </table>            
  1121.                                                                 
  1122.                                                 </div>
  1123.                                                 <div class="col-xs-6  full-row">                                                    
  1124.                                                         <input type="hidden" id="cedularesidencia" name="form[cedula]" readonly="true" style="width: 100%">
  1125.                                                         <table class="table table-striped table-bordered table-hover">
  1126.                                                             <tr>
  1127.                                                                 <th colspan="2">
  1128.                                                                     {% trans from 'crud' %} registroenlinea.fields.Residencia {% endtrans %}
  1129.                                                                 </th>
  1130.                                                             </tr>    
  1131.                                                             <tr>
  1132.                                                                 <th style="width: 20%">
  1133.                                                                     <label class="required">
  1134.                                                                         {% trans from 'crud' %} reclutaproceso.fields.paisReside {% endtrans %}:
  1135.                                                                     </label>
  1136.                                                                 </th>
  1137.                                                                 <td style="vertical-align: middle">
  1138.                                                                     <span>¿Vive en la República del Ecuador?</span> 
  1139.                                                                     <span>
  1140.                                                                         <input type="checkbox" id="checkResidencia" name="form[residenciaEcuador]" style="width: 100%" class="ace ace-switch ace-switch-5" value="1" checked>
  1141.                                                                         <span class="lbl" data-lbl="SÍ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NO"></span>
  1142.                                                                     </span><br><br>
  1143.                                                                     <p class="reside_extranjero hide">Indique país de residencia</p>
  1144.                                                                     <input id="form_paisResidencia" type="text" class="reside_extranjero hide" style="width:100%" name="form[paisResidencia]">
  1145.                                                                 </td>    
  1146.                                                             </tr>    
  1147.                                                             <tr class="reside_ecuador">
  1148.                                                                 <th style="width: 20%">
  1149.                                                                     <label id="label_form_medico">
  1150.                                                                         {% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}:
  1151.                                                                     </label>
  1152.                                                                 </th>
  1153.                                                                 <td style="vertical-align: middle">
  1154.                                                                     <select id='form_region' style="width: 100%" class="chosen-select" onchange='javascript:regionChange()'>
  1155.                                                                         <option value=''>-- Seleccione --</option>
  1156.                                                                         {% for region in regiones %}
  1157.                                                                             <option value='{{ region.id }}'>{{ region }}</option>
  1158.                                                                         {% endfor %}
  1159.                                                                     </select>
  1160.                                                                 </td>    
  1161.                                                             </tr>    
  1162.                                                             <tr class="reside_ecuador">
  1163.                                                                 <th style="width: 20%">
  1164.                                                                     <label id="label_form_medico">
  1165.                                                                         {% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}:
  1166.                                                                     </label>
  1167.                                                                 </th>
  1168.                                                                 <td style="vertical-align: middle">
  1169.                                                                     <select id='form_provincia' style="width: 100%" class="chosen-select" onchange='javascripts:provinciaChange()'>
  1170.                                                                         <option value=''>-- Seleccione --</option>
  1171.                                                                         {% for provincia in provincias %}
  1172.                                                                             <option value='{{ provincia.id }}'>{{ provincia }}</option>
  1173.                                                                         {% endfor %}
  1174.                                                                     </select>
  1175.                                                                 </td>    
  1176.                                                             </tr>    
  1177.                                                             <tr class="reside_ecuador">
  1178.                                                                 <th style="width: 20%">
  1179.                                                                     <label id="label_form_medico">
  1180.                                                                         {% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}:
  1181.                                                                     </label>
  1182.                                                                 </th>
  1183.                                                                 <td style="vertical-align: middle">
  1184.                                                                     <select id='form_canton' style="width: 100%" class="chosen-select" onchange='javascripts:cantonChange()'>
  1185.                                                                         <option value=''>-- Seleccione --</option>
  1186.                                                                         {% for canton in cantones %}
  1187.                                                                             <option value='{{ canton.id }}'>{{ canton }}</option>
  1188.                                                                         {% endfor %}
  1189.                                                                     </select>
  1190.                                                                 </td>    
  1191.                                                             </tr>    
  1192.                                                             <tr class="reside_ecuador">
  1193.                                                                 <th style="width: 20%">
  1194.                                                                     <label class="required">
  1195.                                                                         {% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}:
  1196.                                                                     </label>
  1197.                                                                 </th>
  1198.                                                                 <td style="vertical-align: middle">
  1199.                                                                     <select id='form_parroquia' name="form[parroquiaResidencia]" style="width: 100%" class="chosen-select">
  1200.                                                                         <option value=''>-- Seleccione --</option>
  1201.                                                                         {% for parroquia in parroquias %}
  1202.                                                                             <option value='{{ parroquia.id }}'>{{ parroquia }}</option>
  1203.                                                                         {% endfor %}
  1204.                                                                     </select>
  1205.                                                                 </td>    
  1206.                                                             </tr>    
  1207.                                                             <tr class="reside_ecuador">
  1208.                                                                 <th style="width: 20%">
  1209.                                                                     <label class="required">
  1210.                                                                         {% trans from 'crud' %} reclutaproceso.fields.callePrincipalResidencia {% endtrans %}:
  1211.                                                                     </label>
  1212.                                                                 </th>
  1213.                                                                 <td style="vertical-align: middle">
  1214.                                                                     <input id="form_callePrincipal" type="text" name="form[callePrincipal]" style="width: 100%">
  1215.                                                                 </td>    
  1216.                                                             </tr>    
  1217.                                                             <tr class="reside_ecuador">
  1218.                                                                 <th style="width: 20%">
  1219.                                                                     <label class="required">
  1220.                                                                         {% trans from 'crud' %} reclutaproceso.fields.calleSecundariaResidencia {% endtrans %}:
  1221.                                                                     </label>
  1222.                                                                                             </th>
  1223.                                                                 <td style="vertical-align: middle">
  1224.                                                                     <input id="form_calleSecundaria" type="text" name="form[calleSecundaria]" style="width: 100%">
  1225.                                                                 </td>    
  1226.                                                             </tr>    
  1227.                                                             <tr class="reside_ecuador">
  1228.                                                                 <th style="width: 20%">
  1229.                                                                     <label class="required">
  1230.                                                                         {% trans from 'crud' %} reclutaproceso.fields.numeroCasa {% endtrans %}:
  1231.                                                                     </label>
  1232.                                                                                             </th>
  1233.                                                                 <td style="vertical-align: middle">
  1234.                                                                     <input id="form_nroCasa" type="text" name="form[nroCasa]" style="width: 100%">
  1235.                                                                 </td>    
  1236.                                                             </tr>    
  1237.                                                             <tr>
  1238.                                                                 <th style="width: 20%">
  1239.                                                                     <label id="label_referencia">
  1240.                                                                         {% trans from 'crud' %} reclutaproceso.fields.infoReferencia {% endtrans %}:
  1241.                                                                     </label>
  1242.                                                                                             </th>
  1243.                                                                 <td style="vertical-align: middle">
  1244.                                                                     <input id="form_referencia" name="form[referenciaResidencia]" type="text" style="width: 100%">
  1245.                                                                     <input type="hidden" id="direccionextranjero">
  1246.                                                                     <input type="hidden" id="direccionecuador">
  1247.                                                                 </td>    
  1248.                                                             </tr>    
  1249.                                                             <tr>
  1250.                                                                 <th style="width: 90px">
  1251.                                                                     <label>
  1252.                                                                         {% trans from 'crud' %} reclutaproceso.fields.ubicacion {% endtrans %}:
  1253.                                                                     </label>
  1254.                                                                 </th>
  1255.                                                                 <td style="vertical-align: middle">
  1256.                                                                     <a id="maparesidencia" class="botonmapa noti btn-minier" title="Definir Ubicación en Mapa" itemid="form_geometria" geom="punto" href="#">
  1257.                                                                         <i class="fas fa-globe bigger-220 blue"></i>
  1258.                                                                     </a>
  1259.                                                                     <span id="textoGeometriaPunto"></span>    
  1260.                                                                     <input type="hidden" id="form_geometria" name="form[geometria]" style="width: 100%" rows="5" class="geometria_punto">
  1261.                                                                     <input type="hidden" id="geometriaextranjero">
  1262.                                                                     <input type="hidden" id="geometriaecuador">
  1263.                                                                     <input type="hidden" id="ubicacionextranjerovisible">
  1264.                                                                     <input type="hidden" id="ubicacionecuadorvisible">
  1265.                                                                 </td>    
  1266.                                                             </tr>    
  1267.                                                         </table> 
  1268.                                                    
  1269.                                                 </div>
  1270.                                                 </form>
  1271.                                             </div>
  1272.                                         </div>
  1273.                                         <div class="step-pane center" data-step="5">
  1274.                                             <a id="btn_verificar_estudios" class="btn btn-info btn-bold btn-round btn-large bigger-220" href="">
  1275.                                                 <i class="ace-icon fa fa-check bigger-110"></i>
  1276.                                                 Presiona para VERIFICAR ESTUDIOS
  1277.                                             </a>
  1278.                                             <div class="row">
  1279.                                                 <div class="col-xs-12">
  1280.                                                     <table id="table_estudios" class="table table-striped table-bordered table-hover hide">
  1281.                                                         <tr>
  1282.                                                             <th colspan="3" style="text-align: center; vertical-align: middle">
  1283.                                                                     Nivel de instrucción
  1284.                                                             </th>
  1285.                                                         </tr>
  1286.                                                         <tr>                                                                
  1287.                                                             <th style="text-align: center; vertical-align: middle">
  1288.                                                                 Título
  1289.                                                             </th>
  1290.                                                             <th style="text-align: center; vertical-align: middle">
  1291.                                                                 Detalle
  1292.                                                             </th>
  1293.                                                             
  1294.                                                         </tr>
  1295.                                                         <tbody id="estudios">
  1296.                                                         </tbody>   
  1297.                                                     </table> 
  1298.                                                 </div>
  1299.                                             </div>
  1300.                                         </div>                                     
  1301.                                     </div>
  1302.                                     <!-- /section:plugins/fuelux.wizard.container -->
  1303.                                 </div>
  1304.                                 <hr />
  1305.                                 <div class="wizard-actions center">
  1306.                                     <!-- #section:plugins/fuelux.wizard.buttons -->
  1307.                                     <button class="btn btn-prev bigger-180">
  1308.                                         <i class="ace-icon fa fa-arrow-left"></i>
  1309.                                         ANTERIOR
  1310.                                     </button>
  1311.                                     <button class="btn btn-success bigger-180 btn-next" data-last="FINALIZAR">
  1312.                                         SIGUIENTE
  1313.                                         <i class="ace-icon fa fa-arrow-right icon-on-right"></i>
  1314.                                     </button>
  1315.                                     <!-- /section:plugins/fuelux.wizard.buttons -->
  1316.                                 </div>
  1317.                             </div>
  1318.                         </div>
  1319.                         <div id="dialog-mapa-residencia" title="Definir Ubicación en Mapa"></div>    
  1320.                         <div id="dialog-verify-email" title="Verificar correo electrónico">
  1321.                             <form id="form_verify_email" action="{{ path('verifica_email') }}" method="POST">
  1322.                                 <input type="hidden" id="verify_email" name="verify_email">
  1323.                             </form>
  1324.                             <form id="form_verify_email_code" action="{{ path('verifica_email_code') }}" method="POST">
  1325.                                 <p>Se ha enviado un correo electrónico a su dirección: <span id="text_email"></span>.</p>
  1326.                                 <p>Revise su correo e introduzca el código de verificación envíado.</p>
  1327.                                 <p>Código de verificación: <input type="text" name="verify_email_code"></p>
  1328.                             </form>
  1329.                         </div>    
  1330.                     </div>
  1331.             </div>
  1332.         {% endif %}
  1333.     </div>
  1334. {% endblock %}