diff options
Diffstat (limited to 'shorewall-controller.lua')
-rw-r--r-- | shorewall-controller.lua | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua index 99b31c4..6b27c27 100644 --- a/shorewall-controller.lua +++ b/shorewall-controller.lua @@ -1,25 +1,5 @@ module(..., package.seeall) -require("controllerfunctions") ---[[ -local newrecordtxt = "[New]" - --- ################################################################################ --- LOCAL FUNCTIONS - -local function displaycmdsave(self) - -- Add a cmd button to the view - local cmdsave = cfe({ name="cmdsave", - label="Save/Apply above settings", - value="Save", - type="submit", - }) - return cmdsave -end ---]] --- ################################################################################ --- PUBLIC FUNCTIONS - default_action = "status" function status(self) @@ -31,7 +11,7 @@ function details(self) end function startstop(self) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) + return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata) end function listfiles(self) @@ -39,7 +19,7 @@ function listfiles(self) end function edit(self) - return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved") + return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved") end function check(self) |