From e15e054084a0805f70dd307ada18018e42fcc6b4 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 22 Oct 2008 20:36:29 +0000 Subject: 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 --- tinydns-config-html.lsp | 4 +++- tinydns-listfiles-html.lsp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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("") --]] %> +<% 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("") %> <% displaycommandresults({"delete", "edit", "editfile"}, session) %> +<% displaycommandresults({"newfile"}, session, true) %>

Configuration

Edit/View existing Domains

-- cgit v1.2.3