diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-29 01:54:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-29 01:54:00 +0000 |
commit | 82f08a4a1d1f7d54ccc82326c02f40f11a028409 (patch) | |
tree | a37714e39b0313578000d36ffd3d3c7ec95ce7d9 /applications/luci-olsr/luasrc/model/cbi | |
parent | dc0dc132c113da1ae8ddef83301f15a3edaa1bfa (diff) |
applications/luci-olsr: add translations, move Ip6AddrType further up in option list, add possibility to remove the option
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 4da1c4060d..09d1835074 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -105,6 +105,15 @@ network = i:option(ListValue, "interface", translate("network")) luci.tools.webadmin.cbi_add_networks(network) i:option(Value, "Ip4Broadcast").optional = true + +ip6t = i:option(ListValue, "Ip6AddrType") +ip6t:value("", translate("cbi_select")) +ip6t:value("auto") +ip6t:value("site-local") +ip6t:value("unique-local") +ip6t:value("global") +ip6t.optional = true + i:option(Value, "HelloInterval").optional = true i:option(Value, "HelloValidityTime").optional = true i:option(Value, "TcInterval").optional = true @@ -114,13 +123,6 @@ i:option(Value, "MidValidityTime").optional = true i:option(Value, "HnaInterval").optional = true i:option(Value, "HnaValidityTime").optional = true -ip6t = i:option(ListValue, "Ip6AddrType") -ip6t:value("auto") -ip6t:value("site-local") -ip6t:value("unique-local") -ip6t:value("global") -ip6t.optional = true - adc = i:option(Flag, "AutoDetectChanges") adc.enabled = "yes" adc.disabled = "no" |