{% extends 'base.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block breadcrumb %}
{% endblock %} {% block javascripts_base %} {% 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) { }, filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.12.1/i18n/es-ES.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "fechaCreacion", "render": function(data, type, row) { if (type === 'display') { var date = new Date(data); var date2 = new Date(data); var options = { weekday: 'long'}; var options2 = { year: '2-digit', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit'}; var formattedDate = date2.toLocaleDateString('es-AR', options) + ', ' + date2.toLocaleDateString('es-ar', options2); formattedDate = formattedDate.replace(',', ''); formattedDate = formattedDate.charAt(0).toUpperCase() + formattedDate.slice(1); return formattedDate + ' hs'; } return data; }}, { "data": "cargo", render: function(data, type, row, meta) { let string_compacto = ""; if(data != null) { tooltiptext = data; string_compacto = data.length >= 80 ? data.substring(0, 80)+"..." : data; } else{ tooltiptext = ""; } let string_final = "Fecha de Creacion | Cargo | Departamento Judicial | Jurisdicción | Cant. Postulantes | Caracter | Acciones |
---|