% local form, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"newuser", "edituser", "deleteuser"}, session) %> <% local header_level = htmlviewfunctions.displayheader(form, page_info) local newaccount = cfe({ type="link", value={}, label="Create New Account", option="Create", action=page_info.script..page_info.prefix..page_info.controller.."/newuser" }) newaccount.value.redir = cfe({ type="hidden", value=page_info.orig_action }) htmlviewfunctions.displayitem(newaccount, htmlviewfunctions.incrementheader(header_level), page_info) htmlviewfunctions.displayheader(cfe({label="Existing Accounts"}), page_info, htmlviewfunctions.incrementheader(header_level)) for i,user in ipairs(form.value) do local name = html.html_escape(user.value.userid.value) %>
<%= name %>
<%= html.html_escape(user.value.userid.label) %> | <%= html.html_escape(user.value.userid.value) %> |
<%= html.html_escape(user.value.username.label) %> | <%= html.html_escape(user.value.username.value) %> |
<%= html.html_escape(user.value.roles.label) %> | <%= html.html_escape(table.concat(user.value.roles.value, ", ")) %> |
Option | [Edit this account] [Delete this account] [View roles for this account] |