summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-html.lsp
blob: 7de8f88339f4ef5d2e426b807f8a355417184c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% local form, viewlibrary, pageinfo = ... %>
<% require("viewfunctions") %>
<%
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(form))
io.write(html.cfe_unpack(FORM))
io.write("</span>")
--]]
%>

<H1><%= html.html_escape(form.label) %></H1>
<% 
	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)
%>