{% extends 'base.html.twig' %} {% 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": "imagen", render: function(data, type, row, meta) { if (type === 'display') { imagen = [ '', ].join(''); return imagen; } return data; }, }, { "data": "nombre_apellido" }, { "data": "dni" }, { "data": "nombreCargo" }, { "data": "fechaInscripcion" }, { "data": "estado" }, {# { "data": "aprobadoPorResolucion" }, #} { "data": "estadoRevision" }, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ '', 'how_to_reg', '', ].join(''); $botones += [ ' ', 'print', ' ', ].join(''); if(data['liberar']){ $botones += [ ' ', ].join(''); } return $botones; } return data; }, }, ], 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.nombres", "targets": 1 }, { "name": "dp.dni", "targets": 2 }, { "name": "nombreCargo", "targets": 3 }, { "name": "i.fechaInscripcion", "targets": 4 }, { "name": "estado", "orderable": false, "targets": 5 }, {# {"name": "i.aprobadoPorResolucion", "targets": 6 }, #} { "name": "estadoRevision", "searchable": false, "targets": 6 }, { "searchable": false, "orderable": false, "targets": 7 }, ], "displayStart": {{ app.session.get(constant('App\\Controller\\Inscripciones\\InscripcionController::FORM_CONSULTA_INSCRIPCION_STAR')) ?? 0 }}, serverSide: true, processing: true, ajax: { url: '{{ path('inscripciones_datos', {'convocatoria': convocatoria.id}) }}', type: 'POST' } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered {# $('.modal1').modal(); #} $('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 javascripts %} {{ parent() }} {% endblock %} {% block breadcrumb %}
{% endblock %} {% block titulo_body %}Nombre y Apellido | DNI | Cargo | Fecha | Estado | {#Aprobado por Resolución | #}
Estado Revisión | Acciones |
---|