modules/admin-full: Fixes for rdate config
This commit is contained in:
parent
819fa18e16
commit
f04acc4b94
1 changed files with 4 additions and 2 deletions
|
@ -189,10 +189,12 @@ if has_rdate then
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
s.addremove = true
|
s.addremove = true
|
||||||
s.template = "cbi/tblsection"
|
s.template = "cbi/tblsection"
|
||||||
s.rmempty = true
|
|
||||||
|
|
||||||
s:option(Value, "hostname", translate("Name"))
|
h = s:option(Value, "hostname", translate("Name"))
|
||||||
|
h.rmempty = true
|
||||||
|
h.datatype = host
|
||||||
i = s:option(ListValue, "interface", translate("Interface"))
|
i = s:option(ListValue, "interface", translate("Interface"))
|
||||||
|
i.rmempty = true
|
||||||
i:value("", translate("Default"))
|
i:value("", translate("Default"))
|
||||||
m3.uci:foreach("network", "interface",
|
m3.uci:foreach("network", "interface",
|
||||||
function (section)
|
function (section)
|
||||||
|
|
Loading…
Reference in a new issue