summaryrefslogtreecommitdiffstats
path: root/app/acf-util/roles-editrole-html.lsp
blob: 5f106fc77a2b6e47ba016358cb857379ec1c12b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<% local form, viewtable, page_info = ... %> 
<% require("viewfunctions") %>

<% --[[
	io.write(html.cfe_unpack(form))
--]] %>

<H1><%= form.label %></H1>
<%
	form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
	-- If editing existing role, disable role
	if page_info.action ~= "newrole" then
		form.value.role.contenteditable = false
	end
	local order = { "role", "permissions" }
	displayform(form, order)
%>