summaryrefslogtreecommitdiffstats
path: root/dhcp-model.lua
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
commit4260dd6353273dab0d0bb444915320f161851e50 (patch)
tree1d62b42879c6713790a151feacfe5685fe20155b /dhcp-model.lua
parent53106120b719ff1980eec8c92fdd6c65ea406094 (diff)
downloadacf-dhcp-4260dd6353273dab0d0bb444915320f161851e50.tar.bz2
acf-dhcp-4260dd6353273dab0d0bb444915320f161851e50.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/dhcp/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-model.lua')
-rw-r--r--dhcp-model.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua
index 4d3ff5e..f542554 100644
--- a/dhcp-model.lua
+++ b/dhcp-model.lua
@@ -492,6 +492,7 @@ host_delete = function(name)
file = string.sub(file, 1, start-1) .. string.sub(file, endd+1, -1)
fs.write_file(configfile, string.gsub(file, "\n*$", ""))
config = nil
+ cmdresult.value = "Host Deleted"
end
end
@@ -650,6 +651,7 @@ subnet_delete = function(name)
file = string.sub(file, 1, start-1) .. string.sub(file, endd+1, -1)
fs.write_file(configfile, string.gsub(file, "\n*$", ""))
config = nil
+ cmdresult.value = "Subnet Deleted"
end
end