From 39a96bb69665e6ff488439c67443248107d81e78 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 3 Dec 2010 11:10:51 +0000 Subject: Modified search to return and display the group, parameter, and value that matched. You now can get the same device multiple times if there are multiple param matches. --- provisioning-listdevices-html.lsp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'provisioning-listdevices-html.lsp') diff --git a/provisioning-listdevices-html.lsp b/provisioning-listdevices-html.lsp index 0b646c0..40da260 100644 --- a/provisioning-listdevices-html.lsp +++ b/provisioning-listdevices-html.lsp @@ -20,6 +20,13 @@ require("viewfunctions") Action Name Label + <% if page_info.action == "searchdevices" then %> + <% if view.value[1] and view.value[1].group and view.value[1].group ~= "" then %> + Group + <% end %> + Param + Value + <% end %> <% for k,v in ipairs( view.value ) do %> @@ -42,6 +49,13 @@ require("viewfunctions") <%= html.html_escape(v.name) %> <%= html.html_escape(v.label) %> + <% if page_info.action == "searchdevices" then %> + <% if v.group and v.group ~= "" then %> + <%= html.html_escape(v.group) %> + <% end %> + <%= html.html_escape(v.param) %> + <%= html.html_escape(v.value) %> + <% end %> <% end %> @@ -55,6 +69,6 @@ require("viewfunctions") <% end %> -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createdevice") then +<% if page_info.action == "listdevices" and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createdevice") then viewlibrary.dispatch_component("createdevice") end %> -- cgit v1.2.3