{% 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 = '
'+string_compacto; string_final += '
'; return string_final; } }, { "data": "etiquetas" }, { "data": "fechaHoraPublicacion"}, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ ' ', 'visibility', ' ', ].join(''); if(data['confirmar'] != null) { $botones += [ ' ', ].join(''); } if(data['quitar'] != null) { $botones += [ ' ', ].join(''); } return $botones; } return data; }, }, ], order: [[ {{ app.session.get(constant('App\\Controller\\OD\\MaterialSesionController::FORM_CONSULTA_MATERIAL_SESION_ORDER_COL')) ?? 2 }} , '{{app.session.get(constant('App\\Controller\\OD\\MaterialSesionController::FORM_CONSULTA_MATERIAL_SESION_ORDER_DIR')) ?? 'desc'}}']], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "asunto", "targets": 0 }, { "name": "etiquetas", "searchable": false, "orderable": false, "targets": 1 }, {# { "name": "estadoNotificacion", "targets": 2 }, #} { "name": "fechaHoraPublicacion", "targets": 2 }, { "searchable": false, "orderable": false, "targets": 3 }, ], "displayStart": {{ app.session.get(constant('App\\Controller\\OD\\MaterialSesionController::FORM_CONSULTA_MATERIAL_SESION_START')) ?? 0 }}, serverSide: true, processing: true, ajax: { url: '{{ path('materiales_sesion_datos', {'idView' : sesion.idView}) }}', type: 'POST' } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered {# $('.modal1').modal(); #} $('select').formSelect(); {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block breadcrumb %} {% endblock %} {% block titulo_body %} business_center

Selección de Material de Trabajo

{% endblock %} {% block titulo_acciones_body %} {% if is_granted(constant('App\\Security\\Voter\\SesionVoter::ACCESS_EDIT'),sesion) %} {# #} {% endif %} {% endblock %} {% block body %}
{{ form_start(form) }}
FILTRAR POR:
{{ form_widget(form.textoBusqueda) }} {{ form_label(form.textoBusqueda) }}
{{ form_label(form.fechaHoraPublicacionDesde) }} {{ form_widget(form.fechaHoraPublicacionDesde) }}
{{ form_label(form.fechaHoraPublicacionHasta) }} {{ form_widget(form.fechaHoraPublicacionHasta) }}
{{ form_end(form) }}

{# #}
Asunto EtiquetasEstadoFecha - Hora Publicación Acciones
{% endblock %}