<?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;
/* ProcesoReclutamiento\basesCentrosUnidades.html.twig */
class __TwigTemplate_5645f24581777fb9cf4ee93e76fee957 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "ProcesoReclutamiento\\basesCentrosUnidades.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProcesoReclutamiento\\basesCentrosUnidades.html.twig"));
// line 1
echo "
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th>
Base movilización
<select id=\"base_select\">
<option id=\"base_option_sel\" value=\"\">Adicionar base</option>
";
// line 8
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["base"]) {
// line 9
echo " <option id=\"base_option_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["base"], "id", [], "any", false, false, false, 9), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["base"], "id", [], "any", false, false, false, 9), "html", null, true);
echo "\" class=\"";
if (twig_get_attribute($this->env, $this->source, ($context["basesEnProceso"] ?? null), twig_get_attribute($this->env, $this->source, $context["base"], "id", [], "any", false, false, false, 9), [], "array", true, true, false, 9)) {
echo "hide";
}
echo "\">";
echo twig_escape_filter($this->env, $context["base"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['base'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo " </select>
</th>
<th>
Lugar de presentación
<span id='lugar_select' class='hide'>
<select>
<option id=\"lugar_option_sel\" value=\"\">Adicionar lugar</option>
";
// line 18
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["lugar"]) {
// line 19
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["lugar"], "id", [], "any", false, false, false, 19), "html", null, true);
echo "\" class=\"lugar_option_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["lugar"], "id", [], "any", false, false, false, 19), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["lugaresEnProceso"] ?? null), twig_get_attribute($this->env, $this->source, $context["lugar"], "id", [], "any", false, false, false, 19), [], "array", true, true, false, 19)) {
echo "hide";
}
echo "\">";
echo twig_escape_filter($this->env, $context["lugar"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lugar'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " </select>
</span>
</th>
<th>
Unidad militar
<span id='unidad_select' class='hide'>
<select>
<option value=\"\">Adicionar unidad</option>
";
// line 29
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["unidad"]) {
// line 30
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["unidad"], "id", [], "any", false, false, false, 30), "html", null, true);
echo "\" class=\"unidad_option_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["unidad"], "id", [], "any", false, false, false, 30), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["unidadesEnProceso"] ?? null), twig_get_attribute($this->env, $this->source, $context["unidad"], "id", [], "any", false, false, false, 30), [], "array", true, true, false, 30)) {
echo "hide";
}
echo "\">";
echo twig_escape_filter($this->env, $context["unidad"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['unidad'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " </select>
</span>
</th>
<th>
Jefe
</th>
<th>
Prioridad para asignación
</th>
<th>
Cupo masculino
</th>
<th>
% adicional cupo masculino
</th>
<th>
Cupo femenino
</th>
<th>
% adicional cupo femenino
</th>
</tr>
";
// line 54
if (array_key_exists("elementosUsados", $context)) {
// line 55
echo " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["baseId"] => $context["valoresBase"]) {
// line 56
echo " ";
$this->loadTemplate("ProcesoReclutamiento\\tr_baseMovilizacion.html.twig", "ProcesoReclutamiento\\basesCentrosUnidades.html.twig", 56)->display(twig_array_merge($context, ["base" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["valoresBase"], "base", [], "array", false, false, false, 56), "base", [], "any", false, false, false, 56), "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", false, false, false, 56), "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", false, false, false, 56), "canDelete" => twig_get_attribute($this->env, $this->source, $context["valoresBase"], "canDelete", [], "array", false, false, false, 56)]));
// line 57
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["valoresBase"], "centros", [], "array", false, false, false, 57));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["valoresCentro"]) {
// line 58
echo " ";
$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->source, twig_get_attribute($this->env, $this->source, $context["valoresCentro"], "centro", [], "array", false, false, false, 58), "lugar", [], "any", false, false, false, 58), "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", false, false, false, 58), "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", false, false, false, 58), "canDelete" => twig_get_attribute($this->env, $this->source, $context["valoresCentro"], "canDelete", [], "array", false, false, false, 58)]));
// line 59
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['valoresCentro'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['baseId'], $context['valoresBase'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " ";
}
// line 62
echo "</table>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "ProcesoReclutamiento\\basesCentrosUnidades.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th>
Base movilización
<select id=\"base_select\">
<option id=\"base_option_sel\" value=\"\">Adicionar base</option>
{% for base in bases %}
<option id=\"base_option_{{ base.id }}\" value=\"{{ base.id }}\" class=\"{% if basesEnProceso[base.id] is defined %}hide{% endif %}\">{{ base }}</option>
{% endfor %}
</select>
</th>
<th>
Lugar de presentación
<span id='lugar_select' class='hide'>
<select>
<option id=\"lugar_option_sel\" value=\"\">Adicionar lugar</option>
{% for lugar in lugares %}
<option value=\"{{ lugar.id }}\" class=\"lugar_option_{{ lugar.id }} {% if lugaresEnProceso[lugar.id] is defined %}hide{% endif %}\">{{ lugar }}</option>
{% endfor %}
</select>
</span>
</th>
<th>
Unidad militar
<span id='unidad_select' class='hide'>
<select>
<option value=\"\">Adicionar unidad</option>
{% for unidad in unidades %}
<option value=\"{{ unidad.id }}\" class=\"unidad_option_{{ unidad.id }} {% if unidadesEnProceso[unidad.id] is defined %}hide{% endif %}\">{{ unidad }}</option>
{% endfor %}
</select>
</span>
</th>
<th>
Jefe
</th>
<th>
Prioridad para asignación
</th>
<th>
Cupo masculino
</th>
<th>
% adicional cupo masculino
</th>
<th>
Cupo femenino
</th>
<th>
% adicional cupo femenino
</th>
</tr>
{% if elementosUsados is defined %}
{% for baseId, valoresBase in elementosUsados %}
{% include 'ProcesoReclutamiento\\\\tr_baseMovilizacion.html.twig' with { 'base': valoresBase['base'].base, 'centros': lugares, 'centrosUsados': valoresBase['centros'], 'lugaresEnProceso': lugaresEnProceso, 'baseUsada': valoresBase['base'], 'canDelete': valoresBase['canDelete'] } %}
{% for valoresCentro in valoresBase['centros'] %}
{% 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'] } %}
{% endfor %}
{% endfor %}
{% endif %}
</table>
", "ProcesoReclutamiento\\basesCentrosUnidades.html.twig", "/data/produccion/integral/src/templates/ProcesoReclutamiento/basesCentrosUnidades.html.twig");
}
}