summaryrefslogtreecommitdiffstats
path: root/interfaces-controller.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
commit736d860f1c9171512132de7f5ff67c1ed2cf008d (patch)
treed5e25cb790c938fbec97aa2151106283d130f13d /interfaces-controller.lua
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-controller.lua')
-rw-r--r--interfaces-controller.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces-controller.lua b/interfaces-controller.lua
index 03c072f..02b2a3c 100644
--- a/interfaces-controller.lua
+++ b/interfaces-controller.lua
@@ -14,7 +14,7 @@ read = function (self)
end
update = function(self)
- return controllerfunctions.handle_form(self, function() return self.model.get_iface_by_name(self.clientdata.name or "") end, self.model.update_iface, self.clientdata, "Save", "Update Interface", "Interface updated", "read")
+ return controllerfunctions.handle_form(self, function() return self.model.get_iface_by_name(self.clientdata.name or "") end, self.model.update_iface, self.clientdata, "Save", "Update Interface", "Interface updated")
end
delete = function(self)
@@ -30,7 +30,7 @@ ifdown = function(self)
end
create = function(self)
- return controllerfunctions.handle_form(self, function() return self.model.get_iface(self.clientdata.family, self.clientdata.method) end, self.model.create_iface, self.clientdata, "Create", "Create Interface", "Interface created", "read")
+ return controllerfunctions.handle_form(self, function() return self.model.get_iface(self.clientdata.family, self.clientdata.method) end, self.model.create_iface, self.clientdata, "Create", "Create Interface", "Interface created")
end
editintfile = function(self)