{% extends 'base.html.twig' %} {% block js_document_ready %} $('#datatable').dataTable({ createdRow: function(row, data, dataIndex) { $(row).css({"background-color":"transparent"}); }, filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "imagen", render: function(data, type, row, meta) { {# console.debug(data); #} if (type === 'display') { imagen = [ '', ].join(''); return imagen; } return data; }, }, { "data": "nombre_apellido" }, { "data": "dni" }, { "data": "fecha_entrevista" }, { "data": "cargo" }, { "data": "psicologico"} ], order: [[ 1, 'asc' ]], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "imagen", "searchable": false, "orderable": false, "targets": 0 }, { "name": "dp.apellidos", "targets": 1 }, { "name": "dp.dni", "targets": 2 }, { "name": "i.fechaEntrevista", "targets": 3 }, { "name": "carg.nombre", "orderable": false, "targets": 4 }, { "name": "i.psicologico", "orderable": false, "targets": 5 }, ], "displayStart": {{ app.session.get(constant('App\\Controller\\Personal\\PsicologoController::FORM_PSICOLOGO_CONSULTA_INFORME_PSICOLOGICO_START')) ?? 0 }}, serverSide: true, processing: true, ajax: { url: '{{ path('psicologos_informes_psicologicos_datos', {idView:psicologo.idVIew}) }}', type: 'POST' } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered {# $('.modal1').modal(); #} $('select').formSelect(); {% endblock %} {% block breadcrumb %}
{% endblock %} {% block titulo_body %}Apellido y Nombre | DNI | Fecha de la Entrevista | Cargo | Psicológico |
---|