summaryrefslogtreecommitdiffstats
path: root/hostname-controller.lua
blob: c68c5c3fb03c6c041852728b6e306b516ae62b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- the hostname controller
module (..., package.seeall)

default_action = "read"

read = function(self)
	return self.model.get(true)
end

edit = function(self)
	return self.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set")
end