summaryrefslogtreecommitdiffstats
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
commit0e5894d5096ac73341b99cc5c9937c9db83ba390 (patch)
tree25d7d1b0e9d2f9238e186e44734b69931cb423b2
parentd4ada4b23f6c969099d54fac88213e55e295d5d7 (diff)
downloadacf-devtools-0e5894d5096ac73341b99cc5c9937c9db83ba390.tar.bz2
acf-devtools-0e5894d5096ac73341b99cc5c9937c9db83ba390.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/devtools/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--acfupdate-html.lsp4
1 files changed, 3 insertions, 1 deletions
diff --git a/acfupdate-html.lsp b/acfupdate-html.lsp
index 6bd096a..df7556d 100644
--- a/acfupdate-html.lsp
+++ b/acfupdate-html.lsp
@@ -2,13 +2,15 @@
require("viewfunctions")
%>
+<% displaycommandresults({"install"}, session) %>
+
<H1>System Info</H1>
<DL>
<%
displayitem(data.value.version)
if data.value.version and data.value.version.errtxt and session.permissions.apk and session.permissions.apk.install then
%>
- <a href="<%= page_info.script .. "/apk-tools/apk/install?package="..data.value.version.name %>">Install</a>
+ <a href="<%= page_info.script %>/apk-tools/apk/install?package=<%= data.value.version.name %>&redir=<%= page_info.orig_action %>">Install</a>
<%
end
displayitem(data.value.repository)