From 579d59adef6ffdacb911419e0e63c599cd393530 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 30 Oct 2008 15:42:33 +0000 Subject: Added modules controller. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1570 ab2d0c66-481e-0410-8bed-d214d4d58bed --- modules-controller.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules-controller.lua (limited to 'modules-controller.lua') 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 -- cgit v1.2.3