mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Host Pools UI changes
- Do now show the "Not Assigned" group in user pool dropdown - Show an alert message when creating a Captive Portal user and no pools are defined - Improve unique member validator to account missing network prefixes - Prevent deleting an Host Group when a captive portal user is defined on it
This commit is contained in:
parent
1bd0d01658
commit
0db8abd83e
11 changed files with 120 additions and 39 deletions
|
|
@ -17,6 +17,7 @@ require "lua_utils"
|
|||
require "graph_utils"
|
||||
require "alert_utils"
|
||||
require "historical_utils"
|
||||
local host_pools_utils = require "host_pools_utils"
|
||||
|
||||
debug_hosts = false
|
||||
page = _GET["page"]
|
||||
|
|
@ -457,8 +458,7 @@ if((page == "overview") or (page == nil)) then
|
|||
print(" [ <A HREF="..ntop.getHttpPrefix().."/lua/flows_stats.lua?network_id="..host["local_network_id"].."&network_name="..escapeHTML(host["local_network_name"])..">".. host["local_network_name"].."</A> ]")
|
||||
end
|
||||
|
||||
local key = "ntopng.prefs.".. ifId ..".host_pools.details."..host["host_pool_id"]
|
||||
local pool_name = ntop.getHashCache(key, "name")
|
||||
local pool_name = host_pools_utils.getPoolName(ifId, host["host_pool_id"])
|
||||
print(' <span class="label label-default">Pool: '..pool_name.."</span>")
|
||||
else
|
||||
if(host["mac"] ~= nil) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue