summaryrefslogtreecommitdiffstats
path: root/modules-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-30 15:42:33 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-30 15:42:33 +0000
commit579d59adef6ffdacb911419e0e63c599cd393530 (patch)
tree2da48a381f55b732fe65774bf1c785849fa5badb /modules-controller.lua
parent6a39723b4bad30de3eaf7069653987f5344a5c8a (diff)
downloadacf-alpine-baselayout-579d59adef6ffdacb911419e0e63c599cd393530.tar.bz2
acf-alpine-baselayout-579d59adef6ffdacb911419e0e63c599cd393530.tar.xz
Added modules controller.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1570 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'modules-controller.lua')
-rw-r--r--modules-controller.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules-controller.lua b/modules-controller.lua
new file mode 100644
index 0000000..f1da11c
--- /dev/null
+++ b/modules-controller.lua
@@ -0,0 +1,14 @@
+-- the interfaces controller
+require("controllerfunctions")
+
+module (..., package.seeall)
+
+default_action = "edit"
+
+edit = function(self)
+ return controllerfunctions.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved")
+end
+
+reload = function(self)
+ return self:redirect_to_referrer(self.model.reloadmodules())
+end