% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletegroup", "editgroup"}, session) %> <% htmlviewfunctions.displaycommandresults({"creategroup"}, session, true) %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
Action | Name | Label | Sequence |
---|---|---|---|
<% group_id.value = v.group_id %> <% if viewlibrary.check_permission("editgroup") then %> <% htmlviewfunctions.displayitem(cfe({type="link", value={group_id=group_id, redir=redir}, label="", option="Edit", action="editgroup"}), page_info, -1) %> <% end %> <% if viewlibrary.check_permission("deletegroup") then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={group_id=group_id}, label="", option="Delete", action="deletegroup", class="deletegroup"}), page_info, -1) %> <% end %> | <%= html.html_escape(v.name) %> | <%= html.html_escape(v.label) %> | <%= html.html_escape(v.seq) %> |
<%= html.html_escape(view.errtxt) %>
<% end %> <% if #view.value == 0 then %>No groups found
<% end %> <% htmlviewfunctions.displaysectionend(header_level) %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("creategroup") then viewlibrary.dispatch_component("creategroup") end %>