From 1e804aab4434b634a7821a234683da438b174db8 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/gnats/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- gnats-report-html.lsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnats-report-html.lsp') diff --git a/gnats-report-html.lsp b/gnats-report-html.lsp index 47ca45d..7047653 100644 --- a/gnats-report-html.lsp +++ b/gnats-report-html.lsp @@ -14,7 +14,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -36,7 +36,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end -- cgit v1.2.3