From e5c610f887196986183d11cda9ced7735c355a37 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 25 Aug 2009 11:59:53 +0000 Subject: Added ability to edit conf.d file, bumped to 0.4.2 --- dhcp-controller.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dhcp-controller.lua') diff --git a/dhcp-controller.lua b/dhcp-controller.lua index b444a89..a3bda73 100644 --- a/dhcp-controller.lua +++ b/dhcp-controller.lua @@ -53,6 +53,10 @@ viewleases = function ( self ) return self.model.getleases() end +listfiles = function(self) + return self.model.listconfigfiles() +end + expert = function(self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model.getconfigfile(self.clientdata.filename) end, self.model.setconfigfile, self.clientdata, "Save", "Edit DHCP File", "File Saved") end -- cgit v1.2.3