From a9b397e0711b80320cf74e4610fdc27791c84729 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Apr 2008 20:36:02 +0000 Subject: Modified cfe, removing option, errtxt, and name, and adding label - This may break things. Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-controller.lua | 2 -- opennhrp-status-html.lsp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/opennhrp-controller.lua b/opennhrp-controller.lua index 366e87a..2bb03c8 100644 --- a/opennhrp-controller.lua +++ b/opennhrp-controller.lua @@ -30,8 +30,6 @@ local function displaycmdmanagement(pidofstatus) -- next CFE can be used to present the result of the previous action management.actionresult = cfe({ name="actionresult", label="Previous action result", - descr="", --Content of this variable is displayed as
 ... 
in BLACK text - errtxt="", --Content of this variable is displayed as
 ... 
in RED text }) -- Disable management buttons based on if the process is running or not diff --git a/opennhrp-status-html.lsp b/opennhrp-status-html.lsp index 5c16c8f..2c1a531 100644 --- a/opennhrp-status-html.lsp +++ b/opennhrp-status-html.lsp @@ -24,7 +24,7 @@ displayinfo(myform,tags,"viewonly") local myform = form.status.show io.write("\t 0) then io.write(" class='error'") end +if (myform.errtxt) then io.write(" class='error'") end io.write(">" .. myform.label .. "\n") io.write("\t\t
\n") for k,v in pairs(myform.option or {}) do -- cgit v1.2.3