{% extends 'base.html.twig' %} {% block js_document_ready %} //defino variable para fecha actual function addZeroBefore(n) { return (n < 10 ? '0' : '') + n; } //defino variable para fecha actual var currentdate = new Date(); var datetime = "Extraído el: " + currentdate.getDate() + "/" + addZeroBefore((currentdate.getMonth()+1)) + "/" + currentdate.getFullYear() + " " + addZeroBefore(currentdate.getHours()) + ":" + addZeroBefore(currentdate.getMinutes()) + ":" + addZeroBefore(currentdate.getSeconds()); var fechaTitulo = currentdate.getDate() + "/" + addZeroBefore((currentdate.getMonth()+1)) + "/" + currentdate.getFullYear() + " " + addZeroBefore(currentdate.getHours()) + ":" + addZeroBefore(currentdate.getMinutes()) + ":" + addZeroBefore(currentdate.getSeconds()); $('#datatable').dataTable({ pageLength: 15, dom: 'Bfrtip', buttons: [ { extend: 'excel', title: '{{convocatoria.titulo}} ', text: 'Excel description', titleAttr: 'Descargar Excel', exportOptions: { columns: ':visible:not(.not-export-col)' } }, { extend: 'pdf', title: '{{convocatoria.titulo }}', messageTop: '{{nombreCargoFiltrado}}', text: 'PDF picture_as_pdf', titleAttr: 'Descargar PDF', exportOptions: { columns: ':visible:not(.not-export-col)' }, //customizo footer con fecha de extracción y número de página customize: function(doc) { doc['footer'] = (function(page, pages) { return { columns: [ { alignment: 'center', text: [ { text: datetime, italics: true }, ] }, { alignment: 'center', text: [ { text: page.toString(), italics: true }, ' de ', { text: pages.toString(), italics: true } ] }, ], margin: [2, 0] } }); } }, 'colvis' ], filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.12.1/i18n/es-ES.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "apellidos" }, { "data": "nombres" }, { "data": "dni" }, { "data": "cargo" }, { "data": "territorio" }, { "data": "jurisdiccion" }, { "data": "region" }, ], order: [[ 0, 'asc' ], [1, 'asc'], [3, 'asc'], [4, 'asc'], [5, 'asc'], [6, 'asc']], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "apellidos", "targets": 0, "searchable": false, "orderable": false, }, { "name": "nombres", "targets": 1, "searchable": false, "orderable": false, }, { "name": "dni", "targets": 2, "searchable": false, "orderable": false, }, { "name": "cargo", "targets": 3, "searchable": false, "orderable": false, }, { "name": "territorio", "targets": 4, "searchable": false, "orderable": false, }, { "name": "jurisdiccion", "targets": 5, "searchable": false, "orderable": false, }, { "name": "region", "targets": 6, "searchable": false, "orderable": false, }, ], serverSide: false, processing: true, ajax: { url: '{{ path('app_inscripciones_adm_presen_territorio_datos', { 'id': idConvocatoria }) }}', type: 'POST' } }); // 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 %}

list

{{convocatoria.titulo|capitalize}}

Listado de Inscripciones presentadas o admitidas con Territorio
{% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.cargos) }} {{ form_widget(form.cargos) }}
{{ form_end(form) }}

Apellido/s Nombre/s DNI Cargo Territorio Sede Región
{% endblock %}