<?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\showFicha.html.twig */
class __TwigTemplate_cd41808c4a63e717da296092203aad41 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'principal_heading' => [$this, 'block_principal_heading'],
'jquery' => [$this, 'block_jquery'],
'prev_acuartelamiento' => [$this, 'block_prev_acuartelamiento'],
'more_acuartelamiento' => [$this, 'block_more_acuartelamiento'],
'centro_movilizacion' => [$this, 'block_centro_movilizacion'],
'more_seccion' => [$this, 'block_more_seccion'],
'actions' => [$this, 'block_actions'],
];
}
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\\showFicha.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\\showFicha.html.twig"));
$this->parent = $this->loadTemplate("ReclutaProceso/show.html.twig", "ReclutaProceso\\showFicha.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_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 4
echo " <div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Registro en línea del aspirante
</h4>
<!--div class=\"widget-toolbar\">
<a href=\"#\" data-action=\"collapse\">
<i class=\"fas fa-chevron-up\"></i>
</a>
</div-->
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
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 19
echo " ";
$this->displayParentBlock("jquery", $context, $blocks);
echo "
<script type=\"text/javascript\">
\$(function()
{
\$('#sidebar').remove();
\$('#navbar').remove();
\$('#cambiarCentro').dialog ({
autoOpen : false,
height: 430,
width: 900,
modal: true,
resizable: false,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller green\"><i class=\"fas fa-home\"></i> Cambiar Centro de Acuarteamiento</h4></div>',
title_html: true,
buttons: {
Aceptar: function() {
if (\$(\"#cbCentroMovilizacion\").val() && (\$('#cbCentroMovilizacion option:selected').text() != \"";
// line 37
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.', 37, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 37), "html", null, true);
echo "\"))
{
\$('#span_centro_movilizacion').mask(\" Actualizando...\");
var url = '";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualizar_centro_movilizacion", ["idReclutaProceso" => "__PROCESO__", "idCentro" => "__CENTRO__", "fecha" => "__FECHA__"]), "html", null, true);
echo "';
url=url.replace('__PROCESO__',";
// line 41
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.', 41, $this->source); })()), "id", [], "any", false, false, false, 41), "html", null, true);
echo ");
url=url.replace('__CENTRO__',\$(\"#cbCentroMovilizacion\").val());
url=url.replace('__FECHA__',\$('#form_fechaAsignacion').val());
\$.getJSON(url , function(result){
if (result.ok)
{
\$('#span_centro_movilizacion').html(result.centro);
\$('#span_turno').html(result.turno);
\$('#direccion_acuartelamiento').html(result.direccion);
\$('#fecha1').html(result.fecha);
\$('#fecha2').html(result.fecha);
}
\$('#span_centro_movilizacion').unmask();
});
}
\$( \"#cambiarCentro\" ).dialog( \"close\" );
},
Cancelar: function() {
\$( \"#cambiarCentro\" ).dialog( \"close\" );
}
}
});
\$(\"#btnCambiarCentro\").click(function(e){
var url = '";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cambiar_centro_movilizacion", ["idReclutaProceso" => "__PROCESO__"]);
echo "';
url=url.replace('__PROCESO__',";
// line 67
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.', 67, $this->source); })()), "id", [], "any", false, false, false, 67), "html", null, true);
echo ");
\$(\"#cambiarCentro\").parent().mask(\" Cargando...\");
\$(\"#cambiarCentro\").dialog(\"open\");
\$('#cambiarCentro').load(url, function(){
\$(\"#cambiarCentro\").parent().unmask();
});
});
\t\t
});
\t\t
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 84
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 "
<br><br>
";
// line 86
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.', 86, $this->source); })()), "turno", [], "any", false, false, false, 86)) {
// line 87
echo " <p class=\"alert alert-success bigger-150\">
<i class=\"ace-icon fa fa-check-circle-o bigger-120 blue\"></i> Ha culminado exitosamente el registro. Debe presentarse el día <span id=\"fecha1\">";
// line 88
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.', 88, $this->source); })()), "dateToTxt", [0 => "fechaAsignacion"], "method", false, false, false, 88), "html", null, true);
echo "</span> en el centro de acuartelamiento ";
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.', 88, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 88), "html", null, true);
echo " con <strong>dos (2) copias de la Ficha de Inscripción impresa</strong>.<br/>El turno asignado no garantiza el acceso, depende del completamiento el cupo y su cumplimiento de los requisitos.</p>
<p class=\"alert alert-warning bigger-150\" >Revise la información presentada en la Ficha e imprima el documento desde el botón \"Imprimir Ficha\"</p>
<div class=\"row\">
<span class=\"btn btn-app btn-sm btn-primary no-hover pull-right\">
<span class=\"line-height-1 smaller-90\"> TURNO </span>
<br>
<span id=\"span_turno\" class=\"line-height-1 bigger-170\"> ";
// line 95
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.', 95, $this->source); })()), "turno", [], "any", false, false, false, 95), "html", null, true);
echo " </span>
</span>
</div>
";
} else {
// line 99
echo " <p style='text-align: center; font-size: 18px; color: red'>Se han agotado los tres intentos sin que haya completado el test psicológico. No es apto para presentarse en este proceso de acuartelamiento.</p>
";
}
// line 101
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 104
public function block_more_acuartelamiento($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_acuartelamiento"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "more_acuartelamiento"));
echo "
<br><br>
";
// line 106
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.', 106, $this->source); })()), "turno", [], "any", false, false, false, 106)) {
// line 107
echo " <p class=\"alert alert-success bigger-150\"><i class=\"ace-icon fa fa-check-circle-o bigger-120 blue\"></i>Ha culminado exitosamente el registro. Debe presentarse el día <span id=\"fecha2\">";
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.', 107, $this->source); })()), "dateToTxt", [0 => "fechaAsignacion"], "method", false, false, false, 107), "html", null, true);
echo "</span> en el centro de acuartelamiento ";
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.', 107, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 107), "html", null, true);
echo " con <strong>dos (2) copias de la Ficha de Inscripción impresa</strong>.<br/>El turno asignado no garantiza el acceso, depende del completamiento el cupo y su cumplimiento de los requisitos.</p>
<div class=\"row\">
<div class=\"col-sm-12 center\">
<br/><br/>
<br/><br/><br/><br/>
</div>
</div>
<div class=\"row\">
<div class=\"col-sm-2\">
</div>
<div class=\"col-xs-10\">
<a id=\"btnShowUpdate\" class=\"btn btn-success btn-lg btn-bold btn-round bigger-180\" target=\"_blank\" href=\"";
// line 119
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.', 119, $this->source); })()), "id", [], "any", false, false, false, 119)]), "html", null, true);
echo "\"><i class=\"ace-icon fa fa-print bigger-120 \"></i> Imprimir Ficha de Inscripción</a>
<!--p class=\"center green bigger-150\"><input type='checkbox'> Tengo impresa correctamente la documentación generada</input></p-->
<a id=\"btnShowUpdate\" class=\"btn btn-info btn-large btn-round bigger-180\" href=\"";
// line 122
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("landing_aspirantes");
echo "\"><i class=\"ace-icon fa fa-sign-out bigger-120 \"></i> Terminar proceso</a>
</div>
<div class=\"pull-right\">
<img width=\"150px\" height=\"150px\" src=\"";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("aspirante_generate_qr", ["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.', 125, $this->source); })()), "id", [], "any", false, false, false, 125)]), "html", null, true);
echo "\">
</div>
</div>
";
} else {
// line 131
echo " <p style='text-align: center; font-size: 18px; color: red'>Se han agotado los tres intentos sin que haya completado el test psicológico. No es apto para presentarse en este proceso de acuartelamiento.</p>
";
}
// line 133
echo "
<!--a id=\"btnShowUpdate\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
// line 134
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("landing_aspirantes");
echo "\">Cancelar</a> !>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 138
public function block_centro_movilizacion($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "centro_movilizacion"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "centro_movilizacion"));
// line 139
echo " ";
if ((array_key_exists("origen", $context) && ((isset($context["origen"]) || array_key_exists("origen", $context) ? $context["origen"] : (function () { throw new RuntimeError('Variable "origen" does not exist.', 139, $this->source); })()) == "registroenlinea"))) {
// line 140
echo " <table id=\"ttabla_centro\">
<tr style=\"vertical-align: top; align-content: stretch\">
<td width=\"85%\">
<span id=\"span_centro_movilizacion\">
";
// line 144
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.', 144, $this->source); })()), "centroMovilizacion", [], "any", false, false, false, 144), "html", null, true);
echo "
</span>
</td>
<td width=\"15%\" style=\"text-align: right\">
<a id=\"btnCambiarCentro\" class=\"align-middle btn btn-success btn-sm btn-bold btn-round\"><i class=\"ace-icon fa fa-search\"></i> Cambiar Centro</a>
</td>
</tr>
</table>
<div id=\"cambiarCentro\" title=\"Cambiar Centro de Movilización\"> </div>
";
} else {
// line 156
echo " ";
$this->displayParentBlock("centro_movilizacion", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 160
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 "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 163
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "ReclutaProceso\\showFicha.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 390 => 163, 370 => 160, 356 => 156, 341 => 144, 335 => 140, 332 => 139, 322 => 138, 309 => 134, 306 => 133, 302 => 131, 293 => 125, 287 => 122, 281 => 119, 263 => 107, 261 => 106, 248 => 104, 237 => 101, 233 => 99, 226 => 95, 214 => 88, 211 => 87, 209 => 86, 196 => 84, 170 => 67, 166 => 66, 138 => 41, 134 => 40, 128 => 37, 106 => 19, 96 => 18, 74 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"ReclutaProceso/show.html.twig\" %}
{% block principal_heading %}
<div class=\"widget-header widget-header-flat\">
<h4 class=\"widget-title lighter\">
<i class=\"fas fa-search orange\"></i>
Registro en línea del aspirante
</h4>
<!--div class=\"widget-toolbar\">
<a href=\"#\" data-action=\"collapse\">
<i class=\"fas fa-chevron-up\"></i>
</a>
</div-->
</div>
{% endblock %}
{% block jquery %}
{{ parent() }}
<script type=\"text/javascript\">
\$(function()
{
\$('#sidebar').remove();
\$('#navbar').remove();
\$('#cambiarCentro').dialog ({
autoOpen : false,
height: 430,
width: 900,
modal: true,
resizable: false,
title: '<div id=\"texto\" class=\"widget-header widget-header-small\"><h4 class=\"smaller green\"><i class=\"fas fa-home\"></i> Cambiar Centro de Acuarteamiento</h4></div>',
title_html: true,
buttons: {
Aceptar: function() {
if (\$(\"#cbCentroMovilizacion\").val() && (\$('#cbCentroMovilizacion option:selected').text() != \"{{ entity.centroMovilizacion }}\"))
{
\$('#span_centro_movilizacion').mask(\" Actualizando...\");
var url = '{{ path('actualizar_centro_movilizacion', {'idReclutaProceso': '__PROCESO__','idCentro': '__CENTRO__', 'fecha': '__FECHA__'}) }}';
url=url.replace('__PROCESO__',{{ entity.id }});
url=url.replace('__CENTRO__',\$(\"#cbCentroMovilizacion\").val());
url=url.replace('__FECHA__',\$('#form_fechaAsignacion').val());
\$.getJSON(url , function(result){
if (result.ok)
{
\$('#span_centro_movilizacion').html(result.centro);
\$('#span_turno').html(result.turno);
\$('#direccion_acuartelamiento').html(result.direccion);
\$('#fecha1').html(result.fecha);
\$('#fecha2').html(result.fecha);
}
\$('#span_centro_movilizacion').unmask();
});
}
\$( \"#cambiarCentro\" ).dialog( \"close\" );
},
Cancelar: function() {
\$( \"#cambiarCentro\" ).dialog( \"close\" );
}
}
});
\$(\"#btnCambiarCentro\").click(function(e){
var url = '{{ path('cambiar_centro_movilizacion', {'idReclutaProceso': '__PROCESO__'}) }}';
url=url.replace('__PROCESO__',{{ entity.id }});
\$(\"#cambiarCentro\").parent().mask(\" Cargando...\");
\$(\"#cambiarCentro\").dialog(\"open\");
\$('#cambiarCentro').load(url, function(){
\$(\"#cambiarCentro\").parent().unmask();
});
});
\t\t
});
\t\t
</script>
{% endblock jquery %}
{% block prev_acuartelamiento %}
<br><br>
{% if entity.turno %}
<p class=\"alert alert-success bigger-150\">
<i class=\"ace-icon fa fa-check-circle-o bigger-120 blue\"></i> Ha culminado exitosamente el registro. Debe presentarse el día <span id=\"fecha1\">{{ entity.dateToTxt('fechaAsignacion') }}</span> en el centro de acuartelamiento {{ entity.centroMovilizacion }} con <strong>dos (2) copias de la Ficha de Inscripción impresa</strong>.<br/>El turno asignado no garantiza el acceso, depende del completamiento el cupo y su cumplimiento de los requisitos.</p>
<p class=\"alert alert-warning bigger-150\" >Revise la información presentada en la Ficha e imprima el documento desde el botón \"Imprimir Ficha\"</p>
<div class=\"row\">
<span class=\"btn btn-app btn-sm btn-primary no-hover pull-right\">
<span class=\"line-height-1 smaller-90\"> TURNO </span>
<br>
<span id=\"span_turno\" class=\"line-height-1 bigger-170\"> {{entity.turno}} </span>
</span>
</div>
{% else %}
<p style='text-align: center; font-size: 18px; color: red'>Se han agotado los tres intentos sin que haya completado el test psicológico. No es apto para presentarse en este proceso de acuartelamiento.</p>
{% endif %}
{% endblock prev_acuartelamiento %}
{% block more_acuartelamiento %}
<br><br>
{% if entity.turno %}
<p class=\"alert alert-success bigger-150\"><i class=\"ace-icon fa fa-check-circle-o bigger-120 blue\"></i>Ha culminado exitosamente el registro. Debe presentarse el día <span id=\"fecha2\">{{ entity.dateToTxt('fechaAsignacion') }}</span> en el centro de acuartelamiento {{ entity.centroMovilizacion }} con <strong>dos (2) copias de la Ficha de Inscripción impresa</strong>.<br/>El turno asignado no garantiza el acceso, depende del completamiento el cupo y su cumplimiento de los requisitos.</p>
<div class=\"row\">
<div class=\"col-sm-12 center\">
<br/><br/>
<br/><br/><br/><br/>
</div>
</div>
<div class=\"row\">
<div class=\"col-sm-2\">
</div>
<div class=\"col-xs-10\">
<a id=\"btnShowUpdate\" class=\"btn btn-success btn-lg btn-bold btn-round bigger-180\" target=\"_blank\" href=\"{{ path('imprimirFichaProceso', {'idReclutaProceso': entity.id }) }}\"><i class=\"ace-icon fa fa-print bigger-120 \"></i> Imprimir Ficha de Inscripción</a>
<!--p class=\"center green bigger-150\"><input type='checkbox'> Tengo impresa correctamente la documentación generada</input></p-->
<a id=\"btnShowUpdate\" class=\"btn btn-info btn-large btn-round bigger-180\" href=\"{{ path('landing_aspirantes') }}\"><i class=\"ace-icon fa fa-sign-out bigger-120 \"></i> Terminar proceso</a>
</div>
<div class=\"pull-right\">
<img width=\"150px\" height=\"150px\" src=\"{{ url('aspirante_generate_qr', {'idReclutaProceso':entity.id}) }}\">
</div>
</div>
{% else %}
<p style='text-align: center; font-size: 18px; color: red'>Se han agotado los tres intentos sin que haya completado el test psicológico. No es apto para presentarse en este proceso de acuartelamiento.</p>
{% endif %}
<!--a id=\"btnShowUpdate\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('landing_aspirantes') }}\">Cancelar</a> !>
{% endblock more_acuartelamiento %}
{% block centro_movilizacion %}
{% if (origen is defined and origen == \"registroenlinea\" ) %}
<table id=\"ttabla_centro\">
<tr style=\"vertical-align: top; align-content: stretch\">
<td width=\"85%\">
<span id=\"span_centro_movilizacion\">
{{ entity.centroMovilizacion }}
</span>
</td>
<td width=\"15%\" style=\"text-align: right\">
<a id=\"btnCambiarCentro\" class=\"align-middle btn btn-success btn-sm btn-bold btn-round\"><i class=\"ace-icon fa fa-search\"></i> Cambiar Centro</a>
</td>
</tr>
</table>
<div id=\"cambiarCentro\" title=\"Cambiar Centro de Movilización\"> </div>
{% else %}
{{ parent() }}
{% endif%}
{% endblock centro_movilizacion %}
{% block more_seccion %}
{% endblock more_seccion %}
{% block actions %}
{% endblock actions %}
", "ReclutaProceso\\showFicha.html.twig", "/data/produccion/integral/src/templates/ReclutaProceso/showFicha.html.twig");
}
}