From 4489b67360a4409b754c9cc5f10f1491b619d8bd 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/dhcp/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dhcp-home-html.lsp | 4 ++-- dhcp-status-html.lsp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp index 075e1c3..849f6f2 100644 --- a/dhcp-home-html.lsp +++ b/dhcp-home-html.lsp @@ -9,7 +9,7 @@ function displayinfo(myform,tags,viewonly) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -20,7 +20,7 @@ function displayinfo(myform,tags,viewonly) io.write("\t\t
" .. html.form[val.type](val) .. "\n") end 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 diff --git a/dhcp-status-html.lsp b/dhcp-status-html.lsp index 183b2bb..d68a5fe 100644 --- a/dhcp-status-html.lsp +++ b/dhcp-status-html.lsp @@ -6,7 +6,7 @@ function displayinfo(myform,tags,viewonly) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -17,7 +17,7 @@ function displayinfo(myform,tags,viewonly) io.write("\t\t
" .. html.form[val.type](val) .. "\n") end 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