diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-22 18:50:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-22 18:50:22 +0000 |
commit | 736d860f1c9171512132de7f5ff67c1ed2cf008d (patch) | |
tree | d5e25cb790c938fbec97aa2151106283d130f13d /syslog-config-html.lsp | |
parent | 41665704f43110b5126b96a9e11be2ab6f86c60f (diff) | |
download | acf-alpine-baselayout-736d860f1c9171512132de7f5ff67c1ed2cf008d.tar.bz2 acf-alpine-baselayout-736d860f1c9171512132de7f5ff67c1ed2cf008d.tar.xz |
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
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r-- | syslog-config-html.lsp | 10 |
1 files changed, 4 insertions, 6 deletions
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("</span>") end %> <H1>Configuration</H1> -<% if form.descr then %><P CLASS='descr'><%= string.gsub(form.descr, "\n", "<BR>") %></P><% end %> -<% if form.errtxt then %><P CLASS='error'><%= string.gsub(form.errtxt, "\n", "<BR>") %></P><% end %> -<form action="" method="POST"> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %> <H2>Advanced Configuration</H2> <H3>General</H3> <DL> @@ -40,8 +39,7 @@ end %> %> </DL> <H2>Save and Apply Above Settings</H2> -<DL><DT>Save/Apply above settings</DT><DD><input class="submit" type="submit" name="<%= form.option %>" value="Save"></DD></DL> -</form> +<% displayformend(form) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("startstop") |