summaryrefslogtreecommitdiffstats
path: root/provisioning-listdevices-html.lsp
diff options
context:
space:
mode:
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 %>