<% local view, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"deletegroup", "editgroup"}, session) %> <% displaycommandresults({"creategroup"}, session, true) %>

Groups

<% for k,v in ipairs( view.value ) do %> <% end %>
Action Name Label Sequence
<% if viewlibrary.check_permission("deletegroup") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletegroup?group_id="..v.group_id, label="Delete "} %> <% end %> <% if viewlibrary.check_permission("editgroup") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editgroup?group_id="..v.group_id.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <%= html.html_escape(v.name) %> <%= html.html_escape(v.label) %> <%= html.html_escape(v.seq) %>
<% if view.errtxt then %>

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

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

No groups found

<% end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("creategroup") then viewlibrary.dispatch_component("creategroup") end %>