Skip to content

Commit

Permalink
Add support luci
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
Jianhui Zhao committed Dec 21, 2018
1 parent b7f9a78 commit 24478bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions luci/controller/rtty.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module("luci.controller.rtty", package.seeall)

function index()
entry({"admin", "system", "rtty"}, cbi("rtty"), _("Rtty"), 90)
end
25 changes: 25 additions & 0 deletions luci/model/cbi/rtty.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
local m, s, o

m = Map("rtty", translate("Rtty"))
m:chain("luci")


s = m:section(TypedSection, "rtty")
s.anonymous = true
s.addremove = true

o = s:option(Value, "id", translate("ID"))

o = s:option(Value, "host", translate("Server"))

o = s:option(Value, "port", translate("Port"))
o.datatype = "port"


o = s:option(Flag, "ssl", translate("SSL"))


o = s:option(Value, "description", translate("Description"))


return m

0 comments on commit 24478bd

Please sign in to comment.