modules/admin-full: fix various issues in iface cbi model
This commit is contained in:
parent
ea68cd9665
commit
f3690b2e03
1 changed files with 7 additions and 7 deletions
|
@ -354,7 +354,7 @@ if has_6to4 then
|
||||||
end
|
end
|
||||||
|
|
||||||
if has_relay then
|
if has_relay then
|
||||||
rnet = s:taboption("general", Value, "network", translate("Relay between networks"))
|
rnet = s:taboption("general", DynamicList, "network", translate("Relay between networks"))
|
||||||
rnet.widget = "checkbox"
|
rnet.widget = "checkbox"
|
||||||
rnet.exclude = arg[1]
|
rnet.exclude = arg[1]
|
||||||
rnet.template = "cbi/network_netlist"
|
rnet.template = "cbi/network_netlist"
|
||||||
|
@ -367,7 +367,7 @@ mac = s:taboption("physical", Value, "macaddr", translate("<abbr title=\"Media A
|
||||||
mac:depends("proto", "none")
|
mac:depends("proto", "none")
|
||||||
mac:depends("proto", "static")
|
mac:depends("proto", "static")
|
||||||
mac:depends("proto", "dhcp")
|
mac:depends("proto", "dhcp")
|
||||||
mac.placeholder = ifc and ifc:mac():upper()
|
mac.placeholder = ifc and ifc:mac()
|
||||||
|
|
||||||
if has_3g then
|
if has_3g then
|
||||||
service = s:taboption("general", ListValue, "service", translate("Service type"))
|
service = s:taboption("general", ListValue, "service", translate("Service type"))
|
||||||
|
@ -577,11 +577,11 @@ if has_relay then
|
||||||
retry.datatype = "uinteger"
|
retry.datatype = "uinteger"
|
||||||
retry:depends("proto", "relay")
|
retry:depends("proto", "relay")
|
||||||
|
|
||||||
table = s:taboption("relay", Value, "table", translate("Routing table ID"))
|
tableid = s:taboption("relay", Value, "table", translate("Routing table ID"))
|
||||||
table.optional = true
|
tableid.optional = true
|
||||||
table.placeholder = 16800
|
tableid.placeholder = 16800
|
||||||
table.datatype = "uinteger"
|
tableid.datatype = "uinteger"
|
||||||
table:depends("proto", "relay")
|
tableid:depends("proto", "relay")
|
||||||
end
|
end
|
||||||
|
|
||||||
if has_ahcp then
|
if has_ahcp then
|
||||||
|
|
Loading…
Reference in a new issue