From 736d860f1c9171512132de7f5ff67c1ed2cf008d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 22 Oct 2008 18:50:22 +0000 Subject: Modified viewfunctions to split displayform, creating displayformstart and displayformend, to provide flexibility while still using the library. Also added support for hidden fields - including a common redir field. Removed redirectOnSuccess from controllerfunctions handle_form, and replaced it with the redir field. Removed redirectOnSuccess from controllers that used it and added handlecommandresults and redir entries to links and forms throughout many views. This will cause a redirect to the originating view when a form is successfully completed. acf_www-controller now includes orig_action in page_info to report the original action launched by the user. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed --- syslog-config-html.lsp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'syslog-config-html.lsp') diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp index e6001b3..efc989f 100644 --- a/syslog-config-html.lsp +++ b/syslog-config-html.lsp @@ -1,4 +1,4 @@ -<% local form, viewlibrary = ... %> +<% local form, viewlibrary, page_info = ... %> <% require("viewfunctions") %> <% --[[ DEBUG INFORMATION @@ -13,9 +13,8 @@ io.write("") end %>

Configuration

-<% if form.descr then %>

<%= string.gsub(form.descr, "\n", "
") %>

<% end %> -<% if form.errtxt then %>

<%= string.gsub(form.errtxt, "\n", "
") %>

<% end %> -
+<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %>

Advanced Configuration

General

@@ -40,8 +39,7 @@ end %> %>

Save and Apply Above Settings

-
Save/Apply above settings
-
+<% displayformend(form) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("startstop") -- cgit v1.2.3