summaryrefslogtreecommitdiffstats
path: root/provisioning-bulk-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-06-07 20:45:44 +0000
committerTed Trask <ttrask01@yahoo.com>2017-06-07 21:24:14 +0000
commitc129791edf9141cdb88624fd150179ce06364e5f (patch)
tree2770b5b1993dc0d9f50acc6bf00bb5c53ccf4547 /provisioning-bulk-html.lsp
parentd6750dc482da61f4e982d5e76f9209c6c4a69a25 (diff)
downloadacf-provisioning-c129791edf9141cdb88624fd150179ce06364e5f.tar.bz2
acf-provisioning-c129791edf9141cdb88624fd150179ce06364e5f.tar.xz
Add bulk HTML action to show available bulk actions
(cherry picked from commit 230c4ab7b9013ff8c44e957794b9495689bb3554)
Diffstat (limited to 'provisioning-bulk-html.lsp')
-rw-r--r--provisioning-bulk-html.lsp19
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
+%>