diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-02-02 20:59:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-02-02 20:59:08 +0000 |
commit | df80810456f4a13d48eba24bfa1fa79b360c8426 (patch) | |
tree | a62390b08c245d5e615a9b074d73a8b15adf8d0a /app/acf-util/roles-editrole-html.lsp | |
parent | 27c777f203a409442ca184f3aa20e703b4784927 (diff) | |
download | acf-core-df80810456f4a13d48eba24bfa1fa79b360c8426.tar.bz2 acf-core-df80810456f4a13d48eba24bfa1fa79b360c8426.tar.xz |
Changed viewfunctions.lua to htmlviewfunctions.lua and made it an actual module
It should have been a module all along, but wasn't
Unfortunately, this means changes to pretty much every view file
Diffstat (limited to 'app/acf-util/roles-editrole-html.lsp')
-rw-r--r-- | app/acf-util/roles-editrole-html.lsp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/acf-util/roles-editrole-html.lsp b/app/acf-util/roles-editrole-html.lsp index 5d1582f..d464cd1 100644 --- a/app/acf-util/roles-editrole-html.lsp +++ b/app/acf-util/roles-editrole-html.lsp @@ -1,14 +1,14 @@ <% local form, viewtable, page_info = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %> <H1><%= html.html_escape(form.label) %></H1> <% - displayformstart(form, page_info) + htmlviewfunctions.displayformstart(form, page_info) -- If editing existing role, disable role if page_info.action ~= "newrole" then form.value.role.readonly = true end - displayformitem(form.value.role, "role") + htmlviewfunctions.displayformitem(form.value.role, "role") -- copied this code from viewfunctions so we can disable the default boxes local myitem = form.value.permissions @@ -63,5 +63,5 @@ if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(html.html_escape(myitem.errtxt), "\n", "<BR>") .. "</P>\n") end io.write("</DD>\n") - displayformend(form) + htmlviewfunctions.displayformend(form) %> |