{% extends 'base.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts_base %} function initDateFormat( datePicker ) { {# console.debug(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(); } {% endblock %} {% block js_document_ready %} //defino variable para fecha actual var currentdate = new Date(); var datetime = "Extraído el: " + currentdate.getDate() + "/" + (currentdate.getMonth()+1) + "/" + currentdate.getFullYear() + " " + currentdate.getHours() + ":" + currentdate.getMinutes() + ":" + currentdate.getSeconds(); $('#datatable').dataTable({ createdRow: function(row, data, dataIndex) { if (data['estadoNotificacion'].indexOf('Prioritario')!=-1) { {# $(row).css({"background-color":"red"}); #} {# $(row).addClass('identidad-color lighten-5'); #} } }, filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.12.1/i18n/es-ES.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "asunto", render: function(data, type, row, meta) { let string_compacto = ""; if(data != null) { string_compacto = data.length >= 30 ? data.substring(0, 30)+"..." : data; tooltiptext = data; } else {tooltiptext = "";} let string_final = '
Asunto | Etiquetas | {#Estado | #}Fecha - Hora Publicación | Acciones |
---|