summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-22 20:36:29 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-22 20:36:29 +0000
commite4bcdbc80fe799760520fac53db0d84b63aaee17 (patch)
treecfb883761831fe55bfaa1e62a6a515c2de719113
parent643c4532c01e68b8b987bb94a802cfe84234f2a0 (diff)
downloadacf-openntpd-e4bcdbc80fe799760520fac53db0d84b63aaee17.tar.bz2
acf-openntpd-e4bcdbc80fe799760520fac53db0d84b63aaee17.tar.xz
Modified viewfunctions displaycommandresults to not delete the error results of a form so the form can still display it. Modified a bunch of views to display the results of component forms. Also added code to displayform and displayformstart to automatically generate the action if passed page_info.
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@1561 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--openntpd-config-html.lsp4
1 files changed, 3 insertions, 1 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp
index a84e5f2..72ba5b6 100644
--- a/openntpd-config-html.lsp
+++ b/openntpd-config-html.lsp
@@ -1,4 +1,4 @@
-<% local form, viewlibrary, page_info = ...
+<% local form, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
<%
@@ -9,6 +9,8 @@ io.write("</span>")
--]]
%>
+<% displaycommandresults({"startstop"}, session) %>
+
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
end %>