<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% -- Determine all of the groups local columns = {"device_id"} for i,v in ipairs( view.value.groups.value ) do columns[#columns+1] = v.name end %> <% htmlviewfunctions.displaycommandresults({"deletedevice", "editdevice", "editdeviceparams", "overridedeviceparams"}, session) %> <% htmlviewfunctions.displaycommandresults({"createdevice"}, session, true) %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %> <% for i,g in ipairs(view.value.groups.value) do %> <% end %>
Action Device ID<%= html.html_escape(g.label) %>
Page:
<% if view.errtxt then %>

<%= html.html_escape(view.errtxt) %>

<% end %> <% if #view.value.result.value == 0 then %>

No devices found

<% end %> <% htmlviewfunctions.displaysectionend(header_level) %> <% if page_info.action == "listdevices" and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createdevice") then viewlibrary.dispatch_component("createdevice") end %>