summaryrefslogtreecommitdiffstats
path: root/lib/viewfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/viewfunctions.lua')
-rw-r--r--lib/viewfunctions.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index 693b3d8..139b6f6 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -109,7 +109,7 @@ function displayformitem(myitem, name, viewtype)
io.write(' class="error"')
end
io.write(">" .. myitem.label .. "</DT>\n")
- io.write("<DD></DD>\n")
+ io.write("<DD>\n")
end
if (viewtype == "viewonly") then
myitem.disabled = "true"
@@ -160,9 +160,11 @@ function displayformitem(myitem, name, viewtype)
else
io.write((html.form[myitem.type](myitem) or "") .. "\n")
end
- if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
- if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
- io.write("</DD>\n")
+ if myitem.type ~= "hidden" then
+ if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
+ if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
+ io.write("</DD>\n")
+ end
end
function displayformstart(myform, page_info)