summaryrefslogtreecommitdiffstats
path: root/provisioning-listdevices-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-12-03 11:10:51 +0000
committerTed Trask <ttrask01@yahoo.com>2010-12-03 11:10:51 +0000
commit39a96bb69665e6ff488439c67443248107d81e78 (patch)
treee9b1508fc1bac2ef899f05c150fa97accb82f61d /provisioning-listdevices-html.lsp
parenta7001d559885b3d494777f0b2d98d1b75b6557b3 (diff)
downloadacf-provisioning-39a96bb69665e6ff488439c67443248107d81e78.tar.bz2
acf-provisioning-39a96bb69665e6ff488439c67443248107d81e78.tar.xz
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.
Diffstat (limited to 'provisioning-listdevices-html.lsp')
-rw-r--r--provisioning-listdevices-html.lsp16
1 files changed, 15 insertions, 1 deletions
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")
<TH>Action</TH>
<TH>Name</TH>
<TH>Label</TH>
+ <% if page_info.action == "searchdevices" then %>
+ <% if view.value[1] and view.value[1].group and view.value[1].group ~= "" then %>
+ <TH>Group</TH>
+ <% end %>
+ <TH>Param</TH>
+ <TH>Value</TH>
+ <% end %>
</TR>
</THEAD><TBODY>
<% for k,v in ipairs( view.value ) do %>
@@ -42,6 +49,13 @@ require("viewfunctions")
</TD>
<TD><%= html.html_escape(v.name) %></TD>
<TD><%= html.html_escape(v.label) %></TD>
+ <% if page_info.action == "searchdevices" then %>
+ <% if v.group and v.group ~= "" then %>
+ <TD><%= html.html_escape(v.group) %></TD>
+ <% end %>
+ <TD><%= html.html_escape(v.param) %></TD>
+ <TD><%= html.html_escape(v.value) %></TD>
+ <% end %>
</TR>
<% end %>
</TBODY>
@@ -55,6 +69,6 @@ require("viewfunctions")
<% end %>
</DL>
-<% 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 %>