From 83657e146b87a2318c6fe0da349c8b54d0efe07f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 14 Oct 2011 13:35:23 +0000 Subject: Added new listrequests, deleterequest, and createdevicefromrequest actions --- provisioning-listrequests-html.lsp | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 provisioning-listrequests-html.lsp (limited to 'provisioning-listrequests-html.lsp') diff --git a/provisioning-listrequests-html.lsp b/provisioning-listrequests-html.lsp new file mode 100644 index 0000000..b2c1e6e --- /dev/null +++ b/provisioning-listrequests-html.lsp @@ -0,0 +1,66 @@ +<% local view, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + + + + + +<% displaycommandresults({"deleterequest"}, session) %> + +

Requests

+
+ + + + + + + + + +<% for k,v in ipairs( view.value ) do %> + + + + + + + +<% end %> + +
ActionTimestampMAC AddressIP AddressUser Agent
+ <% if viewlibrary.check_permission("deleterequest") then %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleterequest?mac="..v.mac, label="Delete ", class="deleterequest"} %> + <% end %> + <% if v.device_id then %> + <% if viewlibrary.check_permission("searchdevices") then %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/searchdevices?id=device_id&value="..v.device_id.."&redir=searchdevices&Search=Search", label="Search "} %> + <% end %> + <% else %> + <% if viewlibrary.check_permission("createdevicefromrequest") then %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/createdevicefromrequest?mac="..v.mac.."&Create=Create", label="Create "} %> + <% end %> + <% end %> + <%= html.html_escape(v.date) %><%= html.html_escape(v.mac) %><%= html.html_escape(v.ip) %><%= html.html_escape(v.agent) %>
-- cgit v1.2.3