modules/admin-full: Reworked DHCP configuration
[project/luci.git] / modules / admin-full / luasrc / controller / admin / network.lua
index cc79e57..a4b070c 100644 (file)
@@ -20,12 +20,12 @@ function index()
 
        local page  = node("admin", "network")
        page.target = template("admin_network/index")
-       page.title  = i18n("network", "Netzwerk")  
+       page.title  = i18n("network")  
        page.order  = 50
        
        local page  = node("admin", "network", "vlan")
        page.target = cbi("admin_network/vlan")
-       page.title  = i18n("a_n_switch", "Switch")
+       page.title  = i18n("a_n_switch")
        page.order  = 20
        
        local page  = node("admin", "network", "network")
@@ -52,8 +52,22 @@ function index()
        page.title  = "DHCP"
        page.order  = 30
        
+       entry(
+        {"admin", "network", "dhcp", "leases"},
+        cbi("admin_network/dhcpleases"),
+        i18n("dhcp_leases")
+       ) 
+       
        local page  = node("admin", "network", "routes")
        page.target = cbi("admin_network/routes")
-       page.title  = i18n("a_n_routes", "Routen")
+       page.title  = i18n("a_n_routes")
        page.order  = 40
+       page.leaf   = true
+       
+       entry(
+        {"admin", "network", "routes", "static"},
+        function() end,
+        i18n("a_n_routes_static")
+       )
+
 end
\ No newline at end of file