summaryrefslogtreecommitdiffstats
path: root/interfaces-read-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
commit736d860f1c9171512132de7f5ff67c1ed2cf008d (patch)
treed5e25cb790c938fbec97aa2151106283d130f13d /interfaces-read-html.lsp
parent41665704f43110b5126b96a9e11be2ab6f86c60f (diff)
downloadacf-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 'interfaces-read-html.lsp')
-rw-r--r--interfaces-read-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp
index f3279a2..4558809 100644
--- a/interfaces-read-html.lsp
+++ b/interfaces-read-html.lsp
@@ -19,7 +19,7 @@ io.write("</span>")
<% end %>
<% end %>
-<% displaycommandresults({"delete", "ifup", "ifdown", "restart"}, session) %>
+<% displaycommandresults({"update", "delete", "ifup", "ifdown", "restart"}, session) %>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
@@ -42,7 +42,7 @@ end %>
end %>
<TR>
<% if session.permissions.interfaces.update then %>
- <A HREF='update?name=<%= interface.name.value %>'>Edit </A>
+ <A HREF='update?name=<%= interface.name.value %>&redir=read'>Edit </A>
<% end
if session.permissions.interfaces.delete then %>
<A HREF='delete?name=<%= interface.name.value %>'>Delete </A>