{% extends 'base.html.twig' %}
{% block js_document_ready %}
$('#datatable').dataTable({
filter : false,
language: {
"url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json"
},
aLengthMenu: "",
bAutoWidth: false,
"columns": [
{
"data": "imagen",
render: function(data, type, row, meta) {
console.debug(data);
if (type === 'display') {
imagen = [
'',
].join('');
return imagen;
}
return data;
},
},
{ "data": "nombre_apellido" },
{ "data": "dni" },
{ "data": "estado" },
{
"data": "acciones" ,
render: function(data, type, row, meta) {
if (type === 'display') {
$botones = [
"",
"how_to_reg",
"",
].join('');
$botones += [
' ',
'print',
' ',
].join('');
{# $botones += [
' ',
'print',
' ',
].join(''); #}
return $botones;
}
return data;
},
},
],
order: [[ 1, 'asc' ]],
columnDefs: [
// These are the column name variables that will be sent to the server
{
"name": "imagen",
"searchable": false,
"orderable": false,
"targets": 0
},
{
"name": "nombre_apellido",
"targets": 1
},
{
"name": "dni",
"targets": 2
},
{
"name": "estado",
"targets": 3
},
{
"searchable": false,
"orderable": false,
"targets": 4
},
],
serverSide: true,
processing: true,
ajax: {
url: '{{ path('r_i_a_presentacion_antecedentes_2024_control_datos', { 'reset': 1 }) }}',
type: 'POST'
}
});
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
{# $('.modal1').modal(); #}
$('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 titulo_body %}
list
Foto | Nombre y Apellido | DNI | Estado | Acciones |
---|