% local form, viewlibrary, pageinfo = ... %>
<% require("viewfunctions") %>
<%
--[[ DEBUG INFORMATION
io.write("
DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(form))
io.write(html.cfe_unpack(FORM))
io.write("")
--]]
%>
<%= html.html_escape(form.label) %>
<%
if form.value.password and form.value.password_confirm then
form.value.password.type = "password"
form.value.password_confirm.type = "password"
end
-- If not in newuser action, disable userid
if pageinfo.action ~= "newuser" then
form.value.userid.readonly = true
end
local order = { "userid", "username", "roles", "password", "password_confirm" }
displayform(form, order)
%>