blob: 10ab81c8523042619a31f5ec29337d49a12eca56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- the hostname controller
module (..., package.seeall)
require("controllerfunctions")
default_action = "read"
read = function(self)
return self.model.get()
end
edit = function(self)
return controllerfunctions.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set")
end
|