From ec3a8ef069def94b623279885dd9d3b64ef90818 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 28 Feb 2011 12:33:52 +0000 Subject: Removed name from provisioning_devices, changed getdevicevalues to take parameter id, comparision, value (like search) --- provisioning-searchdevices-html.lsp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'provisioning-searchdevices-html.lsp') 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 %> +

Device

+
+<% if form.errtxt then io.write("

" .. string.gsub(html.html_escape(form.errtxt), "\n", "
") .. "

\n") end %> +
Device ID
+
Label
+

Parameter Values

+<% + require("session") + val = session.serialize("values", form.value.values.value) + val = string.gsub(val, "[^\n]*%{%}\n", "") + print("
"..val.."
") + 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 %> +%> +
+<% end %>

<%= html.html_escape(form.label) %>

<% -- cgit v1.2.3