summaryrefslogtreecommitdiffstats
path: root/dansguardian-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-22 18:50:22 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-22 18:50:22 +0000
commit52ad6edf74ca2e903972849b6a47a14786520449 (patch)
treed784e3a06ea3508f89c2092633960b43f3dc834c /dansguardian-html.lsp
parent9624824d8a8be6989e38e664553917fb6049b40a (diff)
downloadacf-dansguardian-52ad6edf74ca2e903972849b6a47a14786520449.tar.bz2
acf-dansguardian-52ad6edf74ca2e903972849b6a47a14786520449.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/dansguardian/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dansguardian-html.lsp')
-rw-r--r--dansguardian-html.lsp6
1 files changed, 4 insertions, 2 deletions
diff --git a/dansguardian-html.lsp b/dansguardian-html.lsp
index 83b17eb..824ba19 100644
--- a/dansguardian-html.lsp
+++ b/dansguardian-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, page_info = ...
+<% local view, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
@@ -10,6 +10,8 @@ io.write("</span>")
--]]
%>
+<% displaycommandresults({"edit"}, session) %>
+
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
end %>
@@ -24,7 +26,7 @@ end %>
<%
for k,v in ipairs( view.value ) do
- io.write( "<tr><td><a href=\"" .. page_info.script .. page_info.prefix .. page_info.controller .. "/edit?filename=" .. v.filename .. "\">" .. v.filename .. "</a></td><td>" .. v.size .."</td><td>" .. v.mtime .."</td></tr>\n" )
+ io.write( "<tr><td><a href=\"" .. page_info.script .. page_info.prefix .. page_info.controller .. "/edit?filename=" .. v.filename .. "&redir=" .. page_info.orig_action .. "\">" .. v.filename .. "</a></td><td>" .. v.size .."</td><td>" .. v.mtime .."</td></tr>\n" )
end
%>
</TABLE>