luci-0.9: merge r6009
This commit is contained in:
parent
d638ce2adb
commit
6afee3fff7
1 changed files with 6 additions and 3 deletions
|
@ -23,7 +23,7 @@ s.anonymous = false
|
|||
|
||||
s:option(Flag, "enabled", translate("enable"))
|
||||
|
||||
svc = s:option(Value, "service_name", translate("service"))
|
||||
svc = s:option(ListValue, "service_name", translate("service"))
|
||||
svc.rmempty = true
|
||||
|
||||
local services = { }
|
||||
|
@ -43,6 +43,8 @@ for _, v in luci.util.vspairs(services) do
|
|||
svc:value(v)
|
||||
end
|
||||
|
||||
svc:value("", translate("cbi_manual"))
|
||||
|
||||
|
||||
s:option(Value, "domain", translate("hostname")).rmempty = true
|
||||
s:option(Value, "username", translate("username")).rmempty = true
|
||||
|
@ -77,10 +79,11 @@ else
|
|||
web = s:option(Value, "ip_url", "URL")
|
||||
web:depends("ip_source", "web")
|
||||
web.rmempty = true
|
||||
|
||||
s:option(Value, "update_url").optional = true
|
||||
end
|
||||
|
||||
url = s:option(Value, "update_url")
|
||||
url:depends("service_name", "")
|
||||
url.rmempty = true
|
||||
|
||||
s:option(Value, "check_interval").default = 10
|
||||
unit = s:option(ListValue, "check_unit")
|
||||
|
|
Loading…
Reference in a new issue