From b9fa0863345ea52d8aa8a563b5fc7981f160de6a 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/fetchmail/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchmail-listentries-html.lsp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fetchmail-listentries-html.lsp') diff --git a/fetchmail-listentries-html.lsp b/fetchmail-listentries-html.lsp index 2b2e54e..982ce9d 100644 --- a/fetchmail-listentries-html.lsp +++ b/fetchmail-listentries-html.lsp @@ -9,7 +9,7 @@ io.write("") --]] %> -<% displaycommandresults({"deleteentry"}, session) %> +<% displaycommandresults({"editentry", "deleteentry", "createentry"}, session) %>

Edit/View Fetchmail Entries

@@ -23,7 +23,7 @@ io.write("") <% for i,entry in ipairs(data.value) do %> - <% io.write(html.link{value = "editentry?entry=" .. entry.entry, label="Edit " }) %> + <% io.write(html.link{value = "editentry?entry=" .. entry.entry.."&redir="..page_info.orig_action, label="Edit " }) %> <% io.write(html.link{value = "deleteentry?entry=" .. entry.entry, label="Delete " }) %> <%= entry.entry %> @@ -35,6 +35,7 @@ io.write("")
Add new entry
" method="POST"> +
-- cgit v1.2.3