summaryrefslogtreecommitdiffstats
path: root/app/acf-util/roles-newrole-html.lsp
blob: bf42f285526a3d79b3e9c75c20308c0559e5b8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<? local form= ... ?> 
<? --[[
	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 form.value.role and "GET" == ENV["REQUEST_METHOD"] then
		form.value.role.contenteditable = false
	end
	local order = { "role", "permissions" }
	displayform(form, order)
?>
<? --]] ?>