<?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\showVacunacion.html.twig */
class __TwigTemplate_d76244a867f6d3931afb239820ac4304 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_seccion' => [$this, 'block_more_seccion'],
'actions' => [$this, 'block_actions'],
'action_retorno' => [$this, 'block_action_retorno'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "ReclutaProceso/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\\showVacunacion.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\\showVacunacion.html.twig"));
$this->parent = $this->loadTemplate("ReclutaProceso/show.html.twig", "ReclutaProceso\\showVacunacion.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\").unbind('click');
\$(\".resultado\").click(function(e){
if (\$('#certificadoIdoneo').prop('checked'))
{
\$('#trObservaciones').addClass('hide');
\$('#trVolver').addClass('hide');
}
else
{
\$('#trObservaciones').removeClass('hide');
\$('#trVolver').removeClass('hide');
}
});
\$(\"#botonTerminar\").unbind('click');
\$(\"#botonTerminar\").click(function(e){
e.preventDefault();
var ok=true;
var msg='';
if (!\$('#certificadoIdoneo').prop('checked') && !\$('#certificadoNoIdoneo').prop('checked'))
{
ok = false;
msg = 'Debe indicar un resultado de la validación del certificado de vacunación.';
}
else
{
if (\$('#certificadoNoIdoneo').prop('checked'))
{
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';
}
}
}
}
if (ok)
{
\$('#divResultado').mask(' Actualizando información...');
\$('#form_resultado_vacunacion').ajaxSubmit({
type: \$('#form_resultado_vacunacion').attr('method'),
url: \$('#form_resultado_vacunacion').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
if (data.ok)
{
document.location.href='";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_index", ["routeClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 63, $this->source); })())]), "html", null, true);
echo "';
}
else
{
\$('#divResultado').unmask();
showError(bootbox, data.msg);
}
}
})
}
else
{
showError(bootbox, msg);
}
});
\t\t
});
\t\t
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 86
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 87
echo " <div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Validación del Certificado de Vacunación
</h4>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 95
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 96
echo "
";
// line 97
$this->displayBlock('prev_acuartelamiento', $context, $blocks);
// line 98
echo "
";
// line 100
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.', 100, $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.', 100, $this->source); })()), "recluta", [], "any", false, false, false, 100), "parentRouteClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 100, $this->source); })())]));
echo "
";
// line 102
$this->displayBlock('more_seccion', $context, $blocks);
// line 185
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 97
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 102
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>
Certificado válido
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
";
// line 116
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.', 116, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 116)) {
// line 117
echo " <form id='form_resultado_vacunacion' method='post' action='";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aspirante_salvar_vacunacion");
echo "'>
<input type='hidden' name='resultado[reclutaProceso]' value='";
// line 118
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.', 118, $this->source); })()), "id", [], "any", false, false, false, 118), "html", null, true);
echo "'>
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 121
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.', 121, $this->source); })()), "html", null, true);
echo "\">
<label>
Resultado:
</label>
</th>
<td colspan='3'>
<input type='radio' class='resultado' id='certificadoIdoneo' name='resultado[resultado]' value='valido' ";
// line 127
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.', 127, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 127)) {
echo "checked=\"true\"";
}
echo "> Válido
<input type='radio' class='resultado' id='certificadoNoIdoneo' name='resultado[resultado]' value='no_valido' ";
// line 129
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.', 129, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 129) == false)) {
echo "checked=\"true\"";
}
echo "> No válido
</td>
</tr>
<tr id='trObservaciones' ";
// line 132
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.', 132, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 132) != false)) {
echo "class='hide'";
}
echo ">
<th style=\"width: ";
// line 133
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.', 133, $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>
";
// line 142
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.', 142, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 142)) {
// line 143
echo " <tr id='trVolver' ";
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.', 143, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 143) != false)) {
echo "class='hide'";
}
echo ">
<th style=\"width: ";
// line 144
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.', 144, $this->source); })()), "html", null, true);
echo "\">
<label>
Volver a presentarse:
</label>
</th>
<td>
<input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' ";
// line 150
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.', 150, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 150) && (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.', 150, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 150), "value", [], "any", false, false, false, 150) == "MISMO"))) {
echo "checked=\"true\"";
}
echo "> En este proceso
</td>
<td>
<input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' ";
// line 153
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.', 153, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 153) && (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.', 153, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 153), "value", [], "any", false, false, false, 153) == "PROXIMO"))) {
echo "checked=\"true\"";
}
echo "> Próximo proceso
</td>
<td>
<input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' ";
// line 156
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.', 156, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 156) && (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.', 156, $this->source); })()), "volverPresentarse", [], "any", false, false, false, 156), "value", [], "any", false, false, false, 156) == "NUNCA"))) {
echo "checked=\"true\"";
}
echo "> Nunca
</td>
</tr>
";
} else {
// line 160
echo " <tr id='trVolver' ";
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.', 160, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 160) != false)) {
echo "class='hide'";
}
echo ">
<th style=\"width: ";
// line 161
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.', 161, $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>
";
}
// line 177
echo " </table>
</form>
";
}
// line 180
echo " </div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 189
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 190
echo " <div class=\"row\">
<div class=\"col-xs-4\">
<center>
";
// line 193
$this->displayBlock('action_retorno', $context, $blocks);
// line 198
echo "
</center>
</div>
";
// line 201
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.', 201, $this->source); })()), "unidadMilitar", [], "any", false, false, false, 201)) {
echo "
<div class=\"col-xs-4 forChanges\">
<center>
<a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Guardar validación</a>
</center>
</div>
";
// line 207
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.', 207, $this->source); })()), "fechaResultado", [], "any", false, false, false, 207) || 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.', 207, $this->source); })()), "certificadoVacunacionOk", [], "any", false, false, false, 207))) {
echo "
<div class=\"col-xs-4 forChanges\">
<center>
<a id=\"botonImprimir\" target=\"_blank\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
// line 210
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.', 210, $this->source); })()), "id", [], "any", false, false, false, 210)]), "html", null, true);
echo "\">Imprimir resultado</a>
</center>
</div>
";
}
// line 213
echo "
";
}
// line 214
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 193
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 194
echo " ";
// line 195
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.', 195, $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.', 195, $this->source); })()), "id", [], "any", false, false, false, 195), "from" => "show"]), "html", null, true);
echo "\">
";
// line 196
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
// line 197
echo " </a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "ReclutaProceso\\showVacunacion.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 501 => 197, 499 => 196, 494 => 195, 492 => 194, 482 => 193, 470 => 214, 466 => 213, 459 => 210, 453 => 207, 444 => 201, 439 => 198, 437 => 193, 432 => 190, 422 => 189, 407 => 180, 402 => 177, 383 => 161, 376 => 160, 367 => 156, 359 => 153, 351 => 150, 342 => 144, 335 => 143, 333 => 142, 321 => 133, 315 => 132, 307 => 129, 300 => 127, 291 => 121, 285 => 118, 280 => 117, 278 => 116, 253 => 102, 233 => 97, 221 => 185, 219 => 102, 214 => 100, 210 => 98, 208 => 97, 205 => 96, 195 => 95, 179 => 87, 169 => 86, 137 => 63, 74 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"ReclutaProceso/show.html.twig\" %}
{% block jquery %}
{{ parent() }}
<script type=\"text/javascript\">
\$(function()
{
\$(\".resultado\").unbind('click');
\$(\".resultado\").click(function(e){
if (\$('#certificadoIdoneo').prop('checked'))
{
\$('#trObservaciones').addClass('hide');
\$('#trVolver').addClass('hide');
}
else
{
\$('#trObservaciones').removeClass('hide');
\$('#trVolver').removeClass('hide');
}
});
\$(\"#botonTerminar\").unbind('click');
\$(\"#botonTerminar\").click(function(e){
e.preventDefault();
var ok=true;
var msg='';
if (!\$('#certificadoIdoneo').prop('checked') && !\$('#certificadoNoIdoneo').prop('checked'))
{
ok = false;
msg = 'Debe indicar un resultado de la validación del certificado de vacunación.';
}
else
{
if (\$('#certificadoNoIdoneo').prop('checked'))
{
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';
}
}
}
}
if (ok)
{
\$('#divResultado').mask(' Actualizando información...');
\$('#form_resultado_vacunacion').ajaxSubmit({
type: \$('#form_resultado_vacunacion').attr('method'),
url: \$('#form_resultado_vacunacion').attr('action'),
dataType: 'json',
data: { _xml_http_request: true },
success: function(data) {
if (data.ok)
{
document.location.href='{{ path('crud_index', {'routeClassName': routeClassName}) }}';
}
else
{
\$('#divResultado').unmask();
showError(bootbox, data.msg);
}
}
})
}
else
{
showError(bootbox, msg);
}
});
\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>
Validación del Certificado de Vacunación
</h4>
</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})) }}
{% 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>
Certificado válido
</a>
</h4>
</div>
<div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
<div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
<div class=\"row\">
<div class=\"col-xs-12\">
{% if not entity.unidadMilitar %}
<form id='form_resultado_vacunacion' method='post' action='{{ path('aspirante_salvar_vacunacion') }}'>
<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='certificadoIdoneo' name='resultado[resultado]' value='valido' {% if entity.certificadoVacunacionOk %}checked=\"true\"{% endif %}> Válido
<input type='radio' class='resultado' id='certificadoNoIdoneo' name='resultado[resultado]' value='no_valido' {% if entity.certificadoVacunacionOk==false %}checked=\"true\"{% endif %}> No válido
</td>
</tr>
<tr id='trObservaciones' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
<th style=\"width: {{ widthLabel }}\">
<label>
Observaciones:
</label>
</th>
<td colspan='3'>
<textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
</td>
</tr>
{% if entity.volverPresentarse %}
<tr id='trVolver' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
<th style=\"width: {{ widthLabel }}\">
<label>
Volver a presentarse:
</label>
</th>
<td>
<input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' {% if entity.volverPresentarse and entity.volverPresentarse.value=='MISMO' %}checked=\"true\"{% endif %}> En este proceso
</td>
<td>
<input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' {% if entity.volverPresentarse and entity.volverPresentarse.value=='PROXIMO' %}checked=\"true\"{% endif %}> Próximo proceso
</td>
<td>
<input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' {% if entity.volverPresentarse and entity.volverPresentarse.value=='NUNCA' %}checked=\"true\"{% endif %}> Nunca
</td>
</tr>
{% else%}
<tr id='trVolver' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
<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>
{% endif %}
</table>
</form>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock more_seccion %}
{% endblock %}
{% block actions %}
<div class=\"row\">
<div class=\"col-xs-4\">
<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.unidadMilitar %}
<div class=\"col-xs-4 forChanges\">
<center>
<a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Guardar validación</a>
</center>
</div>
{% if entity.fechaResultado or entity.certificadoVacunacionOk %}
<div class=\"col-xs-4 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 %}
{% endif %}
</div>
{% endblock %}
", "ReclutaProceso\\showVacunacion.html.twig", "/data/produccion/integral/src/templates/ReclutaProceso/showVacunacion.html.twig");
}
}