summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-html.lsp
blob: d84531687af1d7c4aa99f9e3b2517af67fb379a6 (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><?= 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.contenteditable = false
	end
	local order = { "userid", "username", "roles", "password", "password_confirm" }
	displayform(form, order)
?>