{% extends 'base.html.twig' %} {% block js_document_ready %} $('#datatable').dataTable({ pageLength: 25, dom: 'Bfrtip', buttons: [ ], filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.12.1/i18n/es-ES.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "dni" }, { "data": "apellidos" }, { "data": "nombres" }, { "data": "fechaInscripcion" }, { "data": "estado" }, { "data": "titulo" }, { "data": "nombreCargo" }, { "data": "tipoInscripcion" }, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ ' ', 'print', ' ', ].join(''); $botones += [ ' ', 'check', ' ', ].join(''); return $botones; } return data; }, }, ], order: [[ 0, 'asc' ], [3, 'asc']], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "dni", "orderable": true, "targets": 0, }, { "name": "apellidos", "orderable": true, "targets": 1 }, { "name": "nombres", "orderable": true, "targets": 2 }, { "name": "fechaInscripcion", "orderable": true, "targets": 3 }, { "name": "estado", "orderable": false, "targets": 4 }, { "name": "titulo", "orderable": true, "targets": 5 }, { "name": "nombreCargo", "orderable": true, "targets": 6 }, { "name": "tipoInscripcion", "orderable": true, "targets": 7 }, { "searchable": false, "orderable": false, "targets": 8 }, ], serverSide: true, processing: true, ajax: { url: '{{ path('app_inscripciones_para_rectificar_datos') }}', type: 'POST' } }); var $convocatoria = $('#inscripcion_para_rectificar_convocatorias'); $convocatoria.change(function() { var $form = $(this).closest('form'); var data = {}; data['convocatoria_id'] = $convocatoria.val(); $.ajax({ url : '{{ path('load_cargos') }}', type: 'POST', data : data, success: function(html) { $('#inscripcion_para_rectificar_cargos').empty(); $('#inscripcion_para_rectificar_cargos').append( $(html).find('#form_cargos').children() ); $('#inscripcion_para_rectificar_cargos').children().first().prop('selected', true); $("select").formSelect(); } }); }); // 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 %}
{% endblock %} {% block titulo_body %}Dni | Apellido | Nombre | Fecha Inscripción | Estado | Convocatoria | Cargo | Tipo Inscripción | Acciones |
---|