summaryrefslogtreecommitdiffstats
path: root/app/acf-util/roles-editrole-html.lsp
blob: a1bfc7a14272db2aaa2c477740d4ac783e807841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<? local form, viewtable, pageinfo = ... ?> 
<? --[[
	io.write(html.cfe_unpack(form))
--]] ?>

<? ---[[ ?>
<H1><?= form.label ?></H1>
<?
	require("viewfunctions")
	-- If editing existing role, disable role
	if pageinfo.action ~= "newrole" then
		form.value.role.contenteditable = false
	end
	local order = { "role", "permissions" }
	displayform(form, order)
?>
<? --]] ?>