summaryrefslogtreecommitdiffstats
path: root/dnscache-listdomains-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
commitb827f342a09139769ce3afd6d131490fb5e302d4 (patch)
tree51c6e2e2fabb6719e1b2828f5b1ee84dc5ef450d /dnscache-listdomains-html.lsp
parentdf7d39dc6823a3b0b837ce26303b6d73fc5328a6 (diff)
downloadacf-dnscache-b827f342a09139769ce3afd6d131490fb5e302d4.tar.bz2
acf-dnscache-b827f342a09139769ce3afd6d131490fb5e302d4.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/dnscache/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dnscache-listdomains-html.lsp')
-rw-r--r--dnscache-listdomains-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dnscache-listdomains-html.lsp b/dnscache-listdomains-html.lsp
index d208ec2..aae7e2d 100644
--- a/dnscache-listdomains-html.lsp
+++ b/dnscache-listdomains-html.lsp
@@ -9,7 +9,7 @@ io.write("</span>")
--]]
%>
-<% displaycommandresults({"deletedomain"}, session) %>
+<% displaycommandresults({"editdomain", "deletedomain"}, session) %>
<h1>Configuration</h1>
<h2>Edit/View DNS server entries</h2>
@@ -21,7 +21,7 @@ io.write("</span>")
<% for i,domain in ipairs(data.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
- <% io.write(html.link{value = "editdomain?domain=" .. domain, label="Edit " }) %>
+ <% io.write(html.link{value = "editdomain?domain=" .. domain.."&redir="..page_info.orig_action, label="Edit " }) %>
<% if domain ~= "@" then
io.write(html.link{value = "deletedomain?domain=" .. domain, label="Delete " })
end %>