var/cache/dev/twig/39/393d7ef5f1e35972297011f5f460a95e.php line 200

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. /* ProcesoReclutamiento\basesCentrosUnidades.html.twig */
  14. class __TwigTemplate_5645f24581777fb9cf4ee93e76fee957 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProcesoReclutamiento\\basesCentrosUnidades.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProcesoReclutamiento\\basesCentrosUnidades.html.twig"));
  33.         // line 1
  34.         echo "                            
  35. <table class=\"table table-striped table-bordered table-hover\">
  36.     <tr>
  37.         <th>
  38.             Base movilización
  39.             <select id=\"base_select\">
  40.                 <option id=\"base_option_sel\" value=\"\">Adicionar base</option>
  41.                 ";
  42.         // line 8
  43.         $context['_parent'] = $context;
  44.         $context['_seq'] = twig_ensure_traversable((isset($context["bases"]) || array_key_exists("bases"$context) ? $context["bases"] : (function () { throw new RuntimeError('Variable "bases" does not exist.'8$this->source); })()));
  45.         foreach ($context['_seq'] as $context["_key"] => $context["base"]) {
  46.             // line 9
  47.             echo "                    <option id=\"base_option_";
  48.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["base"], "id", [], "any"falsefalsefalse9), "html"nulltrue);
  49.             echo "\" value=\"";
  50.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["base"], "id", [], "any"falsefalsefalse9), "html"nulltrue);
  51.             echo "\" class=\"";
  52.             if (twig_get_attribute($this->env$this->source, ($context["basesEnProceso"] ?? null), twig_get_attribute($this->env$this->source$context["base"], "id", [], "any"falsefalsefalse9), [], "array"truetruefalse9)) {
  53.                 echo "hide";
  54.             }
  55.             echo "\">";
  56.             echo twig_escape_filter($this->env$context["base"], "html"nulltrue);
  57.             echo "</option>
  58.                 ";
  59.         }
  60.         $_parent $context['_parent'];
  61.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['base'], $context['_parent'], $context['loop']);
  62.         $context array_intersect_key($context$_parent) + $_parent;
  63.         // line 11
  64.         echo "            </select>
  65.         </th>
  66.         <th>
  67.             Lugar de presentación
  68.             <span id='lugar_select' class='hide'>
  69.                 <select>
  70.                     <option id=\"lugar_option_sel\" value=\"\">Adicionar lugar</option>
  71.                     ";
  72.         // line 18
  73.         $context['_parent'] = $context;
  74.         $context['_seq'] = twig_ensure_traversable((isset($context["lugares"]) || array_key_exists("lugares"$context) ? $context["lugares"] : (function () { throw new RuntimeError('Variable "lugares" does not exist.'18$this->source); })()));
  75.         foreach ($context['_seq'] as $context["_key"] => $context["lugar"]) {
  76.             // line 19
  77.             echo "                        <option  value=\"";
  78.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lugar"], "id", [], "any"falsefalsefalse19), "html"nulltrue);
  79.             echo "\" class=\"lugar_option_";
  80.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lugar"], "id", [], "any"falsefalsefalse19), "html"nulltrue);
  81.             echo " ";
  82.             if (twig_get_attribute($this->env$this->source, ($context["lugaresEnProceso"] ?? null), twig_get_attribute($this->env$this->source$context["lugar"], "id", [], "any"falsefalsefalse19), [], "array"truetruefalse19)) {
  83.                 echo "hide";
  84.             }
  85.             echo "\">";
  86.             echo twig_escape_filter($this->env$context["lugar"], "html"nulltrue);
  87.             echo "</option>
  88.                     ";
  89.         }
  90.         $_parent $context['_parent'];
  91.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lugar'], $context['_parent'], $context['loop']);
  92.         $context array_intersect_key($context$_parent) + $_parent;
  93.         // line 21
  94.         echo "                </select>
  95.             </span>
  96.         </th>
  97.         <th>
  98.             Unidad militar
  99.             <span id='unidad_select' class='hide'>
  100.                 <select>
  101.                     <option value=\"\">Adicionar unidad</option>
  102.                     ";
  103.         // line 29
  104.         $context['_parent'] = $context;
  105.         $context['_seq'] = twig_ensure_traversable((isset($context["unidades"]) || array_key_exists("unidades"$context) ? $context["unidades"] : (function () { throw new RuntimeError('Variable "unidades" does not exist.'29$this->source); })()));
  106.         foreach ($context['_seq'] as $context["_key"] => $context["unidad"]) {
  107.             // line 30
  108.             echo "                        <option  value=\"";
  109.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["unidad"], "id", [], "any"falsefalsefalse30), "html"nulltrue);
  110.             echo "\" class=\"unidad_option_";
  111.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["unidad"], "id", [], "any"falsefalsefalse30), "html"nulltrue);
  112.             echo " ";
  113.             if (twig_get_attribute($this->env$this->source, ($context["unidadesEnProceso"] ?? null), twig_get_attribute($this->env$this->source$context["unidad"], "id", [], "any"falsefalsefalse30), [], "array"truetruefalse30)) {
  114.                 echo "hide";
  115.             }
  116.             echo "\">";
  117.             echo twig_escape_filter($this->env$context["unidad"], "html"nulltrue);
  118.             echo "</option>
  119.                     ";
  120.         }
  121.         $_parent $context['_parent'];
  122.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['unidad'], $context['_parent'], $context['loop']);
  123.         $context array_intersect_key($context$_parent) + $_parent;
  124.         // line 32
  125.         echo "                </select>
  126.             </span>
  127.         </th>
  128.         <th>
  129.             Jefe
  130.         </th>
  131.         <th>
  132.             Prioridad para asignación
  133.         </th>
  134.         <th>
  135.             Cupo masculino
  136.         </th>
  137.         <th>
  138.             % adicional cupo masculino
  139.         </th>
  140.         <th>
  141.             Cupo femenino
  142.         </th>
  143.         <th>
  144.             % adicional cupo femenino
  145.         </th>
  146.     </tr>
  147.     ";
  148.         // line 54
  149.         if (array_key_exists("elementosUsados"$context)) {
  150.             // line 55
  151.             echo "        ";
  152.             $context['_parent'] = $context;
  153.             $context['_seq'] = twig_ensure_traversable((isset($context["elementosUsados"]) || array_key_exists("elementosUsados"$context) ? $context["elementosUsados"] : (function () { throw new RuntimeError('Variable "elementosUsados" does not exist.'55$this->source); })()));
  154.             $context['loop'] = [
  155.               'parent' => $context['_parent'],
  156.               'index0' => 0,
  157.               'index'  => 1,
  158.               'first'  => true,
  159.             ];
  160.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  161.                 $length count($context['_seq']);
  162.                 $context['loop']['revindex0'] = $length 1;
  163.                 $context['loop']['revindex'] = $length;
  164.                 $context['loop']['length'] = $length;
  165.                 $context['loop']['last'] = === $length;
  166.             }
  167.             foreach ($context['_seq'] as $context["baseId"] => $context["valoresBase"]) {
  168.                 // line 56
  169.                 echo "            ";
  170.                 $this->loadTemplate("ProcesoReclutamiento\\tr_baseMovilizacion.html.twig""ProcesoReclutamiento\\basesCentrosUnidades.html.twig"56)->display(twig_array_merge($context, ["base" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["valoresBase"], "base", [], "array"falsefalsefalse56), "base", [], "any"falsefalsefalse56), "centros" => (isset($context["lugares"]) || array_key_exists("lugares"$context) ? $context["lugares"] : (function () { throw new RuntimeError('Variable "lugares" does not exist.'56$this->source); })()), "centrosUsados" => twig_get_attribute($this->env$this->source$context["valoresBase"], "centros", [], "array"falsefalsefalse56), "lugaresEnProceso" => (isset($context["lugaresEnProceso"]) || array_key_exists("lugaresEnProceso"$context) ? $context["lugaresEnProceso"] : (function () { throw new RuntimeError('Variable "lugaresEnProceso" does not exist.'56$this->source); })()), "baseUsada" => twig_get_attribute($this->env$this->source$context["valoresBase"], "base", [], "array"falsefalsefalse56), "canDelete" => twig_get_attribute($this->env$this->source$context["valoresBase"], "canDelete", [], "array"falsefalsefalse56)]));
  171.                 // line 57
  172.                 echo "            ";
  173.                 $context['_parent'] = $context;
  174.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["valoresBase"], "centros", [], "array"falsefalsefalse57));
  175.                 $context['loop'] = [
  176.                   'parent' => $context['_parent'],
  177.                   'index0' => 0,
  178.                   'index'  => 1,
  179.                   'first'  => true,
  180.                 ];
  181.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  182.                     $length count($context['_seq']);
  183.                     $context['loop']['revindex0'] = $length 1;
  184.                     $context['loop']['revindex'] = $length;
  185.                     $context['loop']['length'] = $length;
  186.                     $context['loop']['last'] = === $length;
  187.                 }
  188.                 foreach ($context['_seq'] as $context["_key"] => $context["valoresCentro"]) {
  189.                     // line 58
  190.                     echo "                ";
  191.                     $this->loadTemplate("ProcesoReclutamiento\\tr_centroMovilizacion.html.twig""ProcesoReclutamiento\\basesCentrosUnidades.html.twig"58)->display(twig_array_merge($context, ["baseId" => $context["baseId"], "centro" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["valoresCentro"], "centro", [], "array"falsefalsefalse58), "lugar", [], "any"falsefalsefalse58), "unidades" => (isset($context["unidades"]) || array_key_exists("unidades"$context) ? $context["unidades"] : (function () { throw new RuntimeError('Variable "unidades" does not exist.'58$this->source); })()), "unidadesUsadas" => twig_get_attribute($this->env$this->source$context["valoresCentro"], "unidades", [], "array"falsefalsefalse58), "unidadesEnProceso" => (isset($context["unidadesEnProceso"]) || array_key_exists("unidadesEnProceso"$context) ? $context["unidadesEnProceso"] : (function () { throw new RuntimeError('Variable "unidadesEnProceso" does not exist.'58$this->source); })()), "centroUsado" => twig_get_attribute($this->env$this->source$context["valoresCentro"], "centro", [], "array"falsefalsefalse58), "canDelete" => twig_get_attribute($this->env$this->source$context["valoresCentro"], "canDelete", [], "array"falsefalsefalse58)]));
  192.                     // line 59
  193.                     echo "            ";
  194.                     ++$context['loop']['index0'];
  195.                     ++$context['loop']['index'];
  196.                     $context['loop']['first'] = false;
  197.                     if (isset($context['loop']['length'])) {
  198.                         --$context['loop']['revindex0'];
  199.                         --$context['loop']['revindex'];
  200.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  201.                     }
  202.                 }
  203.                 $_parent $context['_parent'];
  204.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['valoresCentro'], $context['_parent'], $context['loop']);
  205.                 $context array_intersect_key($context$_parent) + $_parent;
  206.                 // line 60
  207.                 echo "        ";
  208.                 ++$context['loop']['index0'];
  209.                 ++$context['loop']['index'];
  210.                 $context['loop']['first'] = false;
  211.                 if (isset($context['loop']['length'])) {
  212.                     --$context['loop']['revindex0'];
  213.                     --$context['loop']['revindex'];
  214.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  215.                 }
  216.             }
  217.             $_parent $context['_parent'];
  218.             unset($context['_seq'], $context['_iterated'], $context['baseId'], $context['valoresBase'], $context['_parent'], $context['loop']);
  219.             $context array_intersect_key($context$_parent) + $_parent;
  220.             // line 61
  221.             echo "    ";
  222.         }
  223.         // line 62
  224.         echo "</table>
  225. ";
  226.         
  227.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.     }
  231.     public function getTemplateName()
  232.     {
  233.         return "ProcesoReclutamiento\\basesCentrosUnidades.html.twig";
  234.     }
  235.     public function isTraitable()
  236.     {
  237.         return false;
  238.     }
  239.     public function getDebugInfo()
  240.     {
  241.         return array (  233 => 62,  230 => 61,  216 => 60,  202 => 59,  199 => 58,  181 => 57,  178 => 56,  160 => 55,  158 => 54,  134 => 32,  117 => 30,  113 => 29,  103 => 21,  86 => 19,  82 => 18,  73 => 11,  56 => 9,  52 => 8,  43 => 1,);
  242.     }
  243.     public function getSourceContext()
  244.     {
  245.         return new Source("                            
  246. <table class=\"table table-striped table-bordered table-hover\">
  247.     <tr>
  248.         <th>
  249.             Base movilización
  250.             <select id=\"base_select\">
  251.                 <option id=\"base_option_sel\" value=\"\">Adicionar base</option>
  252.                 {% for base in bases %}
  253.                     <option id=\"base_option_{{ base.id }}\" value=\"{{ base.id }}\" class=\"{% if basesEnProceso[base.id] is defined %}hide{% endif %}\">{{ base }}</option>
  254.                 {% endfor %}
  255.             </select>
  256.         </th>
  257.         <th>
  258.             Lugar de presentación
  259.             <span id='lugar_select' class='hide'>
  260.                 <select>
  261.                     <option id=\"lugar_option_sel\" value=\"\">Adicionar lugar</option>
  262.                     {% for lugar in lugares %}
  263.                         <option  value=\"{{ lugar.id }}\" class=\"lugar_option_{{ lugar.id }} {% if lugaresEnProceso[lugar.id] is defined %}hide{% endif %}\">{{ lugar }}</option>
  264.                     {% endfor %}
  265.                 </select>
  266.             </span>
  267.         </th>
  268.         <th>
  269.             Unidad militar
  270.             <span id='unidad_select' class='hide'>
  271.                 <select>
  272.                     <option value=\"\">Adicionar unidad</option>
  273.                     {% for unidad in unidades %}
  274.                         <option  value=\"{{ unidad.id }}\" class=\"unidad_option_{{ unidad.id }} {% if unidadesEnProceso[unidad.id] is defined %}hide{% endif %}\">{{ unidad }}</option>
  275.                     {% endfor %}
  276.                 </select>
  277.             </span>
  278.         </th>
  279.         <th>
  280.             Jefe
  281.         </th>
  282.         <th>
  283.             Prioridad para asignación
  284.         </th>
  285.         <th>
  286.             Cupo masculino
  287.         </th>
  288.         <th>
  289.             % adicional cupo masculino
  290.         </th>
  291.         <th>
  292.             Cupo femenino
  293.         </th>
  294.         <th>
  295.             % adicional cupo femenino
  296.         </th>
  297.     </tr>
  298.     {% if elementosUsados is defined %}
  299.         {% for baseId, valoresBase in elementosUsados %}
  300.             {% include 'ProcesoReclutamiento\\\\tr_baseMovilizacion.html.twig' with { 'base': valoresBase['base'].base, 'centros': lugares, 'centrosUsados': valoresBase['centros'], 'lugaresEnProceso': lugaresEnProceso, 'baseUsada': valoresBase['base'], 'canDelete': valoresBase['canDelete'] } %}
  301.             {% for valoresCentro in valoresBase['centros'] %}
  302.                 {% include 'ProcesoReclutamiento\\\\tr_centroMovilizacion.html.twig' with { 'baseId': baseId, 'centro': valoresCentro['centro'].lugar, 'unidades': unidades, 'unidadesUsadas': valoresCentro['unidades'], 'unidadesEnProceso': unidadesEnProceso, 'centroUsado': valoresCentro['centro'], 'canDelete': valoresCentro['canDelete'] } %}
  303.             {% endfor %}
  304.         {% endfor %}
  305.     {% endif %}
  306. </table>
  307. ""ProcesoReclutamiento\\basesCentrosUnidades.html.twig""/data/produccion/integral/src/templates/ProcesoReclutamiento/basesCentrosUnidades.html.twig");
  308.     }
  309. }