{% extends 'base.html.twig' %} {% block breadcrumb %} {% endblock %} {% block titulo_body %} list

Desistimientos


{% endblock %} {% block titulo_acciones_body %}
add list Nuevo Desistimiento {% endblock %} {% block javascripts %} {{parent()}} {% endblock %} {% block javascripts_base %} function initDateFormat( datePicker ) { var selectedDate = ( typeof datePicker.date === 'undefined' || datePicker.date === null ) ? datePicker.options.defaultDate : datePicker.date; var shortWeekdays = datePicker.options.i18n.weekdaysShort; var shortMonths = datePicker.options.i18n.monthsShort; var day = selectedDate.getDate(); var weekday = shortWeekdays[ selectedDate.getDay() ]; var month = shortMonths[ selectedDate.getMonth() ]; var formattedDate = weekday + ', ' + day + ' ' + month; document.querySelector(".datepicker-date-display .date-text").innerHTML = formattedDate; document.querySelector(".datepicker-date-display .year-text").innerHTML = selectedDate.getFullYear(); } {# var cleave = new Cleave('#desistimientos_concurso_control_filtro_fechaExamen', { date: true, delimiter: '/', datePattern: ['d', 'm', 'Y'] }); #} {% endblock %} {% block js_document_ready %} $('.datepicker').datepicker({ autoClose: true, showClearBtn: true, format: 'dd/mm/yyyy', container: 'body', onDraw: function (datePicker) { // materialize select dropdown not proper working on mobile and tablets so we make it browser default select $('.datepicker-container').find('.datepicker-select').addClass('browser-default'); $(".datepicker-container .select-dropdown.dropdown-trigger").remove(); }, onOpen: function (p) { var instance = M.Datepicker.getInstance(this.el); var d = $('#desistimientos_concurso_control_filtro_fechaExamen').val().split(/[^0-9]/); var newDate = new Date(d[2], d[1] - 1, d[0]); instance.setDate(newDate); initDateFormat(instance); }, onSelect: function(date) { var day = String(date.getDate()).padStart(2, '0'); var month = String(date.getMonth() + 1).padStart(2, '0'); var year = String(date.getFullYear()); var fecha = day + '/' + month + '/' + year; $('#desistimientos_concurso_control_filtro_fechaExamen').val(fecha); $('#desistimientos_concurso_control_filtro_fechaExamen').siblings('label').addClass('active'); }, i18n: { cancel: 'Cancelar', clear: 'Limpiar', done: 'Aceptar', weekdays: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"], weekdaysShort: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"], weekdaysAbbrev: ["D", "L", "M", "M", "J", "V", "S"], today: 'Hoy', months: [ 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' ], monthsShort: [ 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' ], } }); $('#datatableNew').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" }, initComplete: function() { $('.tooltipped').tooltip(); }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "foto", render: function(data, type, row, meta) { if (type === 'display') { foto = [ '', ].join(''); return foto; } return data; }, }, {"data" : "apellidos_nombres"}, {"data": "dni"}, {# {"data": "departamentoJudicial", "render": function(data, type, row) { if (type === 'display') { return "
"+ data+ "
"; } return data; } }, #} {"data": "desistimiento.fechaSolicitud"}, {# {"data": "cargo1"}, #} { "data": "cantCargos", "render": function(data, type, row) { if (type === 'display') { return "
"+ data+ "
"; } return data; } }, {"data" : "acciones", render: function(data, type, row, meta) { if (type === 'display') { $botones = [ "", "visibility", "" ].join(''); return $botones; } return data; }, }, ], order: [[ 1, 'desc' ]], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "foto", "searchable": true, "orderable": false, "targets": 0, }, { "name": "apellidos_nombres", "searchable": true, "orderable": false, "targets": 1 }, { "name": "dni", "searchable": true, "orderable": true, "targets": 2 }, { "name": "fechaSolicitud", "searchable": false, "orderable": false, "targets": 3 }, {# { "name": "cargo1", "searchable": false, "orderable": false, "targets": 4 }, #} { "name": "cantCargos", "searchable": false, "orderable": false, "targets": 4 }, { "searchable": false, "orderable": false, "targets": 5 }, ], serverSide: true, processing: true, ajax: { url: '{{ path('desistimientos_datos') }}', type: 'POST' } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered $('select').formSelect(); $('.limpiar').click(function(){ window.location.href="{{ path('desistimientos_index_limpiar') }}" }); {# // Agrego evento de click al botón de limpiar del datepicker $('.datepicker-clear').click(function(){ $('#desistimientos_concurso_control_filtro_fechaExamen').val(''); // Vaciar el valor del input }); #} {% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.dni) }} {{ form_widget(form.dni) }}
{{ form_label(form.textoBusqueda) }} {{ form_widget(form.textoBusqueda) }}
{{ form_widget(form.estado) }} {{ form_label(form.estado) }}
{% if form.children | filter(v => (v.vars.name != "_token" and not (v.vars.value == "" or v.vars.value == []))) | length > 0 %}
{% endif %}
{{ form_end(form) }}
{# #}
Apellidos y Nombres DNI Fecha SolicitudDepartamento JudicialCantidad Cargos/Exámenes Acciones
{% endblock %}