summaryrefslogtreecommitdiffstats
path: root/provisioning-searchbymac-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-03-01 16:10:16 +0000
committerTed Trask <ttrask01@yahoo.com>2011-03-01 16:10:16 +0000
commitcd761a32e4afafd6104a95867d3770f23229fde2 (patch)
tree068369f1c52725031ef636a6be2887486fdd7c83 /provisioning-searchbymac-html.lsp
parent10db00827279e3cc3d8a6c2f4c89db325ae62ef4 (diff)
downloadacf-provisioning-cd761a32e4afafd6104a95867d3770f23229fde2.tar.bz2
acf-provisioning-cd761a32e4afafd6104a95867d3770f23229fde2.tar.xz
Made getdevicevalues and searchdevices into proper forms and added searchbyextension and searchbymac actions.
Diffstat (limited to 'provisioning-searchbymac-html.lsp')
-rw-r--r--provisioning-searchbymac-html.lsp25
1 files changed, 25 insertions, 0 deletions
diff --git a/provisioning-searchbymac-html.lsp b/provisioning-searchbymac-html.lsp
new file mode 100644
index 0000000..8c5cb9c
--- /dev/null
+++ b/provisioning-searchbymac-html.lsp
@@ -0,0 +1,25 @@
+<% local form, viewlibrary, page_info, session = ...
+require("viewfunctions")
+%>
+
+<%
+if session.searchdevicesresult then
+ local data = session.searchdevicesresult
+ session.searchdevicesresult = nil
+
+ if data.value and data.value.result then
+ local func = haserl.loadfile(page_info.viewfile:gsub("searchbymac", "listdevices"))
+ func(data.value.result, viewlibrary, page_info, session)
+ end
+end
+%>
+
+<H1>Search by MAC Address</H1>
+<DL>
+<form action="/cgi-bin/acf/provisioning/provisioning/searchdevices" method="POST">
+<input type="hidden" name="id" value="device.mac">
+<input type="hidden" name="comparison" value="~">
+<DT>MAC Address</DT>
+<DD><input class="text" type="text" name="value" value="" ></DD>
+<DT></DT><DD><input class="submit" type="submit" name="Search" value="Search"></DD>
+</FORM></DL>