{% extends 'base.html.twig' %}
{# {% set pasoPorPresentismo = workflow_metadata(tomaExamenFecha, 'num_estado', tomaExamenFecha.estado) >=
workflow_metadata(tomaExamenFecha, 'num_estado', constant('App\\Entity\\Examen\\TomaExamenFecha::ESTADO_PRESENTISMO')) %} #}
{% set pasoPorPresentismo = tomaExamenFecha.numeroActa is not null %}
{% block js_document_ready %}
$('#datatable').dataTable({
filter : false,
language: {
"url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json"
},
aLengthMenu: "",
bAutoWidth: false,
"columns": [
{
"data": "foto",
render: function(data, type, row, meta) {
if (type === 'display') {
foto = [
'',
].join('');
return foto;
}
return data;
},
},
{ "data": "dni" },
{ "data": "nombre_apellido" },
{% if pasoPorPresentismo %}
{ "data": "presentismo" },
{ "data": "resultado" },
{ "data": "nota" },
{ "data": "aprobadoRevision" },
{ "data": "notaRevision" },
{% if tomaExamenFecha.tomaExamen.convocatoriaExamen1.convocatoria.tipoEximicion != constant('App\\Entity\\Convocatorias\\Convocatoria::TIPO_ACTAS') %}
{ "data": "resolucion" },
{% endif %}
{% endif %}
],
order: [[ 1, 'desc' ]],
columnDefs: [
// These are the column name variables that will be sent to the server
{
"name": "foto",
"searchable": false,
"orderable": false,
"targets": 0
},
{
"name": "dp.dni",
"targets": 1
},
{
"name": "dp.nombres",
"searchable": false,
"orderable": false,
"targets": 2
},
{% if pasoPorPresentismo %}
{
"name": "e.presente",
"targets": 3
},
{
"name": "resultado",
"searchable": false,
"orderable": false,
"targets": 4
},
{
"name": "e.nota",
"targets": 5
},
{
"name": "e.aprobadoRevision",
"searchable": false,
"orderable": false,
"targets": 6
},
{
"name": "e.notaRevision",
"searchable": false,
"orderable": false,
"targets": 7
},
{% if tomaExamenFecha.tomaExamen.convocatoriaExamen1.convocatoria.tipoEximicion != constant('App\\Entity\\Convocatorias\\Convocatoria::TIPO_ACTAS') %}
{
"name": "e.resolucion",
"searchable": false,
"orderable": false,
"targets": 8
},
{% endif %}
{% endif %}
],
"displayStart": {{ app.session.get(constant('App\\Controller\\Inscripciones\\InscripcionController::FORM_CONSULTA_INSCRIPCION_STAR')) ?? 0 }},
serverSide: true,
processing: true,
ajax: {
url: '{{ path('examenes_examinandos_datos', {'tomaExamenFecha': tomaExamenFecha.id}) }}',
type: 'POST'
}
{% if not pasoPorPresentismo %}
,
fnDrawCallback: function( oSettings ) {
// Ocultar columnas si no esta seteada el numero de acta
$('#datatable tbody tr').each(function() {
var fechaCell1 = $(this).find('td:eq(3)'); // Columna del presentismo en la tabla
var fechaCell2 = $(this).find('td:eq(4)'); // Columna de aprobacion en la tabla
var fechaCell3 = $(this).find('td:eq(5)'); // Columna de la nota en la tabla
fechaCell1.hide();
fechaCell2.hide();
fechaCell3.hide();
});
}
{% endif %}
});
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
$('select').formSelect();
var select = $('select');
$('.limpiar').click(function(){
$("input[type=text]").val("");
select.prop('selectedIndex', 0); //Sets the first option as selected
select.material_select(); //Update material select
form.submit();
});
{% endblock %}
{% block breadcrumb %}
Territorio: {{tomaExamenFecha.territorialidad|join(", ") }}
{% endif %}place {{tomaExamenFecha.lugar|capitalize}}
{{ salaExaminadora.examinador.persona.apellidos ~ ', ' ~ salaExaminadora.examinador.persona.nombres ~ ' - ' ~ salaExaminadora.examinador.estamento|upper }} {% if pasoPorPresentismo %} {% if salaExaminadora.presente == true %} (Presente) {% else %} (Ausente) {% endif %} {% endif %}
{% else %} Sin Definir {% endfor %}{{ examenAcademico.academico.persona.apellidos ~ ', ' ~ examenAcademico.academico.persona.nombres }} {% if pasoPorPresentismo %} {% if examenAcademico.presente == true %} (Presente) {% else %} (Ausente) {% endif %} {% endif %}
{% else %} Sin Definir {% endfor %}Nombre y Apellido | {% if pasoPorPresentismo %} {% if tomaExamenFecha.tomaExamen.convocatoriaExamen1.convocatoria.tipoEximicion != constant('App\\Entity\\Convocatorias\\Convocatoria::TIPO_ACTAS') %} {% endif %} {% endif %}|
---|---|
{% if pasoPorPresentismo %} {% if tomaExamenFecha.tomaExamen.convocatoriaExamen1.convocatoria.tipoEximicion != constant('App\\Entity\\Convocatorias\\Convocatoria::TIPO_ACTAS') %} {% endif %} {% endif %} |