ddns: move 'update_url' just below 'service_name'
This commit is contained in:
parent
85821b20f6
commit
85aa773b65
1 changed files with 4 additions and 5 deletions
|
@ -44,8 +44,11 @@ for _, v in luci.util.vspairs(services) do
|
||||||
svc:value(v)
|
svc:value(v)
|
||||||
end
|
end
|
||||||
|
|
||||||
svc:value("", translate("-- custom --"))
|
svc:value("", "-- "..translate("custom").." --")
|
||||||
|
|
||||||
|
url = s:option(Value, "update_url", translate("Custom update-URL"))
|
||||||
|
url:depends("service_name", "")
|
||||||
|
url.rmempty = true
|
||||||
|
|
||||||
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
|
||||||
|
@ -82,10 +85,6 @@ else
|
||||||
web.rmempty = true
|
web.rmempty = true
|
||||||
end
|
end
|
||||||
|
|
||||||
url = s:option(Value, "update_url", translate("Custom Update-URL"))
|
|
||||||
url:depends("service_name", "")
|
|
||||||
url.rmempty = true
|
|
||||||
|
|
||||||
s:option(Value, "check_interval", translate("Check for changed IP every")).default = 10
|
s:option(Value, "check_interval", translate("Check for changed IP every")).default = 10
|
||||||
unit = s:option(ListValue, "check_unit", translate("Check-Time unit"))
|
unit = s:option(ListValue, "check_unit", translate("Check-Time unit"))
|
||||||
unit.default = "minutes"
|
unit.default = "minutes"
|
||||||
|
|
Loading…
Reference in a new issue