<?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;
/* ReclutaProceso/show.html.twig */
class __TwigTemplate_9cba0c4474822521e90bf18f6d410544 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'],
'centro_movilizacion' => [$this, 'block_centro_movilizacion'],
'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", "ReclutaProceso/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", "ReclutaProceso/show.html.twig"));
$this->parent = $this->loadTemplate("@crud\\crud\\show.html.twig", "ReclutaProceso/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\">
\$(function()
{
\$(\".resultado\").click(function(e){
if (\$('#resultadoIdoneo').prop('checked'))
{
\$('#trUnidadAsignar').removeClass('hide');
\$('#trCausaRechazo').addClass('hide');
\$('#trObservaciones').addClass('hide');
\$('#trVolver').addClass('hide');
}
else
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').addClass('hide');
\$('#trCausaRechazo').removeClass('hide');
\$('#trObservaciones').removeClass('hide');
\$('#trVolver').removeClass('hide');
}
});
\$(\"#botonAsignar\").click(function(e){
e.preventDefault();
\$('#divResultado').mask(' Asignando unidad...');
var url = \$(this).attr('href');
\$.getJSON(url , function(result){
\$('#divResultado').unmask();
if (result.ok)
{
if (result.choose)
{
\$(\"#chooseCentro\").html(result.centro);
\$(\"#selectUnidad\").html(result.unidades);
\$(\"#selectUnidad\").addClass('chosen-select');
\$('.chosen-select').chosen({allow_single_deselect:true});
\$(\"#chooseUnidad\").dialog(\"open\");
}
else
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').removeClass('hide');
\$('#span_unidad').html(result.unidad);
\$('#form_unidad').val(result.unidadId);
\$('#span_centro').html(result.centro);
}
}
else
{
showError(bootbox, result.msg);
}
});
});
\$(\"#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 124
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.', 124, $this->source); })()), "procesoReclutamiento", [], "any", false, false, false, 124), "id", [], "any", false, false, false, 124), "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 133
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);
}
});
\$('#chooseUnidad').dialog ({
autoOpen : false,
height: 500,
width: 500,
modal: true,
resizable: false,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller green\"><i class=\"fas fa-home\"></i> Seleccionar Unidad Militar</h4></div>',
title_html: true,
buttons: {
Asignar: function() {
if (\$(\"#selectUnidad\").val())
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').removeClass('hide');
\$('#span_unidad').html(\$('#selectUnidad option:selected').text());
\$('#form_unidad').val(\$(\"#selectUnidad\").val());
\$('#span_centro').html(\$('#chooseCentro').html());
\$( \"#chooseUnidad\" ).dialog( \"close\" );
}
else
alert('Debe seleccionar una unidad');
},
Cancelar: function() {
\$( \"#chooseUnidad\" ).dialog( \"close\" );
}
}
});
\t\t
});
\t\t
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 192
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 193
echo " <div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Visualización del aspirante
</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 207
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 208
echo "
";
// line 209
$this->displayBlock('prev_acuartelamiento', $context, $blocks);
// line 210
echo "
";
// line 212
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.', 212, $this->source); })()), "routeClassName" => "recluta", "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.', 212, $this->source); })()), "recluta", [], "any", false, false, false, 212), "parentRouteClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 212, $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=\"#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>
Lugar de residencia
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<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 229
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.', 229, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 231
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.paisResidencia", [], "crud");
// line 232
echo " </label>
</th>
<td>
";
// line 235
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.', 235, $this->source); })()), "paisResidencia", [], "any", false, false, false, 235), "html", null, true);
echo "
</td>
</tr>
";
// line 238
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.', 238, $this->source); })()), "paisResidencia", [], "any", false, false, false, 238) == "Ecuador")) {
// line 239
echo " <tr>
<th style=\"width: ";
// line 240
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.', 240, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 242
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.region", [], "crud");
// line 243
echo " </label>
</th>
<td>
";
// line 246
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.', 246, $this->source); })()), "region", [], "any", false, false, false, 246), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 250
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.', 250, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 252
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.provincia", [], "crud");
// line 253
echo " </label>
</th>
<td>
";
// line 256
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.', 256, $this->source); })()), "provincia", [], "any", false, false, false, 256), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 260
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.', 260, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 262
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.canton", [], "crud");
// line 263
echo " </label>
</th>
<td>
";
// line 266
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.', 266, $this->source); })()), "canton", [], "any", false, false, false, 266), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 270
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.', 270, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 272
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.lugarResidencia", [], "crud");
// line 273
echo " </label>
</th>
<td>
";
// line 276
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.', 276, $this->source); })()), "lugarResidencia", [], "any", false, false, false, 276), "html", null, true);
echo "
</td>
</tr>
";
}
// line 280
echo " </table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
";
// line 284
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.', 284, $this->source); })()), "paisResidencia", [], "any", false, false, false, 284) == "Ecuador")) {
// line 285
echo " <tr>
<th style=\"width: ";
// line 286
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.', 286, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 288
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.callePrincipalResidencia", [], "crud");
// line 289
echo " </label>
</th>
<td>
";
// line 292
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.', 292, $this->source); })()), "callePrincipalResidencia", [], "any", false, false, false, 292), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 296
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.', 296, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 298
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.calleSecundariaResidencia", [], "crud");
// line 299
echo " </label>
</th>
<td>
";
// line 302
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.', 302, $this->source); })()), "calleSecundariaResidencia", [], "any", false, false, false, 302), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 306
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.', 306, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 308
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.numeroCasa", [], "crud");
// line 309
echo " </label>
</th>
<td>
";
// line 312
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.', 312, $this->source); })()), "numeroCasa", [], "any", false, false, false, 312), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 316
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.', 316, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 318
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.referencias", [], "crud");
// line 319
echo " </label>
</th>
<td>
";
// line 322
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.', 322, $this->source); })()), "referencias", [], "any", false, false, false, 322), "html", null, true);
echo "
</td>
</tr>
";
} else {
// line 326
echo " <tr>
<th style=\"width: ";
// line 327
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.', 327, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 329
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.direccion", [], "crud");
// line 330
echo " </label>
</th>
<td>
";
// line 333
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.', 333, $this->source); })()), "referencias", [], "any", false, false, false, 333), "html", null, true);
echo "
</td>
</tr>
";
}
// line 337
echo " </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=\"#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>
Datos del acuartelamiento
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<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 359
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.', 359, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 361
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.centroMovilizacion", [], "crud");
// line 362
echo " </label>
</th>
<td>
";
// line 365
$this->displayBlock('centro_movilizacion', $context, $blocks);
// line 368
echo " </td>
</tr>
<tr>
<th style=\"width: ";
// line 371
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.', 371, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 373
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.direccionAcuartelamiento", [], "crud");
// line 374
echo " </label>
</th>
<td>
<span id=\"direccion_acuartelamiento\">
";
// line 378
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.', 378, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 378), "direccionAcuartelamiento", [], "any", false, false, false, 378)) ? (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.', 378, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 378), "direccionAcuartelamiento", [], "any", false, false, false, 378)) : (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.', 378, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 378), "direccion", [], "any", false, false, false, 378))), "html", null, true);
echo "
</span>
</td>
</tr>
";
// line 396
echo " <tr>
<th style=\"width: ";
// line 397
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.', 397, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 399
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.resultadosAntecedentes", [], "crud");
// line 400
echo " </label>
</th>
<td>
<p><input type='radio' id='antecedentes_1' ";
// line 403
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.', 403, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 403) == 1)) {
echo "checked='true'";
}
echo " disabled='true'> Antecedentes penales</p>
<p><input type='radio' id='antecedentes_2' ";
// line 404
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.', 404, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 404) == 2)) {
echo "checked='true'";
}
echo " disabled='true'> Impedimento de salida del país</p>
<p><input type='radio' id='antecedentes_3' ";
// line 405
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.', 405, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 405) == 3)) {
echo "checked='true'";
}
echo " disabled='true'> Alerta migratoria</p>
<p><input type='radio' id='antecedentes_4' ";
// line 406
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.', 406, $this->source); })()), "resultadosAntecedentes", [], "any", false, false, false, 406) == 4)) {
echo "checked='true'";
}
echo " disabled='true'> Orden de Captura</p>
</td>
</tr>
<tr>
<th style=\"width: ";
// line 410
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.', 410, $this->source); })()), "html", null, true);
echo "\">
<label>
";
// line 412
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.nivelInstruccion", [], "crud");
echo ":
</label>
</th>
<td>
<table class=\"table\">
<tr>
<th>";
// line 418
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.estudioInstitucion", [], "crud");
echo "</th>
<th>";
// line 419
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("reclutaproceso.fields.estudioTitulo", [], "crud");
echo "</th>
</tr>
";
// line 421
$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.', 421, $this->source); })()), "resultadosEstudios", [], "any", false, false, false, 421));
foreach ($context['_seq'] as $context["_key"] => $context["estudio"]) {
// line 422
echo " <tr>
<td>";
// line 423
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "institucion", [], "any", false, false, false, 423), "html", null, true);
echo "</td>
<td>";
// line 424
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["estudio"], "titulo", [], "any", false, false, false, 424), "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 427
echo " </table>
</td>
</tr>
<tr>
<th style=\"width: ";
// line 431
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.', 431, $this->source); })()), "html", null, true);
echo "\">
<label>
Encuesta psicológica:
</label>
</th>
<td>
";
// line 437
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.', 437, $this->source); })()), "turno", [], "any", false, false, false, 437)) {
// line 438
echo " Terminada
";
} else {
// line 440
echo " No terminada
";
}
// line 442
echo " </td>
</tr>
</table>
";
// line 445
$this->displayBlock('more_acuartelamiento', $context, $blocks);
// line 446
echo "
</div>
</div>
</div>
</div>
</div>
<!--
";
// line 453
$this->displayBlock('more_seccion', $context, $blocks);
// line 632
echo "
<div id=\"chooseUnidad\">
<h4><span id=\"chooseCentro\"></span></h4>
<p>Seleccione la unidad</p>
<select id=\"selectUnidad\"></select>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 209
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 365
public function block_centro_movilizacion($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", "centro_movilizacion"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "centro_movilizacion"));
// line 366
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.', 366, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 366), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 445
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 453
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 464
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.', 464, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 464)) {
// line 465
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 472
echo " <div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
";
// line 475
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.', 475, $this->source); })()), "fechaResultado", [], "any", false, false, false, 475)) {
// line 476
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.', 476, $this->source); })()), "idoneo", [], "any", false, false, false, 476)) {
// line 477
echo " <p color='green'>IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 480
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.', 480, $this->source); })()), "html", null, true);
echo "\">
<label>
Unidad asignada:
</label>
</th>
<td>
";
// line 486
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.', 486, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 486), "html", null, true);
echo "
</td>
<th style=\"width: ";
// line 488
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.', 488, $this->source); })()), "html", null, true);
echo "\">
<label>
Centro instrucción:
</label>
</th>
<td>
";
// line 494
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.', 494, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 494), "centroInstruccion", [], "any", false, false, false, 494), "html", null, true);
echo "
</td>
</tr>
</table>
";
} else {
// line 499
echo " <p color='red'>NO IDÓNEO</p>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 502
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.', 502, $this->source); })()), "html", null, true);
echo "\">
<label>
Causa rechazo:
</label>
</th>
<td>
";
// line 508
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.', 508, $this->source); })()), "causaRechazo", [], "any", false, false, false, 508), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 512
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.', 512, $this->source); })()), "html", null, true);
echo "\">
<label>
Observaciones:
</label>
</th>
<td>
";
// line 518
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.', 518, $this->source); })()), "observaciones", [], "any", false, false, false, 518), "html", null, true);
echo "
</td>
</tr>
<tr>
<th style=\"width: ";
// line 522
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.', 522, $this->source); })()), "html", null, true);
echo "\">
<label>
Volver a presentarse:
</label>
</th>
<td>
";
// line 528
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.', 528, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 528), "html", null, true);
echo "
</td>
</tr>
</table>
";
}
// line 533
echo " ";
}
// line 534
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.', 534, $this->source); })()), "fechaResultado", [], "any", false, false, false, 534) || ( !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.', 534, $this->source); })()), "idoneo", [], "any", false, false, false, 534) && (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.', 534, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 534) == "MISMO")))) {
// line 535
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 536
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.', 536, $this->source); })()), "id", [], "any", false, false, false, 536), "html", null, true);
echo "'>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 539
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.', 539, $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 551
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.', 551, $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 557
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.', 557, $this->source); })()), "id", [], "any", false, false, false, 557)]), "html", null, true);
echo "\">
Asignar Unidad
</a>
</td>
</tr>
<tr id='trUnidad' class='hide'>
<th style=\"width: ";
// line 563
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.', 563, $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 572
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.', 572, $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 582
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.', 582, $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 598
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.', 598, $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 608
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.', 608, $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 626
echo " </div>
</div>
</div>
";
}
// line 630
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 641
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 642
echo " <div class=\"row\">
<div class=\"col-xs-6\">
<center>
";
// line 645
$this->displayBlock('action_retorno', $context, $blocks);
// line 650
echo "
</center>
</div>
";
// line 653
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.', 653, $this->source); })()), "fechaResultado", [], "any", false, false, false, 653)) {
// line 654
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.', 654, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 654)) {
// line 655
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 660
echo "
";
} else {
// line 661
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 664
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.', 664, $this->source); })()), "id", [], "any", false, false, false, 664)]), "html", null, true);
echo "\">Imprimir resultado</a>
</center>
</div>
";
}
// line 667
echo "
</div>
-->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 645
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 646
echo " ";
// line 647
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.', 647, $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.', 647, $this->source); })()), "id", [], "any", false, false, false, 647), "from" => "show"]), "html", null, true);
echo "\">
";
// line 648
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
// line 649
echo " </a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "ReclutaProceso/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1192 => 649, 1190 => 648, 1185 => 647, 1183 => 646, 1173 => 645, 1160 => 667, 1153 => 664, 1148 => 661, 1144 => 660, 1136 => 655, 1133 => 654, 1131 => 653, 1126 => 650, 1124 => 645, 1119 => 642, 1109 => 641, 1097 => 630, 1091 => 626, 1070 => 608, 1057 => 598, 1038 => 582, 1025 => 572, 1013 => 563, 1004 => 557, 995 => 551, 980 => 539, 974 => 536, 969 => 535, 966 => 534, 963 => 533, 955 => 528, 946 => 522, 939 => 518, 930 => 512, 923 => 508, 914 => 502, 909 => 499, 901 => 494, 892 => 488, 887 => 486, 878 => 480, 873 => 477, 870 => 476, 868 => 475, 863 => 472, 854 => 465, 852 => 464, 830 => 453, 810 => 445, 797 => 366, 787 => 365, 767 => 209, 750 => 632, 748 => 453, 739 => 446, 737 => 445, 732 => 442, 728 => 440, 724 => 438, 722 => 437, 713 => 431, 707 => 427, 698 => 424, 694 => 423, 691 => 422, 687 => 421, 682 => 419, 678 => 418, 669 => 412, 664 => 410, 655 => 406, 649 => 405, 643 => 404, 637 => 403, 632 => 400, 630 => 399, 625 => 397, 622 => 396, 615 => 378, 609 => 374, 607 => 373, 602 => 371, 597 => 368, 595 => 365, 590 => 362, 588 => 361, 583 => 359, 559 => 337, 552 => 333, 547 => 330, 545 => 329, 540 => 327, 537 => 326, 530 => 322, 525 => 319, 523 => 318, 518 => 316, 511 => 312, 506 => 309, 504 => 308, 499 => 306, 492 => 302, 487 => 299, 485 => 298, 480 => 296, 473 => 292, 468 => 289, 466 => 288, 461 => 286, 458 => 285, 456 => 284, 450 => 280, 443 => 276, 438 => 273, 436 => 272, 431 => 270, 424 => 266, 419 => 263, 417 => 262, 412 => 260, 405 => 256, 400 => 253, 398 => 252, 393 => 250, 386 => 246, 381 => 243, 379 => 242, 374 => 240, 371 => 239, 369 => 238, 363 => 235, 358 => 232, 356 => 231, 351 => 229, 331 => 212, 327 => 210, 325 => 209, 322 => 208, 312 => 207, 290 => 193, 280 => 192, 212 => 133, 200 => 124, 76 => 4, 66 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"@crud\\\\crud\\\\show.html.twig\" %}
{% block jquery %}
{{ parent() }}
<script type=\"text/javascript\">
\$(function()
{
\$(\".resultado\").click(function(e){
if (\$('#resultadoIdoneo').prop('checked'))
{
\$('#trUnidadAsignar').removeClass('hide');
\$('#trCausaRechazo').addClass('hide');
\$('#trObservaciones').addClass('hide');
\$('#trVolver').addClass('hide');
}
else
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').addClass('hide');
\$('#trCausaRechazo').removeClass('hide');
\$('#trObservaciones').removeClass('hide');
\$('#trVolver').removeClass('hide');
}
});
\$(\"#botonAsignar\").click(function(e){
e.preventDefault();
\$('#divResultado').mask(' Asignando unidad...');
var url = \$(this).attr('href');
\$.getJSON(url , function(result){
\$('#divResultado').unmask();
if (result.ok)
{
if (result.choose)
{
\$(\"#chooseCentro\").html(result.centro);
\$(\"#selectUnidad\").html(result.unidades);
\$(\"#selectUnidad\").addClass('chosen-select');
\$('.chosen-select').chosen({allow_single_deselect:true});
\$(\"#chooseUnidad\").dialog(\"open\");
}
else
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').removeClass('hide');
\$('#span_unidad').html(result.unidad);
\$('#form_unidad').val(result.unidadId);
\$('#span_centro').html(result.centro);
}
}
else
{
showError(bootbox, result.msg);
}
});
});
\$(\"#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.procesoReclutamiento.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);
}
});
\$('#chooseUnidad').dialog ({
autoOpen : false,
height: 500,
width: 500,
modal: true,
resizable: false,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller green\"><i class=\"fas fa-home\"></i> Seleccionar Unidad Militar</h4></div>',
title_html: true,
buttons: {
Asignar: function() {
if (\$(\"#selectUnidad\").val())
{
\$('#trUnidadAsignar').addClass('hide');
\$('#trUnidad').removeClass('hide');
\$('#span_unidad').html(\$('#selectUnidad option:selected').text());
\$('#form_unidad').val(\$(\"#selectUnidad\").val());
\$('#span_centro').html(\$('#chooseCentro').html());
\$( \"#chooseUnidad\" ).dialog( \"close\" );
}
else
alert('Debe seleccionar una unidad');
},
Cancelar: function() {
\$( \"#chooseUnidad\" ).dialog( \"close\" );
}
}
});
\t\t
});
\t\t
</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 aspirante
</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':'recluta', 'id':entity.recluta, '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=\"#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>
Lugar de residencia
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<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>
{{ entity.paisResidencia }}
</td>
</tr>
{% if entity.paisResidencia=='Ecuador' %}
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.region {% endtrans %}
</label>
</th>
<td>
{{ entity.region }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.provincia {% endtrans %}
</label>
</th>
<td>
{{ entity.provincia }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.canton {% endtrans %}
</label>
</th>
<td>
{{ entity.canton }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.lugarResidencia {% endtrans %}
</label>
</th>
<td>
{{ entity.lugarResidencia }}
</td>
</tr>
{% endif %}
</table>
</div>
<div class=\"col-xs-12 col-sm-6\">
<table class=\"table table-striped table-bordered table-hover\">
{% if entity.paisResidencia=='Ecuador' %}
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.callePrincipalResidencia {% endtrans %}
</label>
</th>
<td>
{{ entity.callePrincipalResidencia }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.calleSecundariaResidencia {% endtrans %}
</label>
</th>
<td>
{{ entity.calleSecundariaResidencia }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.numeroCasa {% endtrans %}
</label>
</th>
<td>
{{ entity.numeroCasa }}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.referencias {% endtrans %}
</label>
</th>
<td>
{{ entity.referencias }}
</td>
</tr>
{% else %}
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.direccion {% endtrans %}
</label>
</th>
<td>
{{ entity.referencias }}
</td>
</tr>
{% endif %}
</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=\"#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>
Datos del acuartelamiento
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<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.centroMovilizacion {% endtrans %}
</label>
</th>
<td>
{% block centro_movilizacion %}
{{ entity.centroMovilizacion }}
{% endblock centro_movilizacion %}
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.direccionAcuartelamiento {% endtrans %}
</label>
</th>
<td>
<span id=\"direccion_acuartelamiento\">
{{ entity.centroMovilizacion.direccionAcuartelamiento?entity.centroMovilizacion.direccionAcuartelamiento:entity.centroMovilizacion.direccion }}
</span>
</td>
</tr>
{#% if entity.turno %}
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.turno {% endtrans %}
</label>
</th>
<td>
<span id=\"span_turno\">
{{ entity.turno }}
</span>
</td>
</tr>
{% endif %#}
<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>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
{% trans from 'crud' %} reclutaproceso.fields.nivelInstruccion {% endtrans %}:
</label>
</th>
<td>
<table class=\"table\">
<tr>
<th>{% trans from 'crud' %} reclutaproceso.fields.estudioInstitucion {% endtrans %}</th>
<th>{% trans from 'crud' %} reclutaproceso.fields.estudioTitulo {% endtrans %}</th>
</tr>
{% for estudio in entity.resultadosEstudios %}
<tr>
<td>{{ estudio.institucion }}</td>
<td>{{ estudio.titulo }}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
<tr>
<th style=\"width: {{ widthLabel }}\">
<label>
Encuesta psicológica:
</label>
</th>
<td>
{% if entity.turno %}
Terminada
{% else %}
No terminada
{% endif %}
</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=='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 %}
<div id=\"chooseUnidad\">
<h4><span id=\"chooseCentro\"></span></h4>
<p>Seleccione la unidad</p>
<select id=\"selectUnidad\"></select>
</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 %}
", "ReclutaProceso/show.html.twig", "/data/produccion/integral/src/templates/ReclutaProceso/show.html.twig");
}
}