summaryrefslogtreecommitdiffstats
path: root/dhcp-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-08-25 11:59:53 +0000
committerTed Trask <ttrask01@yahoo.com>2009-08-25 11:59:53 +0000
commite5c610f887196986183d11cda9ced7735c355a37 (patch)
tree020633c78a1b80b1de7ba64e08efc9235e36960d /dhcp-controller.lua
parent0ab4dcf45f28de3fca8fe35b7513da33da97b20d (diff)
downloadacf-dhcp-e5c610f887196986183d11cda9ced7735c355a37.tar.bz2
acf-dhcp-e5c610f887196986183d11cda9ced7735c355a37.tar.xz
Added ability to edit conf.d file, bumped to 0.4.2v0.4.2
Diffstat (limited to 'dhcp-controller.lua')
-rw-r--r--dhcp-controller.lua6
1 files changed, 5 insertions, 1 deletions
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