From c129791edf9141cdb88624fd150179ce06364e5f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 Jun 2017 20:45:44 +0000 Subject: Add bulk HTML action to show available bulk actions (cherry picked from commit 230c4ab7b9013ff8c44e957794b9495689bb3554) --- provisioning-bulk-html.lsp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 provisioning-bulk-html.lsp (limited to 'provisioning-bulk-html.lsp') 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 +%> -- cgit v1.2.3