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
commite15e054084a0805f70dd307ada18018e42fcc6b4 (patch)
tree5e823d88a8d6729af1a742d2169b7daf0cf64301
parente3f8780934093cbf4618bfa39f69f25920dfb28e (diff)
downloadacf-tinydns-e15e054084a0805f70dd307ada18018e42fcc6b4.tar.bz2
acf-tinydns-e15e054084a0805f70dd307ada18018e42fcc6b4.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/tinydns/trunk@1561 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rwxr-xr-xtinydns-config-html.lsp4
-rw-r--r--tinydns-listfiles-html.lsp1
2 files changed, 4 insertions, 1 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp
index 47c9191..1193b65 100755
--- a/tinydns-config-html.lsp
+++ b/tinydns-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 %>
diff --git a/tinydns-listfiles-html.lsp b/tinydns-listfiles-html.lsp
index e700b3c..b3613ce 100644
--- a/tinydns-listfiles-html.lsp
+++ b/tinydns-listfiles-html.lsp
@@ -10,6 +10,7 @@ io.write("</span>")
%>
<% displaycommandresults({"delete", "edit", "editfile"}, session) %>
+<% displaycommandresults({"newfile"}, session, true) %>
<h1>Configuration</h1>
<h2>Edit/View existing Domains</h2>