mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added host pool policy modal for future needs
This commit is contained in:
parent
4b31a0d21c
commit
bf7dcc4e85
5 changed files with 95 additions and 12 deletions
|
|
@ -14,6 +14,7 @@ local host_pools = require "host_pools"
|
|||
local host_pool = host_pools:create()
|
||||
local all_pools = host_pools:get_all_pools()
|
||||
local pool_id_get = _GET["pool"]
|
||||
local current_pool_name = all_pools[tonumber(pool_id_get)]["name"]
|
||||
|
||||
-- if the _GET["pool"] is not defined then
|
||||
-- show the first host pool in the page
|
||||
|
|
@ -50,8 +51,11 @@ local context = {
|
|||
json = json,
|
||||
pool = host_pool,
|
||||
manage_host_members = {
|
||||
pool_id_get = pool_id_get,
|
||||
all_pools = all_pools
|
||||
pool_id_get = pool_id_get,
|
||||
current_pool_name = current_pool_name,
|
||||
all_pools = all_pools,
|
||||
all_policies = all_policies,
|
||||
old_policy_name = "Test policy"
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue