mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-0.9: merge r6009
This commit is contained in:
@@ -23,7 +23,7 @@ s.anonymous = false
|
|||||||
|
|
||||||
s:option(Flag, "enabled", translate("enable"))
|
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
|
svc.rmempty = true
|
||||||
|
|
||||||
local services = { }
|
local services = { }
|
||||||
@@ -43,6 +43,8 @@ for _, v in luci.util.vspairs(services) do
|
|||||||
svc:value(v)
|
svc:value(v)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
svc:value("", translate("cbi_manual"))
|
||||||
|
|
||||||
|
|
||||||
s:option(Value, "domain", translate("hostname")).rmempty = true
|
s:option(Value, "domain", translate("hostname")).rmempty = true
|
||||||
s:option(Value, "username", translate("username")).rmempty = true
|
s:option(Value, "username", translate("username")).rmempty = true
|
||||||
@@ -77,10 +79,11 @@ else
|
|||||||
web = s:option(Value, "ip_url", "URL")
|
web = s:option(Value, "ip_url", "URL")
|
||||||
web:depends("ip_source", "web")
|
web:depends("ip_source", "web")
|
||||||
web.rmempty = true
|
web.rmempty = true
|
||||||
|
|
||||||
s:option(Value, "update_url").optional = true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
url = s:option(Value, "update_url")
|
||||||
|
url:depends("service_name", "")
|
||||||
|
url.rmempty = true
|
||||||
|
|
||||||
s:option(Value, "check_interval").default = 10
|
s:option(Value, "check_interval").default = 10
|
||||||
unit = s:option(ListValue, "check_unit")
|
unit = s:option(ListValue, "check_unit")
|
||||||
|
|||||||
Reference in New Issue
Block a user