diff options
author | Steven Barth <steven@midlink.org> | 2009-01-04 15:46:08 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-04 15:46:08 +0000 |
commit | bb44869de9ba8d5035d4c74e3651e911e959a863 (patch) | |
tree | 3ca6bf2c61fcb6d47e126349f80051f54773ec60 /modules/admin-full | |
parent | f911758bc2b5799f05290954bdfe23e81577548b (diff) |
Cleanup overview / details nodes
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 778a70fb9..a14b8fd70 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -28,47 +28,36 @@ function index() page.target = cbi("admin_network/vlan") page.title = i18n("a_n_switch") page.order = 20 - - local page = node("admin", "network", "wireless") - page.target = form("admin_network/wireless") - page.title = i18n("wifi") + + local page = entry({"admin", "network", "wireless"}, arcombine(cbi("admin_network/wireless"), cbi("admin_network/wifi")), i18n("wifi"), 15) page.i18n = "wifi" - page.order = 15 + page.leaf = true page.subindex = true + uci:foreach("wireless", "wifi-device", function (section) local ifc = section[".name"] entry({"admin", "network", "wireless", ifc}, - alias("admin", "network", "wifi", ifc), + true, ifc:upper()).i18n = "wifi" end ) - - local page = node("admin", "network", "wifi") - page.target = cbi("admin_network/wifi") + + local page = entry({"admin", "network", "network"}, arcombine(cbi("admin_network/network"), cbi("admin_network/ifaces")), i18n("interfaces", "Schnittstellen"), 10) page.leaf = true - page.i18n = "wifi" - - local page = node("admin", "network", "network") - page.target = cbi("admin_network/network") - page.title = i18n("interfaces", "Schnittstellen") - page.order = 10 page.subindex = true + uci:foreach("network", "interface", function (section) local ifc = section[".name"] if ifc ~= "loopback" then entry({"admin", "network", "network", ifc}, - alias("admin", "network", "ifaces", ifc), + true, ifc:upper()) end end ) - local page = node("admin", "network", "ifaces") - page.target = cbi("admin_network/ifaces") - page.leaf = true - local page = node("admin", "network", "dhcp") page.target = cbi("admin_network/dhcp") page.title = "DHCP" @@ -105,4 +94,4 @@ function index() 60 ) -end +end
\ No newline at end of file |