summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-status-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
commit8997f1f6dc27262042a30c35266a95672e4406d4 (patch)
tree548e8a666a7aa8f6e39e76e47b0c150d44dd92f1 /app/acf-util/password-status-html.lsp
parent7106e09511f1b873eaae17d2a6ae8bf008d06446 (diff)
downloadacf-core-8997f1f6dc27262042a30c35266a95672e4406d4.tar.bz2
acf-core-8997f1f6dc27262042a30c35266a95672e4406d4.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/core/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util/password-status-html.lsp')
-rwxr-xr-xapp/acf-util/password-status-html.lsp11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp
index 26416ce..d7db4e9 100755
--- a/app/acf-util/password-status-html.lsp
+++ b/app/acf-util/password-status-html.lsp
@@ -1,4 +1,4 @@
-<% local form, viewlibrary, pageinfo, session = ... %>
+<% local form, viewlibrary, page_info, session = ... %>
<% require("viewfunctions") %>
<%
--[[ DEBUG INFORMATION
@@ -8,11 +8,12 @@ io.write("</span>")
--]]
%>
-<% displaycommandresults({"deleteuser"}, session) %>
+<% displaycommandresults({"newuser", "edituser", "deleteuser"}, session) %>
<H1>User Accounts</H1>
<H2>Create new account</H2>
-<form action="newuser" method="POST">
+<form action="<%= page_info.script .. page_info.prefix .. page_info.controller %>/newuser" method="POST">
+<input class="hidden" type="hidden" name="redir" value="<%= page_info.orig_action %>" >
<dl><dt></dt><dd><input class="submit" type="submit" value="New User"></dd></dl>
</form>
<H2>Existing account</H2>
@@ -32,9 +33,9 @@ io.write("</span>")
</TR><TR>
<TD STYLE='border:none;'><B>Option</B></TD>
<TD STYLE='border:none;'>
- [<A HREF='edituser?userid=<%= name %>'>Edit this account</A>]
+ [<A HREF='edituser?userid=<%= name %>&redir=<%= page_info.orig_action %>'>Edit this account</A>]
[<A HREF='deleteuser?userid=<%= name %>'>Delete this account</A>]
- [<A HREF='<%= pageinfo.script %>/acf-util/roles/viewuserroles?userid=<%= name %>'>View roles for this account</A>]
+ [<A HREF='<%= page_info.script %>/acf-util/roles/viewuserroles?userid=<%= name %>'>View roles for this account</A>]
</TD>
</TR>
</TABLE></DD>