From eb779faf48d89baea5b3b9b4ce09cb09e9cd9cfe Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 14 May 2008 20:44:18 +0000 Subject: Added suppress_view option to dispatch_component and return viewtable. Removed hostname from pageinfo and replaced with component load in template. A little cleanup to use pageinfo in views. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1119 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/acf-util/password-html.lsp | 4 +-- app/acf-util/password-status-html.lsp | 4 +-- app/acf-util/roles-editrole-html.lsp | 4 +-- app/acf_www-controller.lua | 67 ++++++++++++++--------------------- app/template-html.lsp | 17 ++++++--- 5 files changed, 45 insertions(+), 51 deletions(-) (limited to 'app') diff --git a/app/acf-util/password-html.lsp b/app/acf-util/password-html.lsp index 9de2d4f..8b6d563 100755 --- a/app/acf-util/password-html.lsp +++ b/app/acf-util/password-html.lsp @@ -1,4 +1,4 @@ - + ") form.value.password_confirm.type = "password" end -- If not in newuser action, disable userid - if nil == string.find(ENV["PATH_INFO"], "/newuser") then + if pageinfo.action ~= "newuser" then form.value.userid.contenteditable = false end local order = { "userid", "username", "roles", "password", "password_confirm" } diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp index f544884..0db0256 100755 --- a/app/acf-util/password-status-html.lsp +++ b/app/acf-util/password-status-html.lsp @@ -1,4 +1,4 @@ - + DEBUGGING

DEBUG INFO: CFE

") @@ -31,7 +31,7 @@ io.write("
") [Edit this account] [Delete this account] - [View roles for this account] + [View roles for this account] diff --git a/app/acf-util/roles-editrole-html.lsp b/app/acf-util/roles-editrole-html.lsp index d96ac56..2094b54 100644 --- a/app/acf-util/roles-editrole-html.lsp +++ b/app/acf-util/roles-editrole-html.lsp @@ -1,4 +1,4 @@ - + -<?= pageinfo.hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action ?> + +<?= hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action ?> ">