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

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