From: Jo-Philipp Wich Date: Tue, 3 May 2011 22:22:26 +0000 (+0000) Subject: modules/admin-full: join maps in merged dnsmasq page X-Git-Tag: 0.11.0~2157 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=6e14fd0bc2c2823b5d57207734eb551310f3ebaa modules/admin-full: join maps in merged dnsmasq page --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 27a4156ee..4bdbf1dfc 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -14,13 +14,13 @@ $Id$ local sys = require "luci.sys" -m = Map("dhcp", translate("DHCP Server"), +m = Map("dhcp", translate("DHCP and DNS"), translate("Dnsmasq is a combined DHCP-Server and DNS-" .. "Forwarder for NAT " .. "firewalls")) -s = m:section(TypedSection, "dnsmasq", translate("Settings")) +s = m:section(TypedSection, "dnsmasq", translate("Server Settings")) s.anonymous = true s.addremove = false @@ -207,14 +207,12 @@ db:depends("enable_tftp", "1") db.placeholder = "pxelinux.0" -m2 = Map("dhcp", translate("DHCP Leases"), +m:section(SimpleSection).template = "admin_network/lease_status" + +s = m:section(TypedSection, "host", translate("Static Leases"), translate("Static leases are used to assign fixed IP addresses and symbolic hostnames to " .. "DHCP clients. They are also required for non-dynamic interface configurations where " .. - "only hosts with a corresponding lease are served.")) - -m2:section(SimpleSection).template = "admin_network/lease_status" - -s = m2:section(TypedSection, "host", translate("Static Leases"), + "only hosts with a corresponding lease are served.") .. "
" .. translate("Use the Add Button to add a new lease entry. The MAC-Address " .. "indentifies the host, the IPv4-Address specifies to the fixed address to " .. "use and the Hostname is assigned as symbolic name to the requesting host.")) @@ -242,4 +240,4 @@ sys.net.arptable(function(entry) end) -return m, m2 +return m