From 5148a9dd902ff96559c7df1915dae512a275147c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 29 Oct 2010 08:30:32 +0000 Subject: Added output of default value for form items. --- lib/viewfunctions.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/viewfunctions.lua') diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index 5950af1..833d5b4 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -94,6 +94,7 @@ function displayformitem(myitem, name, viewtype, header_level, group) end if myitem.type ~= "hidden" and myitem.type ~= "group" then if myitem.descr then io.write('

' .. string.gsub(html.html_escape(myitem.descr), "\n", "
") .. "

\n") end + if myitem.default then io.write('

Default:' .. string.gsub(html.html_escape(myitem.default), "\n", "
") .. "

\n") end if myitem.errtxt then io.write('

' .. string.gsub(html.html_escape(myitem.errtxt), "\n", "
") .. "

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