Implement pool policy editor

This commit is contained in:
Alfredo Cardigliano 2021-05-18 16:48:53 +02:00
parent 685eb72767
commit 3a67f53b10
11 changed files with 854 additions and 2 deletions

View file

@ -117,4 +117,18 @@ function ui_utils.render_table_picker(name, context, modals)
})
end
---Render a Tags Input box.
--@param name The component unique name
---@param tags A table containing the values
---@return string
function ui_utils.render_tag_input(name, tags)
local options = {
instance_name = name,
json = json,
tags = tags or {}, -- initial tags
}
return template_utils.gen("pages/components/tag-input.template", options)
end
return ui_utils