<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* ReservistaProceso/show.html.twig */
class __TwigTemplate_04742a714dd1e8c8f726c56ff0994c32 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'jquery' => [$this, 'block_jquery'],
'principal_heading' => [$this, 'block_principal_heading'],
'showdata' => [$this, 'block_showdata'],
'prev_acuartelamiento' => [$this, 'block_prev_acuartelamiento'],
'more_acuartelamiento' => [$this, 'block_more_acuartelamiento'],
'more_seccion' => [$this, 'block_more_seccion'],
'actions' => [$this, 'block_actions'],
'action_retorno' => [$this, 'block_action_retorno'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@crud\\crud\\show.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ReservistaProceso/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ReservistaProceso/show.html.twig"));
$this->parent = $this->loadTemplate("@crud\\crud\\show.html.twig", "ReservistaProceso/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_jquery($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "jquery"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "jquery"));
// line 4
echo " ";
$this->displayParentBlock("jquery", $context, $blocks);
echo "
<script type=\"text/javascript\">
var inputEmail;
\$(function()
{
\$(\"#botonTerminar\").click(function(e){
e.preventDefault();
var ok=true;
var msg='';
if (\$('#resultadoIdoneo').prop('checked'))
{
if (!\$('#form_unidad').val())
{
ok=false;
msg = 'Debe asignar la unidad militar';
}
}
else
{
if (\$('#resultadoNoIdoneo').prop('checked'))
{
if (!(\$('#causaPsicologica').prop('checked') || \$('#causaMedica').prop('checked') || \$('#causaLaboratorios').prop('checked')))
{
ok=false;
msg = 'Debe asignar la causa de rechazo';
}
else
{
if (!\$('#observaciones').val())
{
ok=false;
msg = 'Debe indicar las observaciones acerca del rechazo';
}
else
{
if (!(\$('#volverEste').prop('checked') || \$('#volverProximo').prop('checked') || \$('#volverNunca').prop('checked')))
{
ok=false;
msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
}
}
}
}
else
{
ok=false;
msg = 'Debe indicar un resultado del proceso';
}
}
if (ok)
{
\$('#divResultado').mask(' Terminando proceso...');
\$('#form_resultados').ajaxSubmit({
type: \$('#form_resultados').attr('method'),
url: \$('#form_resultados').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
if (data.ok)
{
if (data.fullMasculino || data.fullFemenino)
{
var genero='';
if (data.fullMasculino)
genero = 'masculino';
else
genero = 'femenino';
jConfirm('Asignación exitosa. Con esta asignación se ha alcanzado el cupo '+genero+' de la unidad. ¿Desea ver la nómina de los asignados a la unidad?', 'Alerta',
function(r) {
if (r) {
var url = '";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_nominaPDF", ["proceso" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 76, $this->source); })()), "procesoRegistro", [], "any", false, false, false, 76), "id", [], "any", false, false, false, 76), "unidad" => "__UNIDAD__"]), "html", null, true);
echo "';
url = url.replace('__UNIDAD__', data.unidadId);
\$.ajax({
type: \"GET\",
url: url,
//dataType: 'html',
//data: { _xml_http_request: true },
success: function(data){
var mio=0;
window.open('";
// line 85
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exportar_reporte_PDF", ["routeClassName" => "listaasignacionunidad"]);
echo "', '_blank');
document.location.reload();
}
});
}
});
}
else
document.location.reload();
}
else
{
\$('#divResultado').unmask();
showError(bootbox, data.msg);
}
}
})
}
else
{
showError(bootbox, msg);
}
});
\$( \"#dialog-verify-email\" ).dialog({
autoOpen: false,
height: 310,
width: 400,
modal: true,
resizable: false,
title_html: true,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller red\"><i class=\"fas fa-globe\"></i> Verificar correo electrónico</h4></div>',
buttons: {
Aceptar: function() {
\$('#dialog-verify-email').parent().mask(' Verificando código...');
\$('#form_verify_email_code').ajaxSubmit({
type: \$('#form_verify_email_code').attr('method'),
url: \$('#form_verify_email_code').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
\$('#dialog-verify-email').parent().unmask();
if (data.ok)
{
\$( \"#dialog-verify-email\" ).dialog( \"close\" );
quickUpdate(inputEmail);
}
else
{
showError(bootbox, data.msg);
}
}
});
},
Cancelar: function() {
\$( \"#dialog-verify-email\" ).dialog( \"close\" );
}
}
});
\$( \"#dialog-change-canton\" ).dialog({
autoOpen: false,
height: 310,
width: 400,
modal: true,
resizable: false,
title_html: true,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller red\"><i class=\"fas fa-globe\"></i> Modificar lugar de residencia</h4></div>',
buttons: {
Aceptar: function() {
\$('#dialog-change-canton').parent().mask(' Guardando...');
\$('#quick_form_association_class').val('NmclDominioLocalizacion');
\$('#quick_form_class').val('ReservistaProceso');
\$('#quick_form_id').val('";
// line 161
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 161, $this->source); })()), "id", [], "any", false, false, false, 161), "html", null, true);
echo "');
\$('#quick_form_field').val('lugarResidencia');
\$('#quick_input_valor').val(\$( \"#form_parroquia\" ).val());
quickUpdateCanton();
},
Cancelar: function() {
\$(\"#dialog-change-canton\").dialog(\"close\");
}
}
});
\$('.quick_update_input').keyup(function(){
var td = \$(this).parent();
var input = td.find('input');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
if (newValue !== actualValue)
{
td.find('button').removeClass('hide');
}
else
{
td.find('button').addClass('hide');
}
});
\$('.quick_update_input_cancel').click(function(){
var td = \$(this).parent();
var input = td.find('input');
var actualValue = input.attr('actualvalue');
input.val(actualValue);
td.find('button').addClass('hide');
});
\$('.quick_update_input_save').click(function(){
var td = \$(this).parent();
var input = td.find('input');
\$('#quick_form_association_class').val('');
\$('#quick_form_class').val(input.attr('classname'));
\$('#quick_form_id').val(input.attr('entityid'));
\$('#quick_form_field').val(input.attr('field'));
\$('#quick_input_valor').val(input.val());
if (\$('#quick_form_field').val()==='email')
{
if (validEmail(input.val()))
{
inputEmail = input;
verificaEmail(input.val());
}
else
{
showError(bootbox, 'Formato de correo electrónico incorrecto');
}
}
else
{
quickUpdate(input);
}
});
\$('.quick_update_select').change(function(){
var td = \$(this).parent();
var input = td.find('select');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
if (newValue !== actualValue)
{
td.find('button').removeClass('hide');
}
else
{
td.find('button').addClass('hide');
}
});
\$('.quick_update_select_cancel').click(function(){
var td = \$(this).parent();
var input = td.find('select');
var actualValue = input.attr('actualvalue');
input.val(actualValue);
td.find('button').addClass('hide');
});
\$('.quick_update_select_save').click(function(){
var td = \$(this).parent();
var input = td.find('select');
\$('#quick_form_association_class').val(input.attr('association'));
\$('#quick_form_class').val(input.attr('classname'));
\$('#quick_form_id').val(input.attr('entityid'));
\$('#quick_form_field').val(input.attr('field'));
\$('#quick_input_valor').val(input.val());
quickUpdate(input);
});
\$('#quick_update_canton').click(function(){
\$('#form_region').val(\$('#inforegion').attr('regionid'));
\$('#form_provincia').val(\$('#infoprovincia').attr('provinciaid'));
\$('#form_canton').val(\$('#infocanton').attr('cantonid'));
\$('#form_parroquia').val(\$('#infolugarResidencia').attr('parroquiaid'));
\$('#dialog-change-canton').dialog ('open');
});
\$('#addDestreza').click(function(){
if (\$('option.option_destreza:not(.hide)').length>0)
{
var tr = \$('#tablaDestrezas').find('thead').find('tr.patron');
tr='<tr>'+tr.html()+'</tr>';
\$('#tablaDestrezas').find('tbody').prepend(tr);
tr = \$('#tablaDestrezas').find('tbody').find('tr').first();
tr.find('.select-destreza').change();
}
});
\$('#addEstudio').click(function(){
var tr = \$('#tablaEstudios').find('thead').find('tr.patron');
tr='<tr>'+tr.html()+'</tr>';
\$('#tablaEstudios').find('tbody').prepend(tr);
tr = \$('#tablaEstudios').find('tbody').find('tr').first();
tr.find('.date-picker').addClass('unset');
setDatePicker();
});
\$('#btn_verificar_estudios').click(function(e){
e.preventDefault();
\$('#table_estudios').parent().parent().mask(' Verificando estudios...');
var url = '";
// line 294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservista_verifica_estudios", ["identificacion" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 294, $this->source); })()), "reservista", [], "any", false, false, false, 294), "identificacion", [], "any", false, false, false, 294)]), "html", null, true);
echo "';
\$.getJSON(url , function(result){
\$('#table_estudios').parent().parent().unmask();
if (result.ok)
{
\$('#table_estudios tbody').html('');
var flen = result.estudios.length;
if (flen>0)
{
var i;
for (i=0; i<flen; i++)
{
\$('#table_estudios tbody').append('<tr><td>'+result.estudios[i].institucion+'</td><td>'+result.estudios[i].titulo+'</td></tr>');
}
}
else
{
\$('#table_estudios tbody').append('<tr><td colspan=\"3\" style=\"text-align: center\">No hay estudios registrados</td></tr>');
}
}
});
});
cleanDestrezasOptions();
setDatePicker();
});
function setDatePicker()
{
\$('.date-picker.unset').each(function(){
\$(this).datepicker({
autoclose: true,
todayHighlight: true,
language: 'es'
})
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
\$(this).removeClass('unset');
});
}
function destrezaCancel(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
if (select.val() !== select.attr('actualvalue'))
{
select.val(select.attr('actualvalue'));
select.change();
}
if (input.val() !== input.attr('actualvalue'))
{
input.val(input.attr('actualvalue'));
}
if (textarea.val() !== textarea.attr('actualvalue'))
{
textarea.val(textarea.attr('actualvalue'));
}
tr.find('.button').addClass('hide');
};
function destrezaDelete(elem)
{
if (confirm('Está seguro que va a eliminar la destreza'))
{
var tr = \$(elem).parent().parent();
var id = tr.attr('destrezaid');
if (id)
{
var url=\"";
// line 369
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_quick_delete", ["id" => "__ID__", "className" => "ReservistaDestreza"]), "html", null, true);
echo "\";
url = url.replace('__ID__', id);
tr.mask(' Eliminando...');
\$.getJSON(url , function(result){
if (result.ok)
{
tr.remove();
cleanDestrezasOptions();
}
else
{
tr.unmask();
showError(bootbox, result.msg);
}
});
}
else
{
tr.remove();
cleanDestrezasOptions();
}
}
}
function destrezaSave(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
\$('#quick_form_destreza').val(select.val());
\$('#quick_form_tiempo').val(input.val());
\$('#quick_form_detalle').val(textarea.val());
tr.mask(' Guardando...');
\$('#formDestrezaSave').ajaxSubmit({
type: \$('#formDestrezaSave').attr('method'),
url: \$('#formDestrezaSave').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
tr.unmask();
if (data.ok)
{
tr.attr('destrezaid',data.id);
select.attr('actualvalue', select.val());
select.prop('disabled', true);
input.attr('actualvalue', input.val());
textarea.attr('actualvalue', textarea.val());
tr.find('.button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function cleanDestrezasOptions()
{
\$('option.option_destreza').removeClass('hide');
\$('#tablaDestrezas').children('tbody').find('.select-destreza').each(function(){
var value = \$(this).val();
if (value)
{
\$('option.destreza_'+value).addClass('hide');
}
});
}
function estudioCancel(elem)
{
var tr = \$(elem).parent().parent();
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
titulo.val(titulo.attr('actualvalue'));
institucion.val(institucion.attr('actualvalue'));
nivel.val(nivel.attr('actualvalue'));
cursando.val(cursando.attr('actualvalue'));
fecha.val(fecha.attr('actualvalue'));
if (cursando.val()==='YES')
{
fecha.parent().addClass('hide');
}
else
{
fecha.parent().removeClass('hide');
}
tr.find('.button').addClass('hide');
};
function estudioDelete(elem)
{
if (confirm('Está seguro que va a eliminar el estudio'))
{
var tr = \$(elem).parent().parent();
var id = tr.attr('estudioid');
if (id)
{
var url=\"";
// line 474
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_quick_delete", ["id" => "__ID__", "className" => "ReservistaEstudio"]), "html", null, true);
echo "\";
url = url.replace('__ID__', id);
tr.mask(' Eliminando...');
\$.getJSON(url , function(result){
if (result.ok)
{
tr.remove();
}
else
{
tr.unmask();
showError(bootbox, result.msg);
}
});
}
else
{
tr.remove();
}
}
}
function estudioSave(elem)
{
var tr = \$(elem).parent().parent();
var id = tr.attr('estudioid');
if (id)
{
\$('#quick_form_habilidad_id').val(id);
}
else
{
\$('#quick_form_habilidad_id').val('');
}
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
if (!titulo.val() || !institucion.val() || !nivel.val() || !cursando.val() || (cursando.val()=='NO' && !fecha.val()))
{
showError(bootbox, 'Debe indicar toda la información sobre el estudio cursado');
return;
}
\$('#quick_form_habilidad_titulo').val(titulo.val());
\$('#quick_form_habilidad_institucion').val(institucion.val());
\$('#quick_form_habilidad_nivel').val(nivel.val());
\$('#quick_form_habilidad_cursando').val(cursando.val());
\$('#quick_form_habilidad_fecha').val(fecha.val());
tr.mask(' Guardando...');
\$('#formEstudioSave').ajaxSubmit({
type: \$('#formEstudioSave').attr('method'),
url: \$('#formEstudioSave').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
tr.unmask();
if (data.ok)
{
tr.attr('estudioid',data.id);
titulo.attr('actualvalue', titulo.val());
institucion.attr('actualvalue', institucion.val());
nivel.attr('actualvalue', nivel.val());
cursando.attr('actualvalue', cursando.val());
fecha.attr('actualvalue', fecha.val());
tr.find('.button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function validEmail(email)
{
var filter = /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9_\\.\\-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
return filter.test(email);
}
function verificaEmail(email)
{
inputEmail.parent().mask(' Verificando correo electrónico...');
\$('#verify_email').val(email);
\$('#text_email').html(email);
\$('#form_verify_email').ajaxSubmit({
type: \$('#form_verify_email').attr('method'),
url: \$('#form_verify_email').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
inputEmail.parent().unmask();
if (data.ok)
{
\$('#dialog-verify-email').dialog('open');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function quickUpdate(input)
{
input.parent().mask(' Guardando...');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
\$('#formQuickUpdate').ajaxSubmit({
type: \$('#formQuickUpdate').attr('method'),
url: \$('#formQuickUpdate').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
input.parent().unmask();
if (data.ok)
{
if (\$('#quick_form_field').val()=='paisResidencia' && (actualValue.toLowerCase()=='ecuador' || newValue.toLowerCase()=='ecuador'))
{
\$('.ecuador').toggleClass('hide');
}
input.attr('actualvalue', newValue);
input.parent().find('button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function quickUpdateCanton()
{
\$('#formQuickUpdate').ajaxSubmit({
type: \$('#formQuickUpdate').attr('method'),
url: \$('#formQuickUpdate').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
\$('#dialog-change-canton').parent().mask(' Guardando...');
if (data.ok)
{
\$('#inforegion').html(\$( \"#form_region option:selected\" ).text());
\$('#inforegion').attr('regionid', \$( \"#form_region\" ).val());
\$('#infoprovincia').html(\$( \"#form_provincia option:selected\" ).text());
\$('#infoprovincia').attr('provinciaid', \$( \"#form_provincia\" ).val());
\$('#infocanton').html(\$( \"#form_canton option:selected\" ).text());
\$('#infocanton').attr('cantonid', \$( \"#form_canton\" ).val());
\$('#infolugarResidencia').html(\$( \"#form_parroquia option:selected\" ).text());
\$('#infolugarResidencia').attr('parroquiaid', \$( \"#form_parroquia\" ).val());
\$( \"#dialog-change-canton\" ).dialog(\"close\");
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function selectDestrezaChange(select)
{
var lastValue=\$(select).attr('lastValue');
var value = \$(select).val();
if (!value && lastValue)
{
\$(select).val(lastValue);
}
else
if (value)
{
\$('option.destreza_'+lastValue).removeClass('hide');
\$(select).attr('lastValue', value);
\$('option.destreza_'+value).addClass('hide');
}
destrezaChange(select)
}
function destrezaChange(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
if (select.val() !== select.attr('actualvalue') ||
input.val() !== input.attr('actualvalue') ||
textarea.val() !== textarea.attr('actualvalue'))
{
tr.find('.button').removeClass('hide');
}
else
{
tr.find('.button').addClass('hide');
}
}
function estudioChange(elem)
{
var tr = \$(elem).parent().parent();
if (\$(elem).hasClass('estudio_fecha'))
{
tr = tr.parent();
}
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
if (\$(elem).hasClass('estudio_cursando'))
{
if (cursando.val()==='YES')
{
fecha.parent().addClass('hide');
}
else
{
fecha.parent().removeClass('hide');
}
fecha.val(fecha.attr('actualvalue'));
}
if (titulo.val() !== titulo.attr('actualvalue') ||
institucion.val() !== institucion.attr('actualvalue') ||
nivel.val() !== nivel.attr('actualvalue') ||
cursando.val() !== cursando.attr('actualvalue') ||
fecha.val() !== fecha.attr('actualvalue'))
{
tr.find('.button').removeClass('hide');
}
else
{
tr.find('.button').addClass('hide');
}
}
";
// line 715
$this->loadTemplate("RegionProvinciaCantonParroquia\\jquery_functions.html.twig", "ReservistaProceso/show.html.twig", 715)->display(twig_array_merge($context, ["distintivo" => "", "parroquiaField" => "parroquia"]));
// line 716
echo " </script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 721
public function block_principal_heading($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "principal_heading"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "principal_heading"));
// line 722
echo " <div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Visualización del reservista
</h4>
<!--div class=\"widget-toolbar\">
<a href=\"#\" data-action=\"collapse\">
<i class=\"fas fa-chevron-up\"></i>
</a>
</div-->
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 736
public function block_showdata($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "showdata"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "showdata"));
// line 737
echo " ";
$this->displayBlock('prev_acuartelamiento', $context, $blocks);
// line 738
echo "
";
// line 740
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Crud\\Controller\\crudPlainController::showAction", ["rol" => (isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 740, $this->source); })()), "routeClassName" => "reservista", "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 740, $this->source); })()), "reservista", [], "any", false, false, false, 740), "id", [], "any", false, false, false, 740), "parentRouteClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 740, $this->source); })())]));
echo "
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosDisponibilidad\">
<i class=\"bigger-160 ace-icon fa fa-check-square\" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Disponibilidad
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosDisponibilidad\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 758
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 758, $this->source); })()), "html", null, true);
echo "\">
<label>
Actividad actual
</label>
</th>
<td>
";
// line 764
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 764, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 764, $this->source); })()) != "registro")))) {
// line 765
echo " <select style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 765, $this->source); })()), "id", [], "any", false, false, false, 765), "html", null, true);
echo "\" field=\"disponibilidad\" association=\"\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 765, $this->source); })()), "disponibilidad", [], "any", false, false, false, 765), "html", null, true);
echo "\">
<option value=\"\">--- Seleccione ---</option>
";
// line 767
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["actividades"]) || array_key_exists("actividades", $context) ? $context["actividades"] : (function () { throw new RuntimeError('Variable "actividades" does not exist.', 767, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["actividad"]) {
// line 768
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" ";
if (($context["key"] == twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 768, $this->source); })()), "disponibilidad", [], "any", false, false, false, 768))) {
echo "selected=\"true\"";
}
echo ">";
echo twig_escape_filter($this->env, $context["actividad"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['actividad'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 770
echo " </select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 774
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 774, $this->source); })()), "actividad", [], "any", false, false, false, 774), "html", null, true);
echo "
";
}
// line 776
echo " </td>
</tr>
</table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 783
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 783, $this->source); })()), "html", null, true);
echo "\">
<label>
En caso de emergencia puede estar disponible en
</label>
</th>
<td>
";
// line 789
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 789, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 789, $this->source); })()) != "registro")))) {
// line 790
echo " <select style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 790, $this->source); })()), "id", [], "any", false, false, false, 790), "html", null, true);
echo "\" field=\"disponibilidad\" association=\"\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 790, $this->source); })()), "disponibilidad", [], "any", false, false, false, 790), "html", null, true);
echo "\">
<option value=\"\">--- Seleccione ---</option>
";
// line 792
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["disponibilidades"]) || array_key_exists("disponibilidades", $context) ? $context["disponibilidades"] : (function () { throw new RuntimeError('Variable "disponibilidades" does not exist.', 792, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["disponibilidad"]) {
// line 793
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" ";
if (($context["key"] == twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 793, $this->source); })()), "disponibilidad", [], "any", false, false, false, 793))) {
echo "selected=\"true\"";
}
echo ">";
echo twig_escape_filter($this->env, $context["disponibilidad"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['disponibilidad'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 795
echo " </select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 799
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 799, $this->source); })()), "disponibilidad", [], "any", false, false, false, 799), "html", null, true);
echo "
";
}
// line 801
echo " </td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosCentro\">
<i class=\"bigger-160 ace-icon fa fa-calendar\" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
";
// line 815
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("registroenlinea.fields.centroMovilizacionTitle", [], "crud");
// line 816
echo " </a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosCentro\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<table width=\"100%\" class=\"table table-striped table-bordered table-hover pdffont\">
<tr>
<th style=\"width: ";
// line 823
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 823, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 825
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("registroenlinea.fields.centroMovilizacionPresentarse", [], "crud");
// line 826
echo " </label>
</th>
<td>
";
// line 829
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 829, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 829, $this->source); })()) != "registro")))) {
// line 830
echo " <select id='quick_form_centro' style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 830, $this->source); })()), "id", [], "any", false, false, false, 830), "html", null, true);
echo "\" field=\"centroMovilizacion\" association=\"CentroMovilizacion\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 830, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 830), "id", [], "any", false, false, false, 830), "html", null, true);
echo "\">
";
// line 831
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["centros"]) || array_key_exists("centros", $context) ? $context["centros"] : (function () { throw new RuntimeError('Variable "centros" does not exist.', 831, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["centro"]) {
// line 832
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["centro"], "id", [], "any", false, false, false, 832), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["centro"], "id", [], "any", false, false, false, 832) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 832, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 832), "id", [], "any", false, false, false, 832))) {
echo "selected=\"true\"";
}
echo ">";
echo twig_escape_filter($this->env, $context["centro"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['centro'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 834
echo " </select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 838
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 838, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 838), "id", [], "any", false, false, false, 838), "html", null, true);
echo "
";
}
// line 840
echo " </td>
</tr>
</table>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosResidencia\">
<i class=\"bigger-160 ace-icon fa fa-home \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Lugar de residencia
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosResidencia\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 862
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 862, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 864
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.paisResidencia", [], "crud");
// line 865
echo " </label>
</th>
<td>
";
// line 868
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 868, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 868, $this->source); })()) != "registro")))) {
// line 869
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 869, $this->source); })()), "id", [], "any", false, false, false, 869), "html", null, true);
echo "\" field=\"paisResidencia\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 869, $this->source); })()), "paisResidencia", [], "any", false, false, false, 869), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 869, $this->source); })()), "paisResidencia", [], "any", false, false, false, 869), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 873
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 873, $this->source); })()), "paisResidencia", [], "any", false, false, false, 873), "html", null, true);
echo "
";
}
// line 875
echo " </td>
</tr>
<tr class=\"ecuador ";
// line 877
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 877, $this->source); })()), "paisResidencia", [], "any", false, false, false, 877) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 878
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 878, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 880
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.region", [], "crud");
// line 881
echo " </label>
</th>
<td>
<span id=\"inforegion\" regionid=\"";
// line 884
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 884, $this->source); })()), "region", [], "any", false, false, false, 884)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 884, $this->source); })()), "region", [], "any", false, false, false, 884), "id", [], "any", false, false, false, 884), "html", null, true);
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 884, $this->source); })()), "region", [], "any", false, false, false, 884), "html", null, true);
echo "</span>
</td>
</tr>
<tr class=\"ecuador ";
// line 887
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 887, $this->source); })()), "paisResidencia", [], "any", false, false, false, 887) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 888
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 888, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 890
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.provincia", [], "crud");
// line 891
echo " </label>
</th>
<td>
<span id=\"infoprovincia\" provinciaid=\"";
// line 894
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 894, $this->source); })()), "provincia", [], "any", false, false, false, 894)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 894, $this->source); })()), "provincia", [], "any", false, false, false, 894), "id", [], "any", false, false, false, 894), "html", null, true);
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 894, $this->source); })()), "provincia", [], "any", false, false, false, 894), "html", null, true);
echo "</span>
</td>
</tr>
<tr class=\"ecuador ";
// line 897
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 897, $this->source); })()), "paisResidencia", [], "any", false, false, false, 897) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 898
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 898, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 900
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.canton", [], "crud");
// line 901
echo " </label>
</th>
<td>
<span id=\"infocanton\" cantonid=\"";
// line 904
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 904, $this->source); })()), "canton", [], "any", false, false, false, 904)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 904, $this->source); })()), "canton", [], "any", false, false, false, 904), "id", [], "any", false, false, false, 904), "html", null, true);
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 904, $this->source); })()), "canton", [], "any", false, false, false, 904), "html", null, true);
echo "</span>
</td>
</tr>
<tr class=\"ecuador ";
// line 907
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 907, $this->source); })()), "paisResidencia", [], "any", false, false, false, 907) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 908
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 908, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 910
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.lugarResidencia", [], "crud");
// line 911
echo " </label>
</th>
<td>
<span id=\"infolugarResidencia\" parroquiaid=\"";
// line 914
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 914, $this->source); })()), "lugarResidencia", [], "any", false, false, false, 914)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 914, $this->source); })()), "lugarResidencia", [], "any", false, false, false, 914), "id", [], "any", false, false, false, 914), "html", null, true);
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 914, $this->source); })()), "lugarResidencia", [], "any", false, false, false, 914), "html", null, true);
echo "</span>
";
// line 915
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 915, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 915, $this->source); })()) != "registro")))) {
// line 916
echo " <button id=\"quick_update_canton\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 916, $this->source); })()), "id", [], "any", false, false, false, 916), "html", null, true);
echo "\" field=\"lugarResidencia\" info=\"infolugarResidencia\"><i class=\"fas fa-pen-alt\"></i></button>
";
}
// line 918
echo " </td>
</tr>
</table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr class=\"ecuador ";
// line 924
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 924, $this->source); })()), "paisResidencia", [], "any", false, false, false, 924) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 925
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 925, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 927
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.callePrincipalResidencia", [], "crud");
// line 928
echo " </label>
</th>
<td>
";
// line 931
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 931, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 931, $this->source); })()) != "registro")))) {
// line 932
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 932, $this->source); })()), "id", [], "any", false, false, false, 932), "html", null, true);
echo "\" field=\"callePrincipalResidencia\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 932, $this->source); })()), "callePrincipalResidencia", [], "any", false, false, false, 932), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 932, $this->source); })()), "callePrincipalResidencia", [], "any", false, false, false, 932), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 936
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 936, $this->source); })()), "callePrincipalResidencia", [], "any", false, false, false, 936), "html", null, true);
echo "
";
}
// line 938
echo " </td>
</tr>
<tr class=\"ecuador ";
// line 940
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 940, $this->source); })()), "paisResidencia", [], "any", false, false, false, 940) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 941
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 941, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 943
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.calleSecundariaResidencia", [], "crud");
// line 944
echo " </label>
</th>
<td>
";
// line 947
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 947, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 947, $this->source); })()) != "registro")))) {
// line 948
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 948, $this->source); })()), "id", [], "any", false, false, false, 948), "html", null, true);
echo "\" field=\"calleSecundariaResidencia\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 948, $this->source); })()), "calleSecundariaResidencia", [], "any", false, false, false, 948), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 948, $this->source); })()), "calleSecundariaResidencia", [], "any", false, false, false, 948), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 952
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 952, $this->source); })()), "calleSecundariaResidencia", [], "any", false, false, false, 952), "html", null, true);
echo "
";
}
// line 954
echo " </td>
</tr>
<tr class=\"ecuador ";
// line 956
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 956, $this->source); })()), "paisResidencia", [], "any", false, false, false, 956) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 957
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 957, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 959
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.numeroCasa", [], "crud");
// line 960
echo " </label>
</th>
<td>
";
// line 963
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 963, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 963, $this->source); })()) != "registro")))) {
// line 964
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 964, $this->source); })()), "id", [], "any", false, false, false, 964), "html", null, true);
echo "\" field=\"numeroCasa\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 964, $this->source); })()), "numeroCasa", [], "any", false, false, false, 964), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 964, $this->source); })()), "numeroCasa", [], "any", false, false, false, 964), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 968
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 968, $this->source); })()), "numeroCasa", [], "any", false, false, false, 968), "html", null, true);
echo "
";
}
// line 970
echo " </td>
</tr>
<tr class=\"ecuador ";
// line 972
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 972, $this->source); })()), "paisResidencia", [], "any", false, false, false, 972) != "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 973
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 973, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 975
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.referencias", [], "crud");
// line 976
echo " </label>
</th>
<td>
";
// line 979
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 979, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 979, $this->source); })()) != "registro")))) {
// line 980
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 980, $this->source); })()), "id", [], "any", false, false, false, 980), "html", null, true);
echo "\" field=\"referencias\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 980, $this->source); })()), "referencias", [], "any", false, false, false, 980), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 980, $this->source); })()), "referencias", [], "any", false, false, false, 980), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 984
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 984, $this->source); })()), "referencias", [], "any", false, false, false, 984), "html", null, true);
echo "
";
}
// line 986
echo " </td>
</tr>
<tr class=\"ecuador ";
// line 988
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 988, $this->source); })()), "paisResidencia", [], "any", false, false, false, 988) == "Ecuador")) {
echo "hide";
}
echo "\">
<th style=\"width: ";
// line 989
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 989, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 991
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.direccion", [], "crud");
// line 992
echo " </label>
</th>
<td>
";
// line 995
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 995, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 995, $this->source); })()) != "registro")))) {
// line 996
echo " <input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 996, $this->source); })()), "id", [], "any", false, false, false, 996), "html", null, true);
echo "\" field=\"referencias\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 996, $this->source); })()), "referencias", [], "any", false, false, false, 996), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 996, $this->source); })()), "referencias", [], "any", false, false, false, 996), "html", null, true);
echo "\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
";
} else {
// line 1000
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1000, $this->source); })()), "referencias", [], "any", false, false, false, 1000), "html", null, true);
echo "
";
}
// line 1002
echo " </td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosAntecedentes\">
<i class=\"bigger-160 ace-icon fa fa-star-of-life \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Antecedentes
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosAntecedentes\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
<table id=\"tabla_acuartelamiento\" class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 1026
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1026, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 1028
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.resultadosAntecedentes", [], "crud");
// line 1029
echo " </label>
</th>
<td>
<p><input type='radio' id='antecedentes_1' ";
// line 1032
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1032, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 1032) == 1)) {
echo "checked='true'";
}
echo " disabled='true'> Antecedentes penales</p>
<p><input type='radio' id='antecedentes_2' ";
// line 1033
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1033, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 1033) == 2)) {
echo "checked='true'";
}
echo " disabled='true'> Impedimento de salida del país</p>
<p><input type='radio' id='antecedentes_3' ";
// line 1034
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1034, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 1034) == 3)) {
echo "checked='true'";
}
echo " disabled='true'> Alerta migratoria</p>
<p><input type='radio' id='antecedentes_4' ";
// line 1035
if ((twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1035, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 1035) == 4)) {
echo "checked='true'";
}
echo " disabled='true'> Orden de Captura</p>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosEstudios\">
<i class=\"bigger-160 ace-icon fa fa-graduation-cap \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Estudios
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosEstudios\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
<table id=\"tabla_acuartelamiento\" class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 1060
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1060, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 1062
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.nivelInstruccion", [], "crud");
echo ":
<br><button id=\"btn_verificar_estudios\" title=\"Consultar servicio\"><i class=\"fas fa-recycle green\"></i></button>
</label>
</th>
<td>
<table id=\"table_estudios\" class=\"table\">
<thead>
<tr>
<th>";
// line 1071
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.estudioInstitucion", [], "crud");
echo "</th>
<th>";
// line 1072
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.estudioTitulo", [], "crud");
echo "</th>
</tr>
</thead>
<tbody>
";
// line 1076
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1076, $this->source); })()), "resultadosEstudios", [], "any", false, false, false, 1076));
foreach ($context['_seq'] as $context["_key"] => $context["estudio"]) {
// line 1077
echo " <tr>
<td>";
// line 1078
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "institucion", [], "any", false, false, false, 1078), "html", null, true);
echo "</td>
<td>";
// line 1079
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "titulo", [], "any", false, false, false, 1079), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estudio'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1082
echo " </tbody>
</table>
</td>
</tr>
<tr>
<th style=\"width: ";
// line 1087
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1087, $this->source); })()), "html", null, true);
echo "\">
<label>
Otros no registrados en SENESCYT:
</label>
</th>
<td>
<table id=\"tablaEstudios\" class=\"table\">
<thead>
<tr>
<th>Título o Certificación obtenida</th>
<th>Institución que emite</th>
<th>Nivel</th>
<th>En curso</th>
<th>Fecha emisión</th>
<th style=\"width: 100px\">";
// line 1101
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 1101, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 1101, $this->source); })()) != "registro")))) {
echo "<button title=\"Adicionar estudio\" id=\"addEstudio\"><i class=\"fas fa-plus-circle green\"></i></button>";
}
echo "</th>
</tr>
<tr class=\"patron hide\">
<td>
<input class=\"estudio_titulo\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' actualvalue=\"\">
</td>
<td>
<input class=\"estudio_institucion\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' actualvalue=\"\">
</td>
<td>
<select style=\"width: 100%\" class=\"chosen-select estudio_nivel\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<option value=\"\">-- Seleccione --</option>
";
// line 1113
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["niveles"]) || array_key_exists("niveles", $context) ? $context["niveles"] : (function () { throw new RuntimeError('Variable "niveles" does not exist.', 1113, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["nivel"]) {
// line 1114
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nivel"], "id", [], "any", false, false, false, 1114), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["nivel"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nivel'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1116
echo " </select>
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_cursando\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<option value=\"\">-- Seleccione --</option>
<option value=\"YES\">En curso</option>
<option value=\"NO\">Finalizado</option>
</select>
</td>
<td>
<div class=\"input-group\">
<input type=\"text\" style=\"width: 100%\" class=\"estudio_fecha form-control date-picker\" data-date-format=\"dd-mm-yyyy\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>
</div>
</td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:estudioSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:estudioCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:estudioDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
</thead>
<tbody>
";
// line 1139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["estudios"]) || array_key_exists("estudios", $context) ? $context["estudios"] : (function () { throw new RuntimeError('Variable "estudios" does not exist.', 1139, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["estudio"]) {
// line 1140
echo " <tr estudioid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "id", [], "any", false, false, false, 1140), "html", null, true);
echo "\">
<td>
<input class=\"estudio_titulo\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' value=\"";
// line 1142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "titulo", [], "any", false, false, false, 1142), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "titulo", [], "any", false, false, false, 1142), "html", null, true);
echo "\">
</td>
<td>
<input class=\"estudio_institucion\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' value=\"";
// line 1145
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "institucion", [], "any", false, false, false, 1145), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "institucion", [], "any", false, false, false, 1145), "html", null, true);
echo "\">
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_nivel chosen-select\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"";
// line 1148
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["estudio"], "nivel", [], "any", false, false, false, 1148), "id", [], "any", false, false, false, 1148), "html", null, true);
echo "\">
<option value=\"\">-- Seleccione --</option>
";
// line 1150
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["niveles"]) || array_key_exists("niveles", $context) ? $context["niveles"] : (function () { throw new RuntimeError('Variable "niveles" does not exist.', 1150, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["nivel"]) {
// line 1151
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nivel"], "id", [], "any", false, false, false, 1151), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["estudio"], "nivel", [], "any", false, false, false, 1151), "id", [], "any", false, false, false, 1151) == twig_get_attribute($this->env, $this->source, $context["nivel"], "id", [], "any", false, false, false, 1151))) {
echo "selected=\"true\"";
}
echo ">";
echo twig_escape_filter($this->env, $context["nivel"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nivel'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1153
echo " </select>
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_cursando\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"";
// line 1156
if (twig_get_attribute($this->env, $this->source, $context["estudio"], "cursando", [], "any", false, false, false, 1156)) {
echo "YES";
} else {
echo "NO";
}
echo "\">
<option value=\"\">-- Seleccione --</option>
<option value=\"YES\" ";
// line 1158
if (twig_get_attribute($this->env, $this->source, $context["estudio"], "cursando", [], "any", false, false, false, 1158)) {
echo "selected=\"true\"";
}
echo ">En curso</option>
<option value=\"NO\" ";
// line 1159
if ( !twig_get_attribute($this->env, $this->source, $context["estudio"], "cursando", [], "any", false, false, false, 1159)) {
echo "selected=\"true\"";
}
echo ">Finalizado</option>
</select>
</td>
<td>
<div class=\"input-group ";
// line 1163
if (twig_get_attribute($this->env, $this->source, $context["estudio"], "cursando", [], "any", false, false, false, 1163)) {
echo "hide";
}
echo "\">
<input type=\"text\" style=\"width: 100%\" class=\"estudio_fecha form-control date-picker unset\" data-date-format=\"dd-mm-yyyy\" onchange=\"javascript:estudioChange(this);\" value=\"";
// line 1164
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "fechaEmision", [], "any", false, false, false, 1164), "d/m/Y"), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "fechaEmision", [], "any", false, false, false, 1164), "d/m/Y"), "html", null, true);
echo "\">
<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>
</div>
</td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_estudio_save\" onclick=\"javascript:estudioSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_estudio_cancel\" onclick=\"javascript:estudioCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_estudio_delete' onclick=\"javascript:estudioDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estudio'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1175
echo " </tbody>
</table>
</td>
</tr>
<tr>
<th style=\"width: ";
// line 1180
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1180, $this->source); })()), "html", null, true);
echo "\">
<label>
Otras habilidades:
</label>
</th>
<td>
<table id=\"tablaDestrezas\" class=\"table\">
<thead>
<tr>
<th style=\"width: 280px\">Destreza/Habilidad</th>
<th style=\"width: 165px\">Tiempo de experiencia</th>
<th>Detalles</th>
<th style=\"width: 100px\">";
// line 1192
if ((((isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 1192, $this->source); })()) == "reservista") && ( !array_key_exists("tab", $context) || ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 1192, $this->source); })()) != "registro")))) {
echo "<button title=\"Adicionar habilidad\" id=\"addDestreza\"><i class=\"fas fa-plus-circle green\"></i></button>";
}
echo "</th>
</tr>
<tr class=\"patron hide\">
<td>
<select style=\"width: 100%\" class=\"chosen-select select-destreza\" onchange=\"javascript:selectDestrezaChange(this);\" actualvalue=\"\" lastValue=\"\">
<option class=\"option_destreza_empty\" value=\"\">-- Seleccione --</option>
";
// line 1198
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["destrezas"]) || array_key_exists("destrezas", $context) ? $context["destrezas"] : (function () { throw new RuntimeError('Variable "destrezas" does not exist.', 1198, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["destreza"]) {
// line 1199
echo " <option class=\"option_destreza destreza_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["destreza"], "id", [], "any", false, false, false, 1199), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["destreza"], "id", [], "any", false, false, false, 1199), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["destreza"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['destreza'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1201
echo " </select>
</td>
<td><input type=\"text\" style=\"width: 100%\" onkeyup='javascript:destrezaChange(this);' actualvalue=\"\"></td>
<td><textarea style=\"width: 100%\" onkeyup='javascript:destrezaChange(this);' actualvalue=\"\"></textarea></td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:destrezaSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:destrezaCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:destrezaDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
</thead>
<tbody>
";
// line 1213
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["habilidades"]) || array_key_exists("habilidades", $context) ? $context["habilidades"] : (function () { throw new RuntimeError('Variable "habilidades" does not exist.', 1213, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["habilidad"]) {
// line 1214
echo " <tr destrezaid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["habilidad"], "id", [], "any", false, false, false, 1214), "html", null, true);
echo "\">
<td>
<select style=\"width: 100%\" class=\"chosen-select select-destreza\" onchange=\"javascript:selectDestrezaChange(this)\" actualvalue=\"";
// line 1216
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["habilidad"], "destreza", [], "any", false, false, false, 1216), "id", [], "any", false, false, false, 1216), "html", null, true);
echo "\" lastValue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["habilidad"], "destreza", [], "any", false, false, false, 1216), "id", [], "any", false, false, false, 1216), "html", null, true);
echo "\" disabled=\"true\">
<option class=\"option_destreza_empty\" value=\"\">-- Seleccione --</option>
";
// line 1218
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["destrezas"]) || array_key_exists("destrezas", $context) ? $context["destrezas"] : (function () { throw new RuntimeError('Variable "destrezas" does not exist.', 1218, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["destreza"]) {
// line 1219
echo " <option class=\"option_destreza destreza_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["destreza"], "id", [], "any", false, false, false, 1219), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["destreza"], "id", [], "any", false, false, false, 1219), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["destreza"], "id", [], "any", false, false, false, 1219) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["habilidad"], "destreza", [], "any", false, false, false, 1219), "id", [], "any", false, false, false, 1219))) {
echo "selected=\"true\"";
}
echo ">";
echo twig_escape_filter($this->env, $context["destreza"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['destreza'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1221
echo " </select>
</td>
<td><input type=\"text\" style=\"width: 100%\" onkeyup='javascript:destrezaChange(this)' value=\"";
// line 1223
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["habilidad"], "tiempo", [], "any", false, false, false, 1223), "html", null, true);
echo "\" actualvalue=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["habilidad"], "tiempo", [], "any", false, false, false, 1223), "html", null, true);
echo "\"></td>
<td><textarea style=\"width: 100%\" onkeyup='javascript:destrezaChange(this)' actualvalue=\"";
// line 1224
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["habilidad"], "detalles", [], "any", false, false, false, 1224), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["habilidad"], "detalles", [], "any", false, false, false, 1224), "html", null, true);
echo "</textarea></td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:destrezaSave(this)\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:destrezaCancel(this)\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:destrezaDelete(this)\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['habilidad'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1232
echo " </tbody>
</table>
</td>
</tr>
</table>
";
// line 1237
$this->displayBlock('more_acuartelamiento', $context, $blocks);
// line 1238
echo "
</div>
</div>
</div>
</div>
</div>
";
// line 1245
$this->displayBlock('more_seccion', $context, $blocks);
// line 1424
echo "
<form id=\"formQuickUpdate\" action=\"";
// line 1426
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_quick_update");
echo "\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_class\" name=\"quick[class]\">
<input type=\"hidden\" id=\"quick_form_id\" name=\"quick[id]\">
<input type=\"hidden\" id=\"quick_form_field\" name=\"quick[field]\">
<input type=\"hidden\" id=\"quick_form_association_class\" name=\"quick[association]\">
<input type=\"text\" id=\"quick_input_valor\" name=\"quick[valor]\" style=\"width: 100%\">
</form>
<form id=\"formDestrezaSave\" action=\"";
// line 1433
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservista_update_habilidad");
echo "\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_reservista\" name=\"quick[reservista]\" value=\"";
// line 1434
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1434, $this->source); })()), "reservista", [], "any", false, false, false, 1434), "id", [], "any", false, false, false, 1434), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"quick_form_destreza\" name=\"quick[destreza]\">
<input type=\"hidden\" id=\"quick_form_tiempo\" name=\"quick[tiempo]\">
<input type=\"hidden\" id=\"quick_form_detalle\" name=\"quick[detalle]\">
</form>
<form id=\"formEstudioSave\" action=\"";
// line 1439
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservista_update_estudio");
echo "\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_habilidad_id\" name=\"quick[id]\">
<input type=\"hidden\" id=\"quick_form_habilidad_reservista\" name=\"quick[reservista]\" value=\"";
// line 1441
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1441, $this->source); })()), "reservista", [], "any", false, false, false, 1441), "id", [], "any", false, false, false, 1441), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"quick_form_habilidad_titulo\" name=\"quick[titulo]\">
<input type=\"hidden\" id=\"quick_form_habilidad_institucion\" name=\"quick[institucion]\">
<input type=\"hidden\" id=\"quick_form_habilidad_nivel\" name=\"quick[nivel]\">
<input type=\"hidden\" id=\"quick_form_habilidad_cursando\" name=\"quick[cursando]\">
<input type=\"hidden\" id=\"quick_form_habilidad_fecha\" name=\"quick[fecha]\">
</form>
<div id=\"dialog-verify-email\" title=\"Verificar correo electrónico\">
<form id=\"form_verify_email\" action=\"";
// line 1450
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("verifica_email");
echo "\" method=\"POST\">
<input type=\"hidden\" id=\"verify_email\" name=\"verify_email\">
</form>
<form id=\"form_verify_email_code\" action=\"";
// line 1453
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("verifica_email_code");
echo "\" method=\"POST\">
<p>Se ha enviado un correo electrónico a su dirección: <span id=\"text_email\"></span>.</p>
<p>Revise su correo e introduzca el código de verificación envíado.</p>
<p>Código de verificación: <input type=\"text\" name=\"verify_email_code\"></p>
</form>
</div>
<div id=\"dialog-change-canton\">
<table class=\"table table-striped table-bordered table-hover\">
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
";
// line 1465
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.region", [], "crud");
echo ":
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_region' style=\"width: 100%\" class=\"chosen-select\" onchange='javascript:regionChange()'>
<option value=''>-- Seleccione --</option>
";
// line 1471
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["regiones"]) || array_key_exists("regiones", $context) ? $context["regiones"] : (function () { throw new RuntimeError('Variable "regiones" does not exist.', 1471, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["region"]) {
// line 1472
echo " <option value='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["region"], "id", [], "any", false, false, false, 1472), "html", null, true);
echo "'>";
echo twig_escape_filter($this->env, $context["region"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['region'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1474
echo " </select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
";
// line 1480
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.provincia", [], "crud");
echo ":
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_provincia' style=\"width: 100%\" class=\"chosen-select\" onchange='javascripts:provinciaChange()'>
<option value=''>-- Seleccione --</option>
";
// line 1486
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["provincias"]) || array_key_exists("provincias", $context) ? $context["provincias"] : (function () { throw new RuntimeError('Variable "provincias" does not exist.', 1486, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
// line 1487
echo " <option value='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provincia"], "id", [], "any", false, false, false, 1487), "html", null, true);
echo "'>";
echo twig_escape_filter($this->env, $context["provincia"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1489
echo " </select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
";
// line 1495
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.canton", [], "crud");
echo ":
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_canton' style=\"width: 100%\" class=\"chosen-select\" onchange='javascripts:cantonChange()'>
<option value=''>-- Seleccione --</option>
";
// line 1501
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["cantones"]) || array_key_exists("cantones", $context) ? $context["cantones"] : (function () { throw new RuntimeError('Variable "cantones" does not exist.', 1501, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["canton"]) {
// line 1502
echo " <option value='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["canton"], "id", [], "any", false, false, false, 1502), "html", null, true);
echo "'>";
echo twig_escape_filter($this->env, $context["canton"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['canton'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1504
echo " </select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label class=\"required\">
";
// line 1510
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.lugarResidencia", [], "crud");
echo ":
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_parroquia' name=\"form[parroquiaResidencia]\" style=\"width: 100%\" class=\"chosen-select\">
<option value=''>-- Seleccione --</option>
";
// line 1516
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["parroquias"]) || array_key_exists("parroquias", $context) ? $context["parroquias"] : (function () { throw new RuntimeError('Variable "parroquias" does not exist.', 1516, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["parroquia"]) {
// line 1517
echo " <option value='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["parroquia"], "id", [], "any", false, false, false, 1517), "html", null, true);
echo "'>";
echo twig_escape_filter($this->env, $context["parroquia"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parroquia'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1519
echo " </select>
</td>
</tr>
</table>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 737
public function block_prev_acuartelamiento($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "prev_acuartelamiento"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "prev_acuartelamiento"));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 1237
public function block_more_acuartelamiento($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_acuartelamiento"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_acuartelamiento"));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 1245
public function block_more_seccion($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_seccion"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_seccion"));
echo "
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosPersonales\">
<i class=\"bigger-160 ace-icon fa fa-home \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Resultados del proceso
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
";
// line 1256
if ( !twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1256, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 1256)) {
// line 1257
echo " <div id='no_cupo' class='hide'>
<i class=\"fas fa-ban red bigger-300\"></i>
<span id=\"span_no_idoneo\" style=\"color: red; font-weight: bold; font-size: 20px\">
NO PUEDE REGISTRARSE RESULTADO PORQUE NO SE HA VALIDADO EL CERTIFICADO DE VACUNACIÓN
</span>
</div>
";
} else {
// line 1264
echo " <div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
";
// line 1267
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1267, $this->source); })()), "fechaResultado", [], "any", false, false, false, 1267)) {
// line 1268
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1268, $this->source); })()), "idoneo", [], "any", false, false, false, 1268)) {
// line 1269
echo " <p color='green'>IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 1272
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1272, $this->source); })()), "html", null, true);
echo "\">
<label>
Unidad asignada:
</label>
</th>
<td>
";
// line 1278
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1278, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 1278), "html", null, true);
echo "
</td>
<th style=\"width: ";
// line 1280
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1280, $this->source); })()), "html", null, true);
echo "\">
<label>
Centro instrucción:
</label>
</th>
<td>
";
// line 1286
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1286, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 1286), "centroInstruccion", [], "any", false, false, false, 1286), "html", null, true);
echo "
</td>
</tr>
</table>
";
} else {
// line 1291
echo " <p color='red'>NO IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 1294
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1294, $this->source); })()), "html", null, true);
echo "\">
<label>
Causa rechazo:
</label>
</th>
<td>
";
// line 1300
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1300, $this->source); })()), "causaRechazo", [], "any", false, false, false, 1300), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 1304
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1304, $this->source); })()), "html", null, true);
echo "\">
<label>
Observaciones:
</label>
</th>
<td>
";
// line 1310
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1310, $this->source); })()), "observaciones", [], "any", false, false, false, 1310), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 1314
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1314, $this->source); })()), "html", null, true);
echo "\">
<label>
Volver a presentarse:
</label>
</th>
<td>
";
// line 1320
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1320, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 1320), "html", null, true);
echo "
</td>
</tr>
</table>
";
}
// line 1325
echo " ";
}
// line 1326
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1326, $this->source); })()), "fechaResultado", [], "any", false, false, false, 1326) || ( !twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1326, $this->source); })()), "idoneo", [], "any", false, false, false, 1326) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1326, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 1326), "getValue", [], "method", false, false, false, 1326) == "MISMO")))) {
// line 1327
echo " <form id='form_resultados' method='post' action='";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aspirante_salvar_resultado");
echo "'>
<input type='hidden' name='resultado[reclutaProceso]' value='";
// line 1328
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1328, $this->source); })()), "id", [], "any", false, false, false, 1328), "html", null, true);
echo "'>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 1331
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1331, $this->source); })()), "html", null, true);
echo "\">
<label>
Resultado:
</label>
</th>
<td colspan='3'>
<input type='radio' class='resultado' id='resultadoIdoneo' name='resultado[resultado]' value='idoneo'> Idóneo
<input type='radio' class='resultado' id='resultadoNoIdoneo' name='resultado[resultado]' value='noidoneo'> No Idóneo
</td>
</tr>
<tr id='trUnidadAsignar' class='hide'>
<th style=\"width: ";
// line 1343
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1343, $this->source); })()), "html", null, true);
echo "\">
<label>
Unidad asignada:
</label>
</th>
<td colspan='3'>
<a id=\"botonAsignar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
// line 1349
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aspirante_asignar_unidad", ["reclutaProceso" => twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1349, $this->source); })()), "id", [], "any", false, false, false, 1349)]), "html", null, true);
echo "\">
Asignar Unidad
</a>
</td>
</tr>
<tr id='trUnidad' class='hide'>
<th style=\"width: ";
// line 1355
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1355, $this->source); })()), "html", null, true);
echo "\">
<label>
Unidad asignada:
</label>
</th>
<td>
<span id='span_unidad'></span>
<input type='hidden' id='form_unidad' name='resultado[unidad]'>
</td>
<th style=\"width: ";
// line 1364
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1364, $this->source); })()), "html", null, true);
echo "\">
<label>
Centro instrucción:
</label>
</th>
<td>
<span id='span_centro'></span>
</td>
</tr>
<tr id='trCausaRechazo' class='hide'>
<th style=\"width: ";
// line 1374
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1374, $this->source); })()), "html", null, true);
echo "\">
<label>
Causa rechazo:
</label>
</th>
<td>
<input type='radio' id='causaPsicologica' name='resultado[causa]' value='PSICOLOGICA'> Psicológica
</td>
<td>
<input type='radio' id='causaMedica' name='resultado[causa]' value='MEDICA'> Médica
</td>
<td>
<input type='radio' id='causaLaboratorios' name='resultado[causa]' value='LABORATORIO'> Laboratorio
</td>
</tr>
<tr id='trObservaciones' class='hide'>
<th style=\"width: ";
// line 1390
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1390, $this->source); })()), "html", null, true);
echo "\">
<label>
Observaciones:
</label>
</th>
<td colspan='3'>
<textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
</td>
</tr>
<tr id='trVolver' class='hide'>
<th style=\"width: ";
// line 1400
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 1400, $this->source); })()), "html", null, true);
echo "\">
<label>
Volver a presentarse:
</label>
</th>
<td>
<input type='radio' id='volverEste' name='resultado[volver]' value='MISMO'> En este proceso
</td>
<td>
<input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO'> Próximo proceso
</td>
<td>
<input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA'> Nunca
</td>
</tr>
</table>
</form>
";
}
// line 1418
echo " </div>
</div>
</div>
";
}
// line 1422
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 1530
public function block_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
// line 1531
echo " <div class=\"row\">
<div class=\"col-xs-6\">
<center>
";
// line 1534
$this->displayBlock('action_retorno', $context, $blocks);
// line 1539
echo "
</center>
</div>
";
// line 1542
if ( !twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1542, $this->source); })()), "fechaResultado", [], "any", false, false, false, 1542)) {
// line 1543
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1543, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 1543)) {
// line 1544
echo " <div class=\"col-xs-6 forChanges\">
<center>
<a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Terminar proceso</a>
</center>
</div>
";
}
// line 1549
echo "
";
} else {
// line 1550
echo "
<div class=\"col-xs-6 forChanges\">
<center>
<a id=\"botonImprimir\" target=\"_blank\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
// line 1553
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("imprimirFichaProceso", ["idReclutaProceso" => twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1553, $this->source); })()), "id", [], "any", false, false, false, 1553)]), "html", null, true);
echo "\">Imprimir resultado</a>
</center>
</div>
";
}
// line 1556
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 1534
public function block_action_retorno($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "action_retorno"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "action_retorno"));
// line 1535
echo " ";
// line 1536
echo " <a class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_plain_back_to_list", ["routeClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 1536, $this->source); })()), "id" => twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1536, $this->source); })()), "id", [], "any", false, false, false, 1536), "from" => "show"]), "html", null, true);
echo "\">
";
// line 1537
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
// line 1538
echo " </a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "ReservistaProceso/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2544 => 1538, 2542 => 1537, 2537 => 1536, 2535 => 1535, 2525 => 1534, 2513 => 1556, 2506 => 1553, 2501 => 1550, 2497 => 1549, 2489 => 1544, 2486 => 1543, 2484 => 1542, 2479 => 1539, 2477 => 1534, 2472 => 1531, 2462 => 1530, 2450 => 1422, 2444 => 1418, 2423 => 1400, 2410 => 1390, 2391 => 1374, 2378 => 1364, 2366 => 1355, 2357 => 1349, 2348 => 1343, 2333 => 1331, 2327 => 1328, 2322 => 1327, 2319 => 1326, 2316 => 1325, 2308 => 1320, 2299 => 1314, 2292 => 1310, 2283 => 1304, 2276 => 1300, 2267 => 1294, 2262 => 1291, 2254 => 1286, 2245 => 1280, 2240 => 1278, 2231 => 1272, 2226 => 1269, 2223 => 1268, 2221 => 1267, 2216 => 1264, 2207 => 1257, 2205 => 1256, 2183 => 1245, 2163 => 1237, 2143 => 737, 2124 => 1519, 2113 => 1517, 2109 => 1516, 2100 => 1510, 2092 => 1504, 2081 => 1502, 2077 => 1501, 2068 => 1495, 2060 => 1489, 2049 => 1487, 2045 => 1486, 2036 => 1480, 2028 => 1474, 2017 => 1472, 2013 => 1471, 2004 => 1465, 1989 => 1453, 1983 => 1450, 1971 => 1441, 1966 => 1439, 1958 => 1434, 1954 => 1433, 1944 => 1426, 1940 => 1424, 1938 => 1245, 1929 => 1238, 1927 => 1237, 1920 => 1232, 1904 => 1224, 1898 => 1223, 1894 => 1221, 1877 => 1219, 1873 => 1218, 1866 => 1216, 1860 => 1214, 1856 => 1213, 1842 => 1201, 1829 => 1199, 1825 => 1198, 1814 => 1192, 1799 => 1180, 1792 => 1175, 1773 => 1164, 1767 => 1163, 1758 => 1159, 1752 => 1158, 1743 => 1156, 1738 => 1153, 1723 => 1151, 1719 => 1150, 1714 => 1148, 1706 => 1145, 1698 => 1142, 1692 => 1140, 1688 => 1139, 1663 => 1116, 1652 => 1114, 1648 => 1113, 1631 => 1101, 1614 => 1087, 1607 => 1082, 1598 => 1079, 1594 => 1078, 1591 => 1077, 1587 => 1076, 1580 => 1072, 1576 => 1071, 1564 => 1062, 1559 => 1060, 1529 => 1035, 1523 => 1034, 1517 => 1033, 1511 => 1032, 1506 => 1029, 1504 => 1028, 1499 => 1026, 1473 => 1002, 1467 => 1000, 1455 => 996, 1453 => 995, 1448 => 992, 1446 => 991, 1441 => 989, 1435 => 988, 1431 => 986, 1425 => 984, 1413 => 980, 1411 => 979, 1406 => 976, 1404 => 975, 1399 => 973, 1393 => 972, 1389 => 970, 1383 => 968, 1371 => 964, 1369 => 963, 1364 => 960, 1362 => 959, 1357 => 957, 1351 => 956, 1347 => 954, 1341 => 952, 1329 => 948, 1327 => 947, 1322 => 944, 1320 => 943, 1315 => 941, 1309 => 940, 1305 => 938, 1299 => 936, 1287 => 932, 1285 => 931, 1280 => 928, 1278 => 927, 1273 => 925, 1267 => 924, 1259 => 918, 1253 => 916, 1251 => 915, 1243 => 914, 1238 => 911, 1236 => 910, 1231 => 908, 1225 => 907, 1215 => 904, 1210 => 901, 1208 => 900, 1203 => 898, 1197 => 897, 1187 => 894, 1182 => 891, 1180 => 890, 1175 => 888, 1169 => 887, 1159 => 884, 1154 => 881, 1152 => 880, 1147 => 878, 1141 => 877, 1137 => 875, 1131 => 873, 1119 => 869, 1117 => 868, 1112 => 865, 1110 => 864, 1105 => 862, 1081 => 840, 1075 => 838, 1069 => 834, 1054 => 832, 1050 => 831, 1043 => 830, 1041 => 829, 1036 => 826, 1034 => 825, 1029 => 823, 1020 => 816, 1018 => 815, 1002 => 801, 996 => 799, 990 => 795, 975 => 793, 971 => 792, 963 => 790, 961 => 789, 952 => 783, 943 => 776, 937 => 774, 931 => 770, 916 => 768, 912 => 767, 904 => 765, 902 => 764, 893 => 758, 872 => 740, 868 => 738, 865 => 737, 855 => 736, 833 => 722, 823 => 721, 810 => 716, 808 => 715, 564 => 474, 456 => 369, 378 => 294, 242 => 161, 163 => 85, 151 => 76, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"@crud\\\\crud\\\\show.html.twig\" %}
{% block jquery %}
{{ parent() }}
<script type=\"text/javascript\">
var inputEmail;
\$(function()
{
\$(\"#botonTerminar\").click(function(e){
e.preventDefault();
var ok=true;
var msg='';
if (\$('#resultadoIdoneo').prop('checked'))
{
if (!\$('#form_unidad').val())
{
ok=false;
msg = 'Debe asignar la unidad militar';
}
}
else
{
if (\$('#resultadoNoIdoneo').prop('checked'))
{
if (!(\$('#causaPsicologica').prop('checked') || \$('#causaMedica').prop('checked') || \$('#causaLaboratorios').prop('checked')))
{
ok=false;
msg = 'Debe asignar la causa de rechazo';
}
else
{
if (!\$('#observaciones').val())
{
ok=false;
msg = 'Debe indicar las observaciones acerca del rechazo';
}
else
{
if (!(\$('#volverEste').prop('checked') || \$('#volverProximo').prop('checked') || \$('#volverNunca').prop('checked')))
{
ok=false;
msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
}
}
}
}
else
{
ok=false;
msg = 'Debe indicar un resultado del proceso';
}
}
if (ok)
{
\$('#divResultado').mask(' Terminando proceso...');
\$('#form_resultados').ajaxSubmit({
type: \$('#form_resultados').attr('method'),
url: \$('#form_resultados').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
if (data.ok)
{
if (data.fullMasculino || data.fullFemenino)
{
var genero='';
if (data.fullMasculino)
genero = 'masculino';
else
genero = 'femenino';
jConfirm('Asignación exitosa. Con esta asignación se ha alcanzado el cupo '+genero+' de la unidad. ¿Desea ver la nómina de los asignados a la unidad?', 'Alerta',
function(r) {
if (r) {
var url = '{{ path('ajax_nominaPDF', {'proceso': entity.procesoRegistro.id, 'unidad':'__UNIDAD__'}) }}';
url = url.replace('__UNIDAD__', data.unidadId);
\$.ajax({
type: \"GET\",
url: url,
//dataType: 'html',
//data: { _xml_http_request: true },
success: function(data){
var mio=0;
window.open('{{ path('exportar_reporte_PDF', {'routeClassName': 'listaasignacionunidad'}) }}', '_blank');
document.location.reload();
}
});
}
});
}
else
document.location.reload();
}
else
{
\$('#divResultado').unmask();
showError(bootbox, data.msg);
}
}
})
}
else
{
showError(bootbox, msg);
}
});
\$( \"#dialog-verify-email\" ).dialog({
autoOpen: false,
height: 310,
width: 400,
modal: true,
resizable: false,
title_html: true,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller red\"><i class=\"fas fa-globe\"></i> Verificar correo electrónico</h4></div>',
buttons: {
Aceptar: function() {
\$('#dialog-verify-email').parent().mask(' Verificando código...');
\$('#form_verify_email_code').ajaxSubmit({
type: \$('#form_verify_email_code').attr('method'),
url: \$('#form_verify_email_code').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
\$('#dialog-verify-email').parent().unmask();
if (data.ok)
{
\$( \"#dialog-verify-email\" ).dialog( \"close\" );
quickUpdate(inputEmail);
}
else
{
showError(bootbox, data.msg);
}
}
});
},
Cancelar: function() {
\$( \"#dialog-verify-email\" ).dialog( \"close\" );
}
}
});
\$( \"#dialog-change-canton\" ).dialog({
autoOpen: false,
height: 310,
width: 400,
modal: true,
resizable: false,
title_html: true,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller red\"><i class=\"fas fa-globe\"></i> Modificar lugar de residencia</h4></div>',
buttons: {
Aceptar: function() {
\$('#dialog-change-canton').parent().mask(' Guardando...');
\$('#quick_form_association_class').val('NmclDominioLocalizacion');
\$('#quick_form_class').val('ReservistaProceso');
\$('#quick_form_id').val('{{ entity.id }}');
\$('#quick_form_field').val('lugarResidencia');
\$('#quick_input_valor').val(\$( \"#form_parroquia\" ).val());
quickUpdateCanton();
},
Cancelar: function() {
\$(\"#dialog-change-canton\").dialog(\"close\");
}
}
});
\$('.quick_update_input').keyup(function(){
var td = \$(this).parent();
var input = td.find('input');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
if (newValue !== actualValue)
{
td.find('button').removeClass('hide');
}
else
{
td.find('button').addClass('hide');
}
});
\$('.quick_update_input_cancel').click(function(){
var td = \$(this).parent();
var input = td.find('input');
var actualValue = input.attr('actualvalue');
input.val(actualValue);
td.find('button').addClass('hide');
});
\$('.quick_update_input_save').click(function(){
var td = \$(this).parent();
var input = td.find('input');
\$('#quick_form_association_class').val('');
\$('#quick_form_class').val(input.attr('classname'));
\$('#quick_form_id').val(input.attr('entityid'));
\$('#quick_form_field').val(input.attr('field'));
\$('#quick_input_valor').val(input.val());
if (\$('#quick_form_field').val()==='email')
{
if (validEmail(input.val()))
{
inputEmail = input;
verificaEmail(input.val());
}
else
{
showError(bootbox, 'Formato de correo electrónico incorrecto');
}
}
else
{
quickUpdate(input);
}
});
\$('.quick_update_select').change(function(){
var td = \$(this).parent();
var input = td.find('select');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
if (newValue !== actualValue)
{
td.find('button').removeClass('hide');
}
else
{
td.find('button').addClass('hide');
}
});
\$('.quick_update_select_cancel').click(function(){
var td = \$(this).parent();
var input = td.find('select');
var actualValue = input.attr('actualvalue');
input.val(actualValue);
td.find('button').addClass('hide');
});
\$('.quick_update_select_save').click(function(){
var td = \$(this).parent();
var input = td.find('select');
\$('#quick_form_association_class').val(input.attr('association'));
\$('#quick_form_class').val(input.attr('classname'));
\$('#quick_form_id').val(input.attr('entityid'));
\$('#quick_form_field').val(input.attr('field'));
\$('#quick_input_valor').val(input.val());
quickUpdate(input);
});
\$('#quick_update_canton').click(function(){
\$('#form_region').val(\$('#inforegion').attr('regionid'));
\$('#form_provincia').val(\$('#infoprovincia').attr('provinciaid'));
\$('#form_canton').val(\$('#infocanton').attr('cantonid'));
\$('#form_parroquia').val(\$('#infolugarResidencia').attr('parroquiaid'));
\$('#dialog-change-canton').dialog ('open');
});
\$('#addDestreza').click(function(){
if (\$('option.option_destreza:not(.hide)').length>0)
{
var tr = \$('#tablaDestrezas').find('thead').find('tr.patron');
tr='<tr>'+tr.html()+'</tr>';
\$('#tablaDestrezas').find('tbody').prepend(tr);
tr = \$('#tablaDestrezas').find('tbody').find('tr').first();
tr.find('.select-destreza').change();
}
});
\$('#addEstudio').click(function(){
var tr = \$('#tablaEstudios').find('thead').find('tr.patron');
tr='<tr>'+tr.html()+'</tr>';
\$('#tablaEstudios').find('tbody').prepend(tr);
tr = \$('#tablaEstudios').find('tbody').find('tr').first();
tr.find('.date-picker').addClass('unset');
setDatePicker();
});
\$('#btn_verificar_estudios').click(function(e){
e.preventDefault();
\$('#table_estudios').parent().parent().mask(' Verificando estudios...');
var url = '{{ path('reservista_verifica_estudios', {'identificacion': entity.reservista.identificacion }) }}';
\$.getJSON(url , function(result){
\$('#table_estudios').parent().parent().unmask();
if (result.ok)
{
\$('#table_estudios tbody').html('');
var flen = result.estudios.length;
if (flen>0)
{
var i;
for (i=0; i<flen; i++)
{
\$('#table_estudios tbody').append('<tr><td>'+result.estudios[i].institucion+'</td><td>'+result.estudios[i].titulo+'</td></tr>');
}
}
else
{
\$('#table_estudios tbody').append('<tr><td colspan=\"3\" style=\"text-align: center\">No hay estudios registrados</td></tr>');
}
}
});
});
cleanDestrezasOptions();
setDatePicker();
});
function setDatePicker()
{
\$('.date-picker.unset').each(function(){
\$(this).datepicker({
autoclose: true,
todayHighlight: true,
language: 'es'
})
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
\$(this).removeClass('unset');
});
}
function destrezaCancel(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
if (select.val() !== select.attr('actualvalue'))
{
select.val(select.attr('actualvalue'));
select.change();
}
if (input.val() !== input.attr('actualvalue'))
{
input.val(input.attr('actualvalue'));
}
if (textarea.val() !== textarea.attr('actualvalue'))
{
textarea.val(textarea.attr('actualvalue'));
}
tr.find('.button').addClass('hide');
};
function destrezaDelete(elem)
{
if (confirm('Está seguro que va a eliminar la destreza'))
{
var tr = \$(elem).parent().parent();
var id = tr.attr('destrezaid');
if (id)
{
var url=\"{{ path('crud_quick_delete', {'id': '__ID__', 'className': 'ReservistaDestreza'}) }}\";
url = url.replace('__ID__', id);
tr.mask(' Eliminando...');
\$.getJSON(url , function(result){
if (result.ok)
{
tr.remove();
cleanDestrezasOptions();
}
else
{
tr.unmask();
showError(bootbox, result.msg);
}
});
}
else
{
tr.remove();
cleanDestrezasOptions();
}
}
}
function destrezaSave(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
\$('#quick_form_destreza').val(select.val());
\$('#quick_form_tiempo').val(input.val());
\$('#quick_form_detalle').val(textarea.val());
tr.mask(' Guardando...');
\$('#formDestrezaSave').ajaxSubmit({
type: \$('#formDestrezaSave').attr('method'),
url: \$('#formDestrezaSave').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
tr.unmask();
if (data.ok)
{
tr.attr('destrezaid',data.id);
select.attr('actualvalue', select.val());
select.prop('disabled', true);
input.attr('actualvalue', input.val());
textarea.attr('actualvalue', textarea.val());
tr.find('.button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function cleanDestrezasOptions()
{
\$('option.option_destreza').removeClass('hide');
\$('#tablaDestrezas').children('tbody').find('.select-destreza').each(function(){
var value = \$(this).val();
if (value)
{
\$('option.destreza_'+value).addClass('hide');
}
});
}
function estudioCancel(elem)
{
var tr = \$(elem).parent().parent();
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
titulo.val(titulo.attr('actualvalue'));
institucion.val(institucion.attr('actualvalue'));
nivel.val(nivel.attr('actualvalue'));
cursando.val(cursando.attr('actualvalue'));
fecha.val(fecha.attr('actualvalue'));
if (cursando.val()==='YES')
{
fecha.parent().addClass('hide');
}
else
{
fecha.parent().removeClass('hide');
}
tr.find('.button').addClass('hide');
};
function estudioDelete(elem)
{
if (confirm('Está seguro que va a eliminar el estudio'))
{
var tr = \$(elem).parent().parent();
var id = tr.attr('estudioid');
if (id)
{
var url=\"{{ path('crud_quick_delete', {'id': '__ID__', 'className': 'ReservistaEstudio'}) }}\";
url = url.replace('__ID__', id);
tr.mask(' Eliminando...');
\$.getJSON(url , function(result){
if (result.ok)
{
tr.remove();
}
else
{
tr.unmask();
showError(bootbox, result.msg);
}
});
}
else
{
tr.remove();
}
}
}
function estudioSave(elem)
{
var tr = \$(elem).parent().parent();
var id = tr.attr('estudioid');
if (id)
{
\$('#quick_form_habilidad_id').val(id);
}
else
{
\$('#quick_form_habilidad_id').val('');
}
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
if (!titulo.val() || !institucion.val() || !nivel.val() || !cursando.val() || (cursando.val()=='NO' && !fecha.val()))
{
showError(bootbox, 'Debe indicar toda la información sobre el estudio cursado');
return;
}
\$('#quick_form_habilidad_titulo').val(titulo.val());
\$('#quick_form_habilidad_institucion').val(institucion.val());
\$('#quick_form_habilidad_nivel').val(nivel.val());
\$('#quick_form_habilidad_cursando').val(cursando.val());
\$('#quick_form_habilidad_fecha').val(fecha.val());
tr.mask(' Guardando...');
\$('#formEstudioSave').ajaxSubmit({
type: \$('#formEstudioSave').attr('method'),
url: \$('#formEstudioSave').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
tr.unmask();
if (data.ok)
{
tr.attr('estudioid',data.id);
titulo.attr('actualvalue', titulo.val());
institucion.attr('actualvalue', institucion.val());
nivel.attr('actualvalue', nivel.val());
cursando.attr('actualvalue', cursando.val());
fecha.attr('actualvalue', fecha.val());
tr.find('.button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function validEmail(email)
{
var filter = /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9_\\.\\-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
return filter.test(email);
}
function verificaEmail(email)
{
inputEmail.parent().mask(' Verificando correo electrónico...');
\$('#verify_email').val(email);
\$('#text_email').html(email);
\$('#form_verify_email').ajaxSubmit({
type: \$('#form_verify_email').attr('method'),
url: \$('#form_verify_email').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
inputEmail.parent().unmask();
if (data.ok)
{
\$('#dialog-verify-email').dialog('open');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function quickUpdate(input)
{
input.parent().mask(' Guardando...');
var newValue = input.val();
var actualValue = input.attr('actualvalue');
\$('#formQuickUpdate').ajaxSubmit({
type: \$('#formQuickUpdate').attr('method'),
url: \$('#formQuickUpdate').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
input.parent().unmask();
if (data.ok)
{
if (\$('#quick_form_field').val()=='paisResidencia' && (actualValue.toLowerCase()=='ecuador' || newValue.toLowerCase()=='ecuador'))
{
\$('.ecuador').toggleClass('hide');
}
input.attr('actualvalue', newValue);
input.parent().find('button').addClass('hide');
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function quickUpdateCanton()
{
\$('#formQuickUpdate').ajaxSubmit({
type: \$('#formQuickUpdate').attr('method'),
url: \$('#formQuickUpdate').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
\$('#dialog-change-canton').parent().mask(' Guardando...');
if (data.ok)
{
\$('#inforegion').html(\$( \"#form_region option:selected\" ).text());
\$('#inforegion').attr('regionid', \$( \"#form_region\" ).val());
\$('#infoprovincia').html(\$( \"#form_provincia option:selected\" ).text());
\$('#infoprovincia').attr('provinciaid', \$( \"#form_provincia\" ).val());
\$('#infocanton').html(\$( \"#form_canton option:selected\" ).text());
\$('#infocanton').attr('cantonid', \$( \"#form_canton\" ).val());
\$('#infolugarResidencia').html(\$( \"#form_parroquia option:selected\" ).text());
\$('#infolugarResidencia').attr('parroquiaid', \$( \"#form_parroquia\" ).val());
\$( \"#dialog-change-canton\" ).dialog(\"close\");
}
else
{
showError(bootbox, data.msg);
}
}
});
}
function selectDestrezaChange(select)
{
var lastValue=\$(select).attr('lastValue');
var value = \$(select).val();
if (!value && lastValue)
{
\$(select).val(lastValue);
}
else
if (value)
{
\$('option.destreza_'+lastValue).removeClass('hide');
\$(select).attr('lastValue', value);
\$('option.destreza_'+value).addClass('hide');
}
destrezaChange(select)
}
function destrezaChange(elem)
{
var tr = \$(elem).parent().parent();
var select = tr.find('select');
var input = tr.find('input');
var textarea = tr.find('textarea');
if (select.val() !== select.attr('actualvalue') ||
input.val() !== input.attr('actualvalue') ||
textarea.val() !== textarea.attr('actualvalue'))
{
tr.find('.button').removeClass('hide');
}
else
{
tr.find('.button').addClass('hide');
}
}
function estudioChange(elem)
{
var tr = \$(elem).parent().parent();
if (\$(elem).hasClass('estudio_fecha'))
{
tr = tr.parent();
}
var titulo = tr.find('input.estudio_titulo');
var institucion = tr.find('input.estudio_institucion');
var nivel = tr.find('select.estudio_nivel');
var cursando = tr.find('select.estudio_cursando');
var fecha = tr.find('input.estudio_fecha');
if (\$(elem).hasClass('estudio_cursando'))
{
if (cursando.val()==='YES')
{
fecha.parent().addClass('hide');
}
else
{
fecha.parent().removeClass('hide');
}
fecha.val(fecha.attr('actualvalue'));
}
if (titulo.val() !== titulo.attr('actualvalue') ||
institucion.val() !== institucion.attr('actualvalue') ||
nivel.val() !== nivel.attr('actualvalue') ||
cursando.val() !== cursando.attr('actualvalue') ||
fecha.val() !== fecha.attr('actualvalue'))
{
tr.find('.button').removeClass('hide');
}
else
{
tr.find('.button').addClass('hide');
}
}
{% include 'RegionProvinciaCantonParroquia\\\\jquery_functions.html.twig' with {'distintivo': '', 'parroquiaField': 'parroquia'} %}
</script>
{% endblock %}
{% block principal_heading %}
<div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Visualización del reservista
</h4>
<!--div class=\"widget-toolbar\">
<a href=\"#\" data-action=\"collapse\">
<i class=\"fas fa-chevron-up\"></i>
</a>
</div-->
</div>
{% endblock %}
{% block showdata %}
{% block prev_acuartelamiento %}
{% endblock prev_acuartelamiento %}
{{ render(controller('App\\\\Crud\\\\Controller\\\\crudPlainController::showAction', {'rol': rol, 'routeClassName':'reservista', 'id':entity.reservista.id, 'parentRouteClassName':routeClassName })) }}
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosDisponibilidad\">
<i class=\"bigger-160 ace-icon fa fa-check-square\" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Disponibilidad
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosDisponibilidad\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Actividad actual
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<select style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"disponibilidad\" association=\"\" actualvalue=\"{{ entity.disponibilidad }}\">
<option value=\"\">--- Seleccione ---</option>
{% for key,actividad in actividades %}
<option value=\"{{ key }}\" {% if key == entity.disponibilidad %}selected=\"true\"{% endif %}>{{ actividad }}</option>
{% endfor %}
</select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.actividad }}
{% endif %}
</td>
</tr>
</table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
En caso de emergencia puede estar disponible en
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<select style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"disponibilidad\" association=\"\" actualvalue=\"{{ entity.disponibilidad }}\">
<option value=\"\">--- Seleccione ---</option>
{% for key,disponibilidad in disponibilidades %}
<option value=\"{{ key }}\" {% if key == entity.disponibilidad %}selected=\"true\"{% endif %}>{{ disponibilidad }}</option>
{% endfor %}
</select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.disponibilidad }}
{% endif %}
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosCentro\">
<i class=\"bigger-160 ace-icon fa fa-calendar\" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
{% trans from 'crud' %} registroenlinea.fields.centroMovilizacionTitle {% endtrans %}
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosCentro\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<table width=\"100%\" class=\"table table-striped table-bordered table-hover pdffont\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} registroenlinea.fields.centroMovilizacionPresentarse {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<select id='quick_form_centro' style=\"width: 100%\" class=\"chosen-select quick_update_select\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"centroMovilizacion\" association=\"CentroMovilizacion\" actualvalue=\"{{ entity.centroMovilizacion.id }}\">
{% for centro in centros %}
<option value=\"{{ centro.id }}\" {% if centro.id == entity.centroMovilizacion.id %}selected=\"true\"{% endif %}>{{ centro }}</option>
{% endfor %}
</select>
<button class=\"hide quick_update_select_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_select_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.centroMovilizacion.id }}
{% endif %}
</td>
</tr>
</table>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosResidencia\">
<i class=\"bigger-160 ace-icon fa fa-home \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Lugar de residencia
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosResidencia\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.paisResidencia {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"paisResidencia\" value=\"{{ entity.paisResidencia }}\" actualvalue=\"{{ entity.paisResidencia }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.paisResidencia }}
{% endif %}
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}
</label>
</th>
<td>
<span id=\"inforegion\" regionid=\"{% if entity.region %}{{ entity.region.id }}{% endif %}\">{{ entity.region }}</span>
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}
</label>
</th>
<td>
<span id=\"infoprovincia\" provinciaid=\"{% if entity.provincia %}{{ entity.provincia.id }}{% endif %}\">{{ entity.provincia }}</span>
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}
</label>
</th>
<td>
<span id=\"infocanton\" cantonid=\"{% if entity.canton %}{{ entity.canton.id }}{% endif %}\">{{ entity.canton }}</span>
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}
</label>
</th>
<td>
<span id=\"infolugarResidencia\" parroquiaid=\"{% if entity.lugarResidencia %}{{ entity.lugarResidencia.id }}{% endif %}\">{{ entity.lugarResidencia }}</span>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<button id=\"quick_update_canton\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"lugarResidencia\" info=\"infolugarResidencia\"><i class=\"fas fa-pen-alt\"></i></button>
{% endif %}
</td>
</tr>
</table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.callePrincipalResidencia {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"callePrincipalResidencia\" value=\"{{ entity.callePrincipalResidencia }}\" actualvalue=\"{{ entity.callePrincipalResidencia }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.callePrincipalResidencia }}
{% endif %}
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.calleSecundariaResidencia {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"calleSecundariaResidencia\" value=\"{{ entity.calleSecundariaResidencia }}\" actualvalue=\"{{ entity.calleSecundariaResidencia }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.calleSecundariaResidencia }}
{% endif %}
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.numeroCasa {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"numeroCasa\" value=\"{{ entity.numeroCasa }}\" actualvalue=\"{{ entity.numeroCasa }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.numeroCasa }}
{% endif %}
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia!='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.referencias {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"referencias\" value=\"{{ entity.referencias }}\" actualvalue=\"{{ entity.referencias }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.referencias }}
{% endif %}
</td>
</tr>
<tr class=\"ecuador {% if entity.paisResidencia=='Ecuador' %}hide{% endif %}\">
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.direccion {% endtrans %}
</label>
</th>
<td>
{% if rol=='reservista' and (tab is not defined or tab != 'registro') %}
<input type=\"text\" style=\"width:100%\" class=\"quick_update_input\" classname=\"ReservistaProceso\" entityid=\"{{ entity.id }}\" field=\"referencias\" value=\"{{ entity.referencias }}\" actualvalue=\"{{ entity.referencias }}\">
<button class=\"hide quick_update_input_save\"><i class=\"fas fa-save\"></i></button>
<button class=\"hide quick_update_input_cancel\"><i class=\"fas fa-ban red\"></i></button>
{% else %}
{{ entity.referencias }}
{% endif %}
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosAntecedentes\">
<i class=\"bigger-160 ace-icon fa fa-star-of-life \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Antecedentes
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosAntecedentes\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
<table id=\"tabla_acuartelamiento\" class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.resultadosAntecedentes {% endtrans %}
</label>
</th>
<td>
<p><input type='radio' id='antecedentes_1' {% if entity.resultadosAntecedentes==1%}checked='true'{% endif %} disabled='true'> Antecedentes penales</p>
<p><input type='radio' id='antecedentes_2' {% if entity.resultadosAntecedentes==2%}checked='true'{% endif %} disabled='true'> Impedimento de salida del país</p>
<p><input type='radio' id='antecedentes_3' {% if entity.resultadosAntecedentes==3%}checked='true'{% endif %} disabled='true'> Alerta migratoria</p>
<p><input type='radio' id='antecedentes_4' {% if entity.resultadosAntecedentes==4%}checked='true'{% endif %} disabled='true'> Orden de Captura</p>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosEstudios\">
<i class=\"bigger-160 ace-icon fa fa-graduation-cap \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Estudios
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosEstudios\">
<div class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
<table id=\"tabla_acuartelamiento\" class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.nivelInstruccion {% endtrans %}:
<br><button id=\"btn_verificar_estudios\" title=\"Consultar servicio\"><i class=\"fas fa-recycle green\"></i></button>
</label>
</th>
<td>
<table id=\"table_estudios\" class=\"table\">
<thead>
<tr>
<th>{% trans from 'crud' %} reclutaproceso.fields.estudioInstitucion {% endtrans %}</th>
<th>{% trans from 'crud' %} reclutaproceso.fields.estudioTitulo {% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for estudio in entity.resultadosEstudios %}
<tr>
<td>{{ estudio.institucion }}</td>
<td>{{ estudio.titulo }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Otros no registrados en SENESCYT:
</label>
</th>
<td>
<table id=\"tablaEstudios\" class=\"table\">
<thead>
<tr>
<th>Título o Certificación obtenida</th>
<th>Institución que emite</th>
<th>Nivel</th>
<th>En curso</th>
<th>Fecha emisión</th>
<th style=\"width: 100px\">{% if rol=='reservista' and (tab is not defined or tab !='registro') %}<button title=\"Adicionar estudio\" id=\"addEstudio\"><i class=\"fas fa-plus-circle green\"></i></button>{% endif %}</th>
</tr>
<tr class=\"patron hide\">
<td>
<input class=\"estudio_titulo\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' actualvalue=\"\">
</td>
<td>
<input class=\"estudio_institucion\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' actualvalue=\"\">
</td>
<td>
<select style=\"width: 100%\" class=\"chosen-select estudio_nivel\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<option value=\"\">-- Seleccione --</option>
{% for nivel in niveles %}
<option value=\"{{ nivel.id }}\">{{ nivel }}</option>
{% endfor %}
</select>
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_cursando\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<option value=\"\">-- Seleccione --</option>
<option value=\"YES\">En curso</option>
<option value=\"NO\">Finalizado</option>
</select>
</td>
<td>
<div class=\"input-group\">
<input type=\"text\" style=\"width: 100%\" class=\"estudio_fecha form-control date-picker\" data-date-format=\"dd-mm-yyyy\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"\">
<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>
</div>
</td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:estudioSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:estudioCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:estudioDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
</thead>
<tbody>
{% for estudio in estudios %}
<tr estudioid=\"{{ estudio.id }}\">
<td>
<input class=\"estudio_titulo\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' value=\"{{ estudio.titulo }}\" actualvalue=\"{{ estudio.titulo }}\">
</td>
<td>
<input class=\"estudio_institucion\" type=\"text\" style=\"width: 100%\" onkeyup='javascript:estudioChange(this);' value=\"{{ estudio.institucion }}\" actualvalue=\"{{ estudio.institucion }}\">
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_nivel chosen-select\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"{{ estudio.nivel.id }}\">
<option value=\"\">-- Seleccione --</option>
{% for nivel in niveles %}
<option value=\"{{ nivel.id }}\" {% if estudio.nivel.id==nivel.id %}selected=\"true\"{% endif %}>{{ nivel }}</option>
{% endfor %}
</select>
</td>
<td>
<select style=\"width: 100%\" class=\"estudio_cursando\" onchange=\"javascript:estudioChange(this);\" actualvalue=\"{% if estudio.cursando %}YES{% else %}NO{% endif %}\">
<option value=\"\">-- Seleccione --</option>
<option value=\"YES\" {% if estudio.cursando %}selected=\"true\"{% endif %}>En curso</option>
<option value=\"NO\" {% if not estudio.cursando %}selected=\"true\"{% endif %}>Finalizado</option>
</select>
</td>
<td>
<div class=\"input-group {% if estudio.cursando %}hide{% endif %}\">
<input type=\"text\" style=\"width: 100%\" class=\"estudio_fecha form-control date-picker unset\" data-date-format=\"dd-mm-yyyy\" onchange=\"javascript:estudioChange(this);\" value=\"{{ estudio.fechaEmision | date('d/m/Y') }}\" actualvalue=\"{{ estudio.fechaEmision | date('d/m/Y') }}\">
<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>
</div>
</td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_estudio_save\" onclick=\"javascript:estudioSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_estudio_cancel\" onclick=\"javascript:estudioCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_estudio_delete' onclick=\"javascript:estudioDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
{% endfor %}
</tbody>
</table>
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Otras habilidades:
</label>
</th>
<td>
<table id=\"tablaDestrezas\" class=\"table\">
<thead>
<tr>
<th style=\"width: 280px\">Destreza/Habilidad</th>
<th style=\"width: 165px\">Tiempo de experiencia</th>
<th>Detalles</th>
<th style=\"width: 100px\">{% if rol=='reservista' and (tab is not defined or tab !='registro') %}<button title=\"Adicionar habilidad\" id=\"addDestreza\"><i class=\"fas fa-plus-circle green\"></i></button>{% endif %}</th>
</tr>
<tr class=\"patron hide\">
<td>
<select style=\"width: 100%\" class=\"chosen-select select-destreza\" onchange=\"javascript:selectDestrezaChange(this);\" actualvalue=\"\" lastValue=\"\">
<option class=\"option_destreza_empty\" value=\"\">-- Seleccione --</option>
{% for destreza in destrezas %}
<option class=\"option_destreza destreza_{{ destreza.id }}\" value=\"{{ destreza.id }}\">{{ destreza }}</option>
{% endfor %}
</select>
</td>
<td><input type=\"text\" style=\"width: 100%\" onkeyup='javascript:destrezaChange(this);' actualvalue=\"\"></td>
<td><textarea style=\"width: 100%\" onkeyup='javascript:destrezaChange(this);' actualvalue=\"\"></textarea></td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:destrezaSave(this);\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:destrezaCancel(this);\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:destrezaDelete(this);\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
</thead>
<tbody>
{% for habilidad in habilidades %}
<tr destrezaid=\"{{ habilidad.id }}\">
<td>
<select style=\"width: 100%\" class=\"chosen-select select-destreza\" onchange=\"javascript:selectDestrezaChange(this)\" actualvalue=\"{{ habilidad.destreza.id }}\" lastValue=\"{{ habilidad.destreza.id }}\" disabled=\"true\">
<option class=\"option_destreza_empty\" value=\"\">-- Seleccione --</option>
{% for destreza in destrezas %}
<option class=\"option_destreza destreza_{{ destreza.id }}\" value=\"{{ destreza.id }}\" {% if destreza.id == habilidad.destreza.id %}selected=\"true\"{% endif %}>{{ destreza }}</option>
{% endfor %}
</select>
</td>
<td><input type=\"text\" style=\"width: 100%\" onkeyup='javascript:destrezaChange(this)' value=\"{{ habilidad.tiempo }}\" actualvalue=\"{{ habilidad.tiempo }}\"></td>
<td><textarea style=\"width: 100%\" onkeyup='javascript:destrezaChange(this)' actualvalue=\"{{ habilidad.detalles }}\">{{ habilidad.detalles }}</textarea></td>
<th>
<button title=\"Guardar cambios\" class=\"hide button quick_destreza_save\" onclick=\"javascript:destrezaSave(this)\"><i class=\"fas fa-save\"></i></button>
<button title=\"Deshacer cambios\" class=\"hide button quick_destreza_cancel\" onclick=\"javascript:destrezaCancel(this)\"><i class=\"fas fa-ban red\"></i></button>
<button title=\"Eliminar\" class='quick_destreza_delete' onclick=\"javascript:destrezaDelete(this)\"><i class=\"fas fa-trash-alt red\"></i></button>
</th>
</tr>
{% endfor %}
</tbody>
</table>
</td>
</tr>
</table>
{% block more_acuartelamiento %}
{% endblock more_acuartelamiento %}
</div>
</div>
</div>
</div>
</div>
{% block more_seccion %}
<div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h4 class=\"panel-title green\">
<a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosPersonales\">
<i class=\"bigger-160 ace-icon fa fa-home \" data-icon-hide=\"ace-icon fa fa-angle-down\" data-icon-show=\"ace-icon fa fa-angle-right\"></i>
Resultados del proceso
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
{% if not entity.certificadoVacunacionOk %}
<div id='no_cupo' class='hide'>
<i class=\"fas fa-ban red bigger-300\"></i>
<span id=\"span_no_idoneo\" style=\"color: red; font-weight: bold; font-size: 20px\">
NO PUEDE REGISTRARSE RESULTADO PORQUE NO SE HA VALIDADO EL CERTIFICADO DE VACUNACIÓN
</span>
</div>
{% else %}
<div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
{% if entity.fechaResultado %}
{% if entity.idoneo %}
<p color='green'>IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Unidad asignada:
</label>
</th>
<td>
{{ entity.unidadMilitar }}
</td>
<th style=\"width: {{ widthLabel }}\">
<label>
Centro instrucción:
</label>
</th>
<td>
{{ entity.unidadMilitar.centroInstruccion }}
</td>
</tr>
</table>
{% else %}
<p color='red'>NO IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Causa rechazo:
</label>
</th>
<td>
{{ entity.causaRechazo }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Observaciones:
</label>
</th>
<td>
{{ entity.observaciones }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Volver a presentarse:
</label>
</th>
<td>
{{ entity.volverPresentarse }}
</td>
</tr>
</table>
{% endif %}
{% endif %}
{% if not entity.fechaResultado or (not entity.idoneo and entity.volverPresentarse.getValue()=='MISMO') %}
<form id='form_resultados' method='post' action='{{ path('aspirante_salvar_resultado') }}'>
<input type='hidden' name='resultado[reclutaProceso]' value='{{ entity.id }}'>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Resultado:
</label>
</th>
<td colspan='3'>
<input type='radio' class='resultado' id='resultadoIdoneo' name='resultado[resultado]' value='idoneo'> Idóneo
<input type='radio' class='resultado' id='resultadoNoIdoneo' name='resultado[resultado]' value='noidoneo'> No Idóneo
</td>
</tr>
<tr id='trUnidadAsignar' class='hide'>
<th style=\"width: {{ widthLabel }}\">
<label>
Unidad asignada:
</label>
</th>
<td colspan='3'>
<a id=\"botonAsignar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('aspirante_asignar_unidad', {'reclutaProceso': entity.id }) }}\">
Asignar Unidad
</a>
</td>
</tr>
<tr id='trUnidad' class='hide'>
<th style=\"width: {{ widthLabel }}\">
<label>
Unidad asignada:
</label>
</th>
<td>
<span id='span_unidad'></span>
<input type='hidden' id='form_unidad' name='resultado[unidad]'>
</td>
<th style=\"width: {{ widthLabel }}\">
<label>
Centro instrucción:
</label>
</th>
<td>
<span id='span_centro'></span>
</td>
</tr>
<tr id='trCausaRechazo' class='hide'>
<th style=\"width: {{ widthLabel }}\">
<label>
Causa rechazo:
</label>
</th>
<td>
<input type='radio' id='causaPsicologica' name='resultado[causa]' value='PSICOLOGICA'> Psicológica
</td>
<td>
<input type='radio' id='causaMedica' name='resultado[causa]' value='MEDICA'> Médica
</td>
<td>
<input type='radio' id='causaLaboratorios' name='resultado[causa]' value='LABORATORIO'> Laboratorio
</td>
</tr>
<tr id='trObservaciones' class='hide'>
<th style=\"width: {{ widthLabel }}\">
<label>
Observaciones:
</label>
</th>
<td colspan='3'>
<textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
</td>
</tr>
<tr id='trVolver' class='hide'>
<th style=\"width: {{ widthLabel }}\">
<label>
Volver a presentarse:
</label>
</th>
<td>
<input type='radio' id='volverEste' name='resultado[volver]' value='MISMO'> En este proceso
</td>
<td>
<input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO'> Próximo proceso
</td>
<td>
<input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA'> Nunca
</td>
</tr>
</table>
</form>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock more_seccion %}
<form id=\"formQuickUpdate\" action=\"{{ path('crud_quick_update') }}\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_class\" name=\"quick[class]\">
<input type=\"hidden\" id=\"quick_form_id\" name=\"quick[id]\">
<input type=\"hidden\" id=\"quick_form_field\" name=\"quick[field]\">
<input type=\"hidden\" id=\"quick_form_association_class\" name=\"quick[association]\">
<input type=\"text\" id=\"quick_input_valor\" name=\"quick[valor]\" style=\"width: 100%\">
</form>
<form id=\"formDestrezaSave\" action=\"{{ path('reservista_update_habilidad') }}\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_reservista\" name=\"quick[reservista]\" value=\"{{ entity.reservista.id }}\">
<input type=\"hidden\" id=\"quick_form_destreza\" name=\"quick[destreza]\">
<input type=\"hidden\" id=\"quick_form_tiempo\" name=\"quick[tiempo]\">
<input type=\"hidden\" id=\"quick_form_detalle\" name=\"quick[detalle]\">
</form>
<form id=\"formEstudioSave\" action=\"{{ path('reservista_update_estudio') }}\" method=\"POST\" class=\"hide\">
<input type=\"hidden\" id=\"quick_form_habilidad_id\" name=\"quick[id]\">
<input type=\"hidden\" id=\"quick_form_habilidad_reservista\" name=\"quick[reservista]\" value=\"{{ entity.reservista.id }}\">
<input type=\"hidden\" id=\"quick_form_habilidad_titulo\" name=\"quick[titulo]\">
<input type=\"hidden\" id=\"quick_form_habilidad_institucion\" name=\"quick[institucion]\">
<input type=\"hidden\" id=\"quick_form_habilidad_nivel\" name=\"quick[nivel]\">
<input type=\"hidden\" id=\"quick_form_habilidad_cursando\" name=\"quick[cursando]\">
<input type=\"hidden\" id=\"quick_form_habilidad_fecha\" name=\"quick[fecha]\">
</form>
<div id=\"dialog-verify-email\" title=\"Verificar correo electrónico\">
<form id=\"form_verify_email\" action=\"{{ path('verifica_email') }}\" method=\"POST\">
<input type=\"hidden\" id=\"verify_email\" name=\"verify_email\">
</form>
<form id=\"form_verify_email_code\" action=\"{{ path('verifica_email_code') }}\" method=\"POST\">
<p>Se ha enviado un correo electrónico a su dirección: <span id=\"text_email\"></span>.</p>
<p>Revise su correo e introduzca el código de verificación envíado.</p>
<p>Código de verificación: <input type=\"text\" name=\"verify_email_code\"></p>
</form>
</div>
<div id=\"dialog-change-canton\">
<table class=\"table table-striped table-bordered table-hover\">
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
{% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}:
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_region' style=\"width: 100%\" class=\"chosen-select\" onchange='javascript:regionChange()'>
<option value=''>-- Seleccione --</option>
{% for region in regiones %}
<option value='{{ region.id }}'>{{ region }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
{% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}:
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_provincia' style=\"width: 100%\" class=\"chosen-select\" onchange='javascripts:provinciaChange()'>
<option value=''>-- Seleccione --</option>
{% for provincia in provincias %}
<option value='{{ provincia.id }}'>{{ provincia }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label id=\"label_form_medico\">
{% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}:
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_canton' style=\"width: 100%\" class=\"chosen-select\" onchange='javascripts:cantonChange()'>
<option value=''>-- Seleccione --</option>
{% for canton in cantones %}
<option value='{{ canton.id }}'>{{ canton }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr class=\"reside_ecuador\">
<th style=\"width: 20%\">
<label class=\"required\">
{% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}:
</label>
</th>
<td style=\"vertical-align: middle\">
<select id='form_parroquia' name=\"form[parroquiaResidencia]\" style=\"width: 100%\" class=\"chosen-select\">
<option value=''>-- Seleccione --</option>
{% for parroquia in parroquias %}
<option value='{{ parroquia.id }}'>{{ parroquia }}</option>
{% endfor %}
</select>
</td>
</tr>
</table>
</div>
{% endblock %}
{% block actions %}
<div class=\"row\">
<div class=\"col-xs-6\">
<center>
{% block action_retorno %}
{#<a class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('crud_index', {'routeClassName': routeClassName}) }}\">#}
<a class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('crud_plain_back_to_list', {'routeClassName': routeClassName, 'id': entity.id, 'from': 'show'}) }}\">
{% trans from 'crud' %}botones.regresar{% endtrans %}
</a>
{% endblock %}
</center>
</div>
{% if not entity.fechaResultado %}
{% if entity.certificadoVacunacionOk %}
<div class=\"col-xs-6 forChanges\">
<center>
<a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Terminar proceso</a>
</center>
</div>
{% endif %}
{% else %}
<div class=\"col-xs-6 forChanges\">
<center>
<a id=\"botonImprimir\" target=\"_blank\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('imprimirFichaProceso', {'idReclutaProceso': entity.id }) }}\">Imprimir resultado</a>
</center>
</div>
{% endif %}
</div>
{% endblock %}
", "ReservistaProceso/show.html.twig", "/data/produccion/integral/src/templates/ReservistaProceso/show.html.twig");
}
}