{% extends 'base.html.twig' %} {% block breadcrumb %}
{% endblock %} {% block titulo_body %}{{ cronograma.cargo }} {% if cronograma.territorialidad is not null %} - {{ cronograma.territorialidad }}
{% endif %}
Nombre y Apellido | Presente | Nota | Aprobado | Entrevista | Agregar Nota | ||
---|---|---|---|---|---|---|---|
{{postulante['presentacionAntecedentes'].datosPersonales.nombres|capitalize}} {{postulante['presentacionAntecedentes'].datosPersonales.apellidos|capitalize}} | {# DNI #}{{postulante['presentacionAntecedentes'].datosPersonales.dni}} | {# Presente #}{% set presenteValue = postulante['form'].presente.vars.data %} {% set isPresenteChecked = presenteValue == '1' or presenteValue == true %} {# Si el valor es '1' o true #} {% set icon = isPresenteChecked ? 'check_circle_outline' : 'highlight_off' %} {% set colorClass = isPresenteChecked ? 'teal' : 'red' %} {% set dataTooltip = isPresenteChecked ? 'Presente' : 'Ausente' %} {% if presenteValue is null %} {% set icon = 'remove_circle_outline' %} {% set colorClass = 'grey' %} {% set dataTooltip = 'Sin definir' %} {% endif %} {{ icon }} {{ form_widget(postulante['form'].presente) }} | {# Nota #}{# Aprobado #} | {# Url entrevista #} |
{{ form_row(postulante['form'].enlaceGrabacion) }}
|
{# Acciones #}
{% set detalles = postulante['form'].vars.data.detalleResultados %} {% for key,detalle in detalles %} {% if key == 0 %} {% if error and postulante['form'].children.presente.vars.data is null %} | |
{# Cargo #} | {{cronograma.cargo}} | {# Nota #} |
{{ form_row(
postulante['form'].nota,
{'attr': {'disabled': postulante['form'].presente.vars.data == 'true' ? false : true}}
) }}
|
{# Aprobado #}
{% set aprobadoValue = postulante['form'].aprobado.vars.data %} {% set isAprobadoChecked = aprobadoValue == '1' or aprobadoValue == true %} {# {% set icon = isAprobadoChecked ? 'check_circle_outline' : 'highlight_off' %} #} {% set icon = 'how_to_reg' %} {% set colorClass = isAprobadoChecked ? 'teal' : 'red' %} {% set dataTooltip = isAprobadoChecked ? 'Aprobado' : 'Desaprobado' %} {% if aprobadoValue is null %} {% set icon = 'remove_circle_outline' %} {% set colorClass = 'grey' %} {% set dataTooltip = 'Sin definir' %} {% endif %} {{ icon }} {{ form_widget(postulante['form'].aprobado) }} | {% if is_granted('ROLE_ENTREVISTAS_ADMIN') %} {% set presenteValue = postulante['form'].presente.vars.data %} {% if presenteValue is not null %} {% endif %} {% endif %} | ||
{{detalle.cargo}} | Nota: {{detalle.nota}} | {{detalle.aprobado ? ' how_to_reg ': ' how_to_reg '}} | |||||
{# Cargo #} | {{cronograma.cargo}} | {# Nota #} |
{{ form_row(
postulante['form'].nota,
{'attr': {'disabled': postulante['form'].presente.vars.data == 'true' ? false : true, 'class': 'sin-margenes'}}
) }}
|
{# Aprobado #}
{% set aprobadoValue = postulante['form'].aprobado.vars.data %} {% set isAprobadoChecked = aprobadoValue == '1' or aprobadoValue == true %} {# {% set icon = isAprobadoChecked ? 'check_circle_outline' : 'highlight_off' %} #} {% set icon = 'how_to_reg' %} {% set colorClass = isAprobadoChecked ? 'teal' : 'red' %} {% set dataToolip = isAprobadoChecked ? 'Aprobado' : 'Desaprobado' %} {% if aprobadoValue is null %} {% set icon = 'remove_circle_outline' %} {% set colorClass = 'grey' %} {% set dataToolip = 'Sin definir' %} {% endif %} {{ icon }} {{ form_widget(postulante['form'].aprobado) }} | {% if is_granted('ROLE_ENTREVISTAS_ADMIN') %} {% set presenteValue = postulante['form'].presente.vars.data %} {% if presenteValue is not null %} {% endif %} {% endif %} |