mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 06:25:13 +08:00
update 2026-05-10 09:48:30
This commit is contained in:
1 parent
95ac96413e
commit
0b362674f1
6244 files changed
+2992248
No files matched your search
@@ -0,0 +1,60 @@
|
||||
local o = require "luci.sys"
|
||||
local a, t, e
|
||||
|
||||
a = Map("luci-app-timecontrol", translate("Internet Time Control"))
|
||||
a.template = "timecontrol/index"
|
||||
|
||||
t = a:section(TypedSection, "basic")
|
||||
t.anonymous = true
|
||||
|
||||
e = t:option(DummyValue, "timecontrol_status", translate("Status"))
|
||||
e.template = "timecontrol/timecontrol"
|
||||
e.value = translate("Collecting data...")
|
||||
|
||||
e = t:option(Flag, "enable", translate("Enabled"))
|
||||
e.rmempty = false
|
||||
|
||||
t = a:section(TypedSection, "macbind", translate("Client Settings"))
|
||||
t.template = "cbi/tblsection"
|
||||
t.anonymous = true
|
||||
t.addremove = true
|
||||
|
||||
e = t:option(Flag, "enable", translate("Enabled"))
|
||||
e.rmempty = false
|
||||
|
||||
e = t:option(Value, "macaddr", "MAC")
|
||||
e.rmempty = true
|
||||
o.net.mac_hints(function(t, a)
|
||||
e:value(t, "%s (%s)" % {t, a})
|
||||
end)
|
||||
|
||||
e = t:option(Value, "timeon", translate("No Internet start time"))
|
||||
e.default = "00:00"
|
||||
e.optional = false
|
||||
|
||||
e = t:option(Value, "timeoff", translate("No Internet end time"))
|
||||
e.default = "23:59"
|
||||
e.optional = false
|
||||
|
||||
e = t:option(Flag, "z1", translate("Monday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z2", translate("Tuesday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z3", translate("Wednesday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z4", translate("Thursday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z5", translate("Friday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z6", translate("Saturday"))
|
||||
e.rmempty = true
|
||||
|
||||
e = t:option(Flag, "z7", translate("Sunday"))
|
||||
e.rmempty = true
|
||||
|
||||
return a
|
||||
Reference in new issue
Block a user