From de2694e907a97dfb6a017509d2589c186dc56e72 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/alpine-baselayout/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- syslog-expert-html.lsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'syslog-expert-html.lsp') diff --git a/syslog-expert-html.lsp b/syslog-expert-html.lsp index 0a36abb..2b1f238 100644 --- a/syslog-expert-html.lsp +++ b/syslog-expert-html.lsp @@ -13,12 +13,12 @@ function informationform(myform,tags) if (myform[v]) then local val = myform[v] io.write("\t 0) then io.write(" class='error'") end + if (val.errtxt) then io.write(" class='error'") end io.write(">" .. val.label .. "\n") io.write("\t\t
" .. val.value .. "\n") if (val.descr) and (#val.descr > 0) then io.write("\t\t

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

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

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

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

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

\n") end io.write("\t\t
\n") end end @@ -32,12 +32,12 @@ function configform(myform,tags) if (myform[v]) then local val = myform[v] io.write("\t 0) then io.write(" class='error'") end + if (val.errtxt) then io.write(" class='error'") end io.write(">" .. val.label .. "\n") io.write("\t\t
" .. html.form[val.type](val) .. "\n") if (val.descr) and (#val.descr > 0) then io.write("\t\t

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

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

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

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

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

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