summaryrefslogtreecommitdiffstats
path: root/provisioning-searchdevices-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-02-28 12:33:52 +0000
committerTed Trask <ttrask01@yahoo.com>2011-02-28 12:33:52 +0000
commitec3a8ef069def94b623279885dd9d3b64ef90818 (patch)
treeacae06c22ca0ee54677dabe0a817afa6a5987984 /provisioning-searchdevices-html.lsp
parente839d6e272fb8481d18063a75d6e63a2409c82c7 (diff)
downloadacf-provisioning-ec3a8ef069def94b623279885dd9d3b64ef90818.tar.bz2
acf-provisioning-ec3a8ef069def94b623279885dd9d3b64ef90818.tar.xz
Removed name from provisioning_devices, changed getdevicevalues to take parameter id, comparision, value (like search)
Diffstat (limited to 'provisioning-searchdevices-html.lsp')
-rw-r--r--provisioning-searchdevices-html.lsp19
1 files changed, 17 insertions, 2 deletions
diff --git a/provisioning-searchdevices-html.lsp b/provisioning-searchdevices-html.lsp
index f0d39b0..45e44d6 100644
--- a/provisioning-searchdevices-html.lsp
+++ b/provisioning-searchdevices-html.lsp
@@ -2,10 +2,25 @@
require("viewfunctions")
%>
-<% if form.value.result then
+<% if form.value.values then %>
+<H1>Device</H1>
+ <DL>
+<% if form.errtxt then io.write("<P CLASS='error'>" .. string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") .. "</P>\n") end %>
+ <DT>Device ID</DT><DD><input class="text" type="text" value="<%= html.html_escape(form.value.result.value[1].device_id) %>" readonly="true"></DD>
+ <DT>Label</DT><DD><input class="text" type="text" value="<%= html.html_escape(form.value.result.value[1].label) %>" readonly="true"></DD>
+<H2>Parameter Values</H2>
+<%
+ require("session")
+ val = session.serialize("values", form.value.values.value)
+ val = string.gsub(val, "[^\n]*%{%}\n", "")
+ print("<pre>"..val.."</pre>")
+ form.value.values = nil
+elseif form.value.result then
local func = haserl.loadfile(page_info.viewfile:gsub("searchdevices", "listdevices"))
func(form.value.result, viewlibrary, page_info, session)
-end %>
+%>
+ </DL>
+<% end %>
<H1><%= html.html_escape(form.label) %></H1>
<%