{% extends 'base.html.twig' %} {% block javascripts_base %} function clickAbrirHistorialPsic(e) { alert("Se hizo click sobre el informe Psicológico de idView: "+event.currentTarget.dataset.idview); } function clickAbrirHistorialPsiq(e) { alert("Se hizo click sobre el informe Psiquiátrico de idView: "+event.currentTarget.dataset.idview); } {% endblock %} {% 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" }, { "data": "estadoPsicologico", render: function(data, type, row, meta) { if (type === 'display') { if(data['class']) { $resultado = [ '',data['estado'],'', '' ].join(''); } else { $resultado = data['estado']; } return $resultado; } return data; }, }, { "data": "estadoPsiquiatrico", render: function(data, type, row, meta) { if (type === 'display') { if(data['class']) { $resultado = [ '',data['estado'],'', '' ].join(''); } else { $resultado = data['estado']; } return $resultado; } return data; }, }, { "data": "acciones", render: function(data, type, row, meta) { if (type === 'display') { if(data['urlVer'] != null) { $botones = [ ' ', 'visibility', ' ' ].join(''); } else { $botones = [ ' ', 'visibility', ' ' ].join('') } return $botones; } return data; }, }, ], order: [[ 2, 'asc' ]], 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": "nombre_apellido", "targets": 2 }, { "name": "estadoPsicologico", "searchable": false, "orderable": false, "targets": 3 }, { "name": "estadoPsiquiatrico", "searchable": false, "orderable": false, "targets": 4 }, { "name": "accion", "searchable": false, "orderable": false, "targets": 5 }, ], "displayStart": {{ app.session.get(constant('App\\Controller\\Informes\\ResultadosCargoController::FORM_CONSULTA_RESULTADOS_CARGO_START')) ?? 0 }}, serverSide: true, processing: true, ajax: { url: '{{ path('resultados_cargos_datos', {'id': cargo.id}) }}', type: 'POST' } , fnDrawCallback: function( oSettings ) { // Refrescar tooltips $('.tooltipped').tooltip(); } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered $('select').formSelect(); //var select = $('select'); {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block breadcrumb %} {% endblock %} {% block titulo_body %}
list

{{cargo.nombre}}

{% endblock %} {% block titulo_acciones_body %} {% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.textoBusqueda) }} {{ form_widget(form.textoBusqueda) }}
{{ form_label(form.dni) }} {{ form_widget(form.dni) }}
{% if form.children | filter(v => (v.vars.name != "_token" and not (v.vars.value == "" or v.vars.value == []))) | length > 0 %} {% endif %} {{ form_end(form) }}

DNI Apellido y Nombre Estado Psicológico Estado Psiquiátrico
{% endblock %}