var/cache/dev/twig/21/2192f8c7e3dbeaf698cf5d14e517c8ab.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* ReclutaProceso\showVacunacion.html.twig */
  14. class __TwigTemplate_d76244a867f6d3931afb239820ac4304 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'jquery' => [$this'block_jquery'],
  24.             'principal_heading' => [$this'block_principal_heading'],
  25.             'showdata' => [$this'block_showdata'],
  26.             'prev_acuartelamiento' => [$this'block_prev_acuartelamiento'],
  27.             'more_seccion' => [$this'block_more_seccion'],
  28.             'actions' => [$this'block_actions'],
  29.             'action_retorno' => [$this'block_action_retorno'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "ReclutaProceso/show.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ReclutaProceso\\showVacunacion.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ReclutaProceso\\showVacunacion.html.twig"));
  44.         $this->parent $this->loadTemplate("ReclutaProceso/show.html.twig""ReclutaProceso\\showVacunacion.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_jquery($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""jquery"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""jquery"));
  59.         // line 4
  60.         echo "    ";
  61.         $this->displayParentBlock("jquery"$context$blocks);
  62.         echo "
  63.     <script type=\"text/javascript\">
  64.         \$(function()
  65.         {
  66.             \$(\".resultado\").unbind('click');
  67.             \$(\".resultado\").click(function(e){
  68.                 if (\$('#certificadoIdoneo').prop('checked'))
  69.                 {
  70.                     \$('#trObservaciones').addClass('hide');
  71.                     \$('#trVolver').addClass('hide');
  72.                 }
  73.                 else
  74.                 {
  75.                     \$('#trObservaciones').removeClass('hide');
  76.                     \$('#trVolver').removeClass('hide');
  77.                 }
  78.             });        
  79.             \$(\"#botonTerminar\").unbind('click');
  80.             \$(\"#botonTerminar\").click(function(e){
  81.                 e.preventDefault();
  82.                 var ok=true;
  83.                 var msg='';
  84.                 if (!\$('#certificadoIdoneo').prop('checked') && !\$('#certificadoNoIdoneo').prop('checked'))
  85.                 {
  86.                     ok = false;
  87.                     msg = 'Debe indicar un resultado de la validación del certificado de vacunación.';
  88.                 }
  89.                 else
  90.                 {
  91.                     if (\$('#certificadoNoIdoneo').prop('checked'))
  92.                     {
  93.                         if (!\$('#observaciones').val())
  94.                         {
  95.                             ok=false;
  96.                             msg = 'Debe indicar las observaciones acerca del rechazo';
  97.                         }
  98.                         else
  99.                         {
  100.                             if (!(\$('#volverEste').prop('checked') || \$('#volverProximo').prop('checked') || \$('#volverNunca').prop('checked')))
  101.                             {
  102.                                 ok=false;
  103.                                 msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
  104.                             }
  105.                         }
  106.                     }
  107.                 }
  108.                 if (ok)
  109.                 {
  110.                     \$('#divResultado').mask('&nbsp;&nbsp;&nbsp;&nbsp;Actualizando información...');
  111.                     \$('#form_resultado_vacunacion').ajaxSubmit({
  112.                         type: \$('#form_resultado_vacunacion').attr('method'),
  113.                         url: \$('#form_resultado_vacunacion').attr('action'),
  114.                         dataType: 'json',
  115.                         data: { _xml_http_request: true },
  116.                         success: function(data) {
  117.                             if (data.ok)
  118.                             {  
  119.                                 document.location.href='";
  120.         // line 63
  121.         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"nulltrue);
  122.         echo "';
  123.                             }
  124.                             else
  125.                             {
  126.                                 \$('#divResultado').unmask();
  127.                                 showError(bootbox, data.msg);
  128.                             }
  129.                         }
  130.                     })
  131.                 }
  132.                 else
  133.                 {
  134.                     showError(bootbox, msg);
  135.                 }
  136.             }); 
  137. \t\t
  138.         });
  139. \t\t
  140.     </script>    
  141.     
  142. ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     // line 86
  149.     public function block_principal_heading($context, array $blocks = [])
  150.     {
  151.         $macros $this->macros;
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""principal_heading"));
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""principal_heading"));
  156.         // line 87
  157.         echo "    <div class=\"widget-header widget-header-flat\">
  158.         <h4 class=\"widget-title lighter\">
  159.             <i class=\"fas fa-search orange\"></i>
  160.             Validación del Certificado de Vacunación
  161.         </h4>
  162.     </div>
  163. ";
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.     }
  169.     // line 95
  170.     public function block_showdata($context, array $blocks = [])
  171.     {
  172.         $macros $this->macros;
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""showdata"));
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""showdata"));
  177.         // line 96
  178.         echo "    
  179.     ";
  180.         // line 97
  181.         $this->displayBlock('prev_acuartelamiento'$context$blocks);
  182.         // line 98
  183.         echo 
  184.                         
  185.     ";
  186.         // line 100
  187.         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"falsefalsefalse100), "parentRouteClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName"$context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.'100$this->source); })())]));
  188.         echo "
  189.     ";
  190.         // line 102
  191.         $this->displayBlock('more_seccion'$context$blocks);
  192.         // line 185
  193.         echo "        
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.     }
  200.     // line 97
  201.     public function block_prev_acuartelamiento($context, array $blocks = [])
  202.     {
  203.         $macros $this->macros;
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""prev_acuartelamiento"));
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""prev_acuartelamiento"));
  208.         echo "        
  209.     ";
  210.         
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  212.         
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  214.     }
  215.     // line 102
  216.     public function block_more_seccion($context, array $blocks = [])
  217.     {
  218.         $macros $this->macros;
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""more_seccion"));
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""more_seccion"));
  223.         echo "        
  224.         <div class=\"panel panel-default\">
  225.             <div class=\"panel-heading\">
  226.                 <h4 class=\"panel-title green\">
  227.                     <a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosPersonales\">
  228.                         <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>
  229.                         &nbsp;Certificado válido
  230.                     </a>
  231.                 </h4>
  232.             </div>
  233.             <div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
  234.                 <div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
  235.                     <div class=\"row\">
  236.                         <div class=\"col-xs-12\">
  237.                             ";
  238.         // line 116
  239.         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"falsefalsefalse116)) {
  240.             // line 117
  241.             echo "                                <form id='form_resultado_vacunacion' method='post' action='";
  242.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aspirante_salvar_vacunacion");
  243.             echo "'>
  244.                                     <input type='hidden' name='resultado[reclutaProceso]' value='";
  245.             // line 118
  246.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse118), "html"nulltrue);
  247.             echo "'>
  248.                                     <table class=\"table table-striped table-bordered table-hover\">
  249.                                         <tr>
  250.                                             <th style=\"width: ";
  251.             // line 121
  252.             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"nulltrue);
  253.             echo "\">
  254.                                                 <label>
  255.                                                     Resultado:
  256.                                                 </label>
  257.                                             </th>
  258.                                             <td colspan='3'>
  259.                                                 <input type='radio' class='resultado' id='certificadoIdoneo' name='resultado[resultado]' value='valido' ";
  260.             // line 127
  261.             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"falsefalsefalse127)) {
  262.                 echo "checked=\"true\"";
  263.             }
  264.             echo ">&nbsp;&nbsp;Válido
  265.                                                 &nbsp;&nbsp;&nbsp;&nbsp;
  266.                                                 <input type='radio' class='resultado' id='certificadoNoIdoneo' name='resultado[resultado]' value='no_valido' ";
  267.             // line 129
  268.             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"falsefalsefalse129) == false)) {
  269.                 echo "checked=\"true\"";
  270.             }
  271.             echo ">&nbsp;&nbsp;No válido
  272.                                             </td>
  273.                                         </tr>
  274.                                         <tr id='trObservaciones' ";
  275.             // line 132
  276.             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"falsefalsefalse132) != false)) {
  277.                 echo "class='hide'";
  278.             }
  279.             echo ">
  280.                                             <th style=\"width: ";
  281.             // line 133
  282.             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"nulltrue);
  283.             echo "\">
  284.                                                 <label>
  285.                                                     Observaciones:
  286.                                                 </label>
  287.                                             </th>
  288.                                             <td colspan='3'>
  289.                                                 <textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
  290.                                             </td>
  291.                                         </tr>
  292.                                         ";
  293.             // line 142
  294.             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"falsefalsefalse142)) {
  295.                 // line 143
  296.                 echo "                                        <tr id='trVolver' ";
  297.                 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"falsefalsefalse143) != false)) {
  298.                     echo "class='hide'";
  299.                 }
  300.                 echo ">
  301.                                             <th style=\"width: ";
  302.                 // line 144
  303.                 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"nulltrue);
  304.                 echo "\">
  305.                                                 <label>
  306.                                                     Volver a presentarse:
  307.                                                 </label>
  308.                                             </th>
  309.                                             <td>
  310.                                                 <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' ";
  311.                 // line 150
  312.                 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"falsefalsefalse150) && (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse150), "value", [], "any"falsefalsefalse150) == "MISMO"))) {
  313.                     echo "checked=\"true\"";
  314.                 }
  315.                 echo ">&nbsp;&nbsp;En este proceso
  316.                                             </td>
  317.                                             <td>
  318.                                                 <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' ";
  319.                 // line 153
  320.                 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"falsefalsefalse153) && (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse153), "value", [], "any"falsefalsefalse153) == "PROXIMO"))) {
  321.                     echo "checked=\"true\"";
  322.                 }
  323.                 echo ">&nbsp;&nbsp;Próximo proceso
  324.                                             </td>
  325.                                             <td>
  326.                                                 <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' ";
  327.                 // line 156
  328.                 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"falsefalsefalse156) && (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse156), "value", [], "any"falsefalsefalse156) == "NUNCA"))) {
  329.                     echo "checked=\"true\"";
  330.                 }
  331.                 echo ">&nbsp;&nbsp;Nunca
  332.                                             </td>
  333.                                         </tr>
  334.                                         ";
  335.             } else {
  336.                 // line 160
  337.                 echo "                                             <tr id='trVolver' ";
  338.                 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"falsefalsefalse160) != false)) {
  339.                     echo "class='hide'";
  340.                 }
  341.                 echo ">
  342.                                             <th style=\"width: ";
  343.                 // line 161
  344.                 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"nulltrue);
  345.                 echo "\">
  346.                                                 <label>
  347.                                                     Volver a presentarse:
  348.                                                 </label>
  349.                                             </th>
  350.                                             <td>
  351.                                                 <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' >&nbsp;&nbsp;En este proceso
  352.                                             </td>
  353.                                             <td>
  354.                                                 <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' >&nbsp;&nbsp;Próximo proceso
  355.                                             </td>
  356.                                             <td>
  357.                                                 <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' >&nbsp;&nbsp;Nunca
  358.                                             </td>
  359.                                         </tr>
  360.                                         ";
  361.             }
  362.             // line 177
  363.             echo "                                    </table>
  364.                                 </form>
  365.                             ";
  366.         }
  367.         // line 180
  368.         echo "                        </div>
  369.                     </div>
  370.                 </div>
  371.             </div>
  372.         </div>
  373.     ";
  374.         
  375.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  376.         
  377.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  378.     }
  379.     // line 189
  380.     public function block_actions($context, array $blocks = [])
  381.     {
  382.         $macros $this->macros;
  383.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  384.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  385.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  386.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  387.         // line 190
  388.         echo "    <div class=\"row\">
  389.         <div class=\"col-xs-4\">
  390.             <center>
  391.                 ";
  392.         // line 193
  393.         $this->displayBlock('action_retorno'$context$blocks);
  394.         // line 198
  395.         echo 
  396.             </center>
  397.         </div>   
  398.        ";
  399.         // line 201
  400.         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"falsefalsefalse201)) {
  401.             echo 
  402.             <div class=\"col-xs-4 forChanges\">
  403.                 <center>
  404.                     <a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Guardar validación</a>
  405.                 </center>
  406.             </div>    
  407.             ";
  408.             // line 207
  409.             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"falsefalsefalse207) || 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"falsefalsefalse207))) {
  410.                 echo "       
  411.                <div class=\"col-xs-4 forChanges\">
  412.                     <center>
  413.                         <a id=\"botonImprimir\"  target=\"_blank\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
  414.                 // line 210
  415.                 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"falsefalsefalse210)]), "html"nulltrue);
  416.                 echo "\">Imprimir resultado</a>
  417.                     </center>
  418.                 </div>    
  419.             ";
  420.             }
  421.             // line 213
  422.             echo "            
  423.         ";
  424.         }
  425.         // line 214
  426.         echo "            
  427.     </div>
  428. ";
  429.         
  430.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  431.         
  432.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  433.     }
  434.     // line 193
  435.     public function block_action_retorno($context, array $blocks = [])
  436.     {
  437.         $macros $this->macros;
  438.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  439.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""action_retorno"));
  440.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  441.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""action_retorno"));
  442.         // line 194
  443.         echo "                    ";
  444.         // line 195
  445.         echo "                    <a class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
  446.         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"falsefalsefalse195), "from" => "show"]), "html"nulltrue);
  447.         echo "\">
  448.                         ";
  449.         // line 196
  450.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
  451.         // line 197
  452.         echo "                    </a>
  453.                 ";
  454.         
  455.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  456.         
  457.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  458.     }
  459.     public function getTemplateName()
  460.     {
  461.         return "ReclutaProceso\\showVacunacion.html.twig";
  462.     }
  463.     public function isTraitable()
  464.     {
  465.         return false;
  466.     }
  467.     public function getDebugInfo()
  468.     {
  469.         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,);
  470.     }
  471.     public function getSourceContext()
  472.     {
  473.         return new Source("{% extends \"ReclutaProceso/show.html.twig\" %}
  474. {% block jquery %}
  475.     {{ parent() }}
  476.     <script type=\"text/javascript\">
  477.         \$(function()
  478.         {
  479.             \$(\".resultado\").unbind('click');
  480.             \$(\".resultado\").click(function(e){
  481.                 if (\$('#certificadoIdoneo').prop('checked'))
  482.                 {
  483.                     \$('#trObservaciones').addClass('hide');
  484.                     \$('#trVolver').addClass('hide');
  485.                 }
  486.                 else
  487.                 {
  488.                     \$('#trObservaciones').removeClass('hide');
  489.                     \$('#trVolver').removeClass('hide');
  490.                 }
  491.             });        
  492.             \$(\"#botonTerminar\").unbind('click');
  493.             \$(\"#botonTerminar\").click(function(e){
  494.                 e.preventDefault();
  495.                 var ok=true;
  496.                 var msg='';
  497.                 if (!\$('#certificadoIdoneo').prop('checked') && !\$('#certificadoNoIdoneo').prop('checked'))
  498.                 {
  499.                     ok = false;
  500.                     msg = 'Debe indicar un resultado de la validación del certificado de vacunación.';
  501.                 }
  502.                 else
  503.                 {
  504.                     if (\$('#certificadoNoIdoneo').prop('checked'))
  505.                     {
  506.                         if (!\$('#observaciones').val())
  507.                         {
  508.                             ok=false;
  509.                             msg = 'Debe indicar las observaciones acerca del rechazo';
  510.                         }
  511.                         else
  512.                         {
  513.                             if (!(\$('#volverEste').prop('checked') || \$('#volverProximo').prop('checked') || \$('#volverNunca').prop('checked')))
  514.                             {
  515.                                 ok=false;
  516.                                 msg = 'Debe indicar cuando el aspirante puede volver a presentarse';
  517.                             }
  518.                         }
  519.                     }
  520.                 }
  521.                 if (ok)
  522.                 {
  523.                     \$('#divResultado').mask('&nbsp;&nbsp;&nbsp;&nbsp;Actualizando información...');
  524.                     \$('#form_resultado_vacunacion').ajaxSubmit({
  525.                         type: \$('#form_resultado_vacunacion').attr('method'),
  526.                         url: \$('#form_resultado_vacunacion').attr('action'),
  527.                         dataType: 'json',
  528.                         data: { _xml_http_request: true },
  529.                         success: function(data) {
  530.                             if (data.ok)
  531.                             {  
  532.                                 document.location.href='{{ path('crud_index', {'routeClassName': routeClassName}) }}';
  533.                             }
  534.                             else
  535.                             {
  536.                                 \$('#divResultado').unmask();
  537.                                 showError(bootbox, data.msg);
  538.                             }
  539.                         }
  540.                     })
  541.                 }
  542.                 else
  543.                 {
  544.                     showError(bootbox, msg);
  545.                 }
  546.             }); 
  547. \t\t
  548.         });
  549. \t\t
  550.     </script>    
  551.     
  552. {% endblock %}
  553. {% block principal_heading %}
  554.     <div class=\"widget-header widget-header-flat\">
  555.         <h4 class=\"widget-title lighter\">
  556.             <i class=\"fas fa-search orange\"></i>
  557.             Validación del Certificado de Vacunación
  558.         </h4>
  559.     </div>
  560. {% endblock %}
  561. {% block showdata %}
  562.     
  563.     {% block prev_acuartelamiento %}        
  564.     {% endblock prev_acuartelamiento %} 
  565.                         
  566.     {{ render(controller('App\\\\Crud\\\\Controller\\\\crudPlainController::showAction', {'rol': rol, 'routeClassName':'recluta', 'id':entity.recluta, 'parentRouteClassName':routeClassName})) }}
  567.     {% block more_seccion %}        
  568.         <div class=\"panel panel-default\">
  569.             <div class=\"panel-heading\">
  570.                 <h4 class=\"panel-title green\">
  571.                     <a id=\"atab-1\" aria-expanded=\"true\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#datosPersonales\">
  572.                         <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>
  573.                         &nbsp;Certificado válido
  574.                     </a>
  575.                 </h4>
  576.             </div>
  577.             <div style=\"\" aria-expanded=\"true\" class=\"panel-collapse collapse in \" id=\"datosPersonales\">
  578.                 <div id=\"divResultado\" class=\"panel-body\" style=\"border-width: 1px; border-color: red\">
  579.                     <div class=\"row\">
  580.                         <div class=\"col-xs-12\">
  581.                             {% if not entity.unidadMilitar %}
  582.                                 <form id='form_resultado_vacunacion' method='post' action='{{ path('aspirante_salvar_vacunacion') }}'>
  583.                                     <input type='hidden' name='resultado[reclutaProceso]' value='{{ entity.id }}'>
  584.                                     <table class=\"table table-striped table-bordered table-hover\">
  585.                                         <tr>
  586.                                             <th style=\"width: {{ widthLabel }}\">
  587.                                                 <label>
  588.                                                     Resultado:
  589.                                                 </label>
  590.                                             </th>
  591.                                             <td colspan='3'>
  592.                                                 <input type='radio' class='resultado' id='certificadoIdoneo' name='resultado[resultado]' value='valido' {% if entity.certificadoVacunacionOk %}checked=\"true\"{% endif %}>&nbsp;&nbsp;Válido
  593.                                                 &nbsp;&nbsp;&nbsp;&nbsp;
  594.                                                 <input type='radio' class='resultado' id='certificadoNoIdoneo' name='resultado[resultado]' value='no_valido' {% if entity.certificadoVacunacionOk==false %}checked=\"true\"{% endif %}>&nbsp;&nbsp;No válido
  595.                                             </td>
  596.                                         </tr>
  597.                                         <tr id='trObservaciones' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
  598.                                             <th style=\"width: {{ widthLabel }}\">
  599.                                                 <label>
  600.                                                     Observaciones:
  601.                                                 </label>
  602.                                             </th>
  603.                                             <td colspan='3'>
  604.                                                 <textarea id='observaciones' name='resultado[observaciones]' style='width: 100%'></textarea>
  605.                                             </td>
  606.                                         </tr>
  607.                                         {% if entity.volverPresentarse %}
  608.                                         <tr id='trVolver' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
  609.                                             <th style=\"width: {{ widthLabel }}\">
  610.                                                 <label>
  611.                                                     Volver a presentarse:
  612.                                                 </label>
  613.                                             </th>
  614.                                             <td>
  615.                                                 <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' {% if entity.volverPresentarse and entity.volverPresentarse.value=='MISMO' %}checked=\"true\"{% endif %}>&nbsp;&nbsp;En este proceso
  616.                                             </td>
  617.                                             <td>
  618.                                                 <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' {% if entity.volverPresentarse and entity.volverPresentarse.value=='PROXIMO' %}checked=\"true\"{% endif %}>&nbsp;&nbsp;Próximo proceso
  619.                                             </td>
  620.                                             <td>
  621.                                                 <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' {% if entity.volverPresentarse and entity.volverPresentarse.value=='NUNCA' %}checked=\"true\"{% endif %}>&nbsp;&nbsp;Nunca
  622.                                             </td>
  623.                                         </tr>
  624.                                         {% else%}
  625.                                              <tr id='trVolver' {% if entity.certificadoVacunacionOk!=false %}class='hide'{% endif %}>
  626.                                             <th style=\"width: {{ widthLabel }}\">
  627.                                                 <label>
  628.                                                     Volver a presentarse:
  629.                                                 </label>
  630.                                             </th>
  631.                                             <td>
  632.                                                 <input type='radio' id='volverEste' name='resultado[volver]' value='MISMO' >&nbsp;&nbsp;En este proceso
  633.                                             </td>
  634.                                             <td>
  635.                                                 <input type='radio' id='volverProximo' name='resultado[volver]' value='PROXIMO' >&nbsp;&nbsp;Próximo proceso
  636.                                             </td>
  637.                                             <td>
  638.                                                 <input type='radio' id='volverNunca' name='resultado[volver]' value='NUNCA' >&nbsp;&nbsp;Nunca
  639.                                             </td>
  640.                                         </tr>
  641.                                         {% endif %}
  642.                                     </table>
  643.                                 </form>
  644.                             {% endif %}
  645.                         </div>
  646.                     </div>
  647.                 </div>
  648.             </div>
  649.         </div>
  650.     {% endblock more_seccion %}        
  651. {% endblock %} 
  652. {% block actions %}
  653.     <div class=\"row\">
  654.         <div class=\"col-xs-4\">
  655.             <center>
  656.                 {% block action_retorno %}
  657.                     {#<a class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('crud_index', {'routeClassName': routeClassName}) }}\">#}
  658.                     <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'}) }}\">
  659.                         {% trans from 'crud' %}botones.regresar{% endtrans %}
  660.                     </a>
  661.                 {% endblock %} 
  662.             </center>
  663.         </div>   
  664.        {% if not entity.unidadMilitar  %} 
  665.             <div class=\"col-xs-4 forChanges\">
  666.                 <center>
  667.                     <a id=\"botonTerminar\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"\">Guardar validación</a>
  668.                 </center>
  669.             </div>    
  670.             {% if  entity.fechaResultado or entity.certificadoVacunacionOk  %}       
  671.                <div class=\"col-xs-4 forChanges\">
  672.                     <center>
  673.                         <a id=\"botonImprimir\"  target=\"_blank\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('imprimirFichaProceso', {'idReclutaProceso': entity.id }) }}\">Imprimir resultado</a>
  674.                     </center>
  675.                 </div>    
  676.             {% endif %}            
  677.         {% endif %}            
  678.     </div>
  679. {% endblock %}
  680. ""ReclutaProceso\\showVacunacion.html.twig""/data/produccion/integral/src/templates/ReclutaProceso/showVacunacion.html.twig");
  681.     }
  682. }