mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
55 lines
1.2 KiB
Lua
55 lines
1.2 KiB
Lua
local get_users_url = ntop.getHttpPrefix().."/lua/admin/get_users.lua"
|
|
local users_type = {ntopng=ternary(ntop.isnEdge(), i18n("nedge.system_users"), i18n("login.web_users"))}
|
|
|
|
local title = users_type["ntopng"]
|
|
|
|
print [[
|
|
<div id="table-users"></div>
|
|
<script>
|
|
$("#table-users").datatable({
|
|
url: "]]
|
|
print (get_users_url)
|
|
print [[",
|
|
showPagination: true,
|
|
title: "]] print(title) print[[",
|
|
buttons: [
|
|
"<a href='#add_user_dialog' role='button' class='add-on btn' data-toggle='modal'><i class='fas fa-user-plus fa-sm'></i></a>"
|
|
],
|
|
columns: [
|
|
{
|
|
title: "]] print(i18n("login.username")) print[[",
|
|
field: "column_username",
|
|
sortable: true,
|
|
css: {
|
|
textAlign: 'left'
|
|
}
|
|
},
|
|
{
|
|
title: "]] print(i18n("users.full_name")) print[[",
|
|
field: "column_full_name",
|
|
sortable: true,
|
|
css: {
|
|
textAlign: 'left'
|
|
}
|
|
|
|
},
|
|
{
|
|
title: "]] print(i18n("manage_users.group")) print[[",
|
|
field: "column_group",
|
|
sortable: true,
|
|
css: {
|
|
textAlign: 'center'
|
|
}
|
|
},
|
|
{
|
|
title: "]] print(i18n("users.edit")) print[[",
|
|
field: "column_edit",
|
|
css: {
|
|
textAlign: 'center'
|
|
}
|
|
},
|
|
]
|
|
});
|
|
</script>
|
|
|
|
]]
|