Changed users table groups field

Melina Gamboa 2021-06-08 20:59:11 +02:00 committed by root
parent 50418914c9
commit e88a602baf
1 changed files with 7 additions and 3 deletions

View File

@ -148,9 +148,9 @@ $(document).ready(function() {
// '<button id="btn-edit" class="btn btn-xs" type="button" data-placement="top" ><i class="fa fa-pencil" style="color:darkblue"></i></button> \
},
{ "data": "first", "width": "10px"},
{ "data": "last", "width": "200px"},
{ "data": "last", "width": "150px"},
{ "data": "email", "width": "10px"},
{ "data": "keycloak_groups", "width": "10px" },
{ "data": "keycloak_groups", "width": "50px" },
{ "data": "roles", "width": "10px" },
],
"order": [[6, 'asc']],
@ -177,7 +177,11 @@ $(document).ready(function() {
{
"targets": 8,
"render": function ( data, type, full, meta ) {
return "<li>" + full.keycloak_groups.join("</li><li>") + "</li>"
grups = ''
full.keycloak_groups.forEach(element => {
grups += '<span class="label label-primary" style="margin: 5px;">' + element + '</span>'
})
return grups
}},
]
} );