diff options
author | Ted Trask <ttrask01@yahoo.com> | 2017-06-07 20:45:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-06-07 20:45:44 +0000 |
commit | 230c4ab7b9013ff8c44e957794b9495689bb3554 (patch) | |
tree | 48858de4b842d4f00634fe0cb0d5a67aa3abb638 /provisioning-bulk-html.lsp | |
parent | 0c9b9057fdcce2d5cfe3c6437c872bf849cb6a89 (diff) | |
download | acf-provisioning-230c4ab7b9013ff8c44e957794b9495689bb3554.tar.bz2 acf-provisioning-230c4ab7b9013ff8c44e957794b9495689bb3554.tar.xz |
Add bulk HTML action to show available bulk actions
Diffstat (limited to 'provisioning-bulk-html.lsp')
-rw-r--r-- | provisioning-bulk-html.lsp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/provisioning-bulk-html.lsp b/provisioning-bulk-html.lsp new file mode 100644 index 0000000..d1278e1 --- /dev/null +++ b/provisioning-bulk-html.lsp @@ -0,0 +1,19 @@ +<% local form, viewlibrary, page_info, session = ... +htmlviewfunctions = require("htmlviewfunctions") +html = require("acf.html") +%> + +<% if viewlibrary and viewlibrary.dispatch_component then + if viewlibrary.check_permission("bulkcreatedevices") then + viewlibrary.dispatch_component("bulkcreatedevices") + end +end %> + +<% + local viewtype = cfe({type="hidden", value="stream"}) + if viewlibrary.check_permission("bulkdumprawdevices") then + htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumprawdevices"}), page_info) + elseif viewlibrary.check_permission("bulkdumpdevices") then + htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumpdevices"}), page_info) + end +%> |