Added host pool policy modal for future needs

This commit is contained in:
Matteo Biscosi 2021-05-14 15:07:43 +02:00
parent 4b31a0d21c
commit bf7dcc4e85
5 changed files with 95 additions and 12 deletions

View file

@ -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"
},
}