modules/admin-full: join maps in merged dnsmasq page
This commit is contained in:
parent
0ecee984af
commit
6e14fd0bc2
1 changed files with 7 additions and 9 deletions
|
@ -14,13 +14,13 @@ $Id$
|
||||||
|
|
||||||
local sys = require "luci.sys"
|
local sys = require "luci.sys"
|
||||||
|
|
||||||
m = Map("dhcp", translate("DHCP Server"),
|
m = Map("dhcp", translate("DHCP and DNS"),
|
||||||
translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
|
translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
|
||||||
"\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" ..
|
"\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" ..
|
||||||
"Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " ..
|
"Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " ..
|
||||||
"firewalls"))
|
"firewalls"))
|
||||||
|
|
||||||
s = m:section(TypedSection, "dnsmasq", translate("Settings"))
|
s = m:section(TypedSection, "dnsmasq", translate("Server Settings"))
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
s.addremove = false
|
s.addremove = false
|
||||||
|
|
||||||
|
@ -207,14 +207,12 @@ db:depends("enable_tftp", "1")
|
||||||
db.placeholder = "pxelinux.0"
|
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 " ..
|
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 " ..
|
"DHCP clients. They are also required for non-dynamic interface configurations where " ..
|
||||||
"only hosts with a corresponding lease are served."))
|
"only hosts with a corresponding lease are served.") .. "<br />" ..
|
||||||
|
|
||||||
m2:section(SimpleSection).template = "admin_network/lease_status"
|
|
||||||
|
|
||||||
s = m2:section(TypedSection, "host", translate("Static Leases"),
|
|
||||||
translate("Use the <em>Add</em> Button to add a new lease entry. The <em>MAC-Address</em> " ..
|
translate("Use the <em>Add</em> Button to add a new lease entry. The <em>MAC-Address</em> " ..
|
||||||
"indentifies the host, the <em>IPv4-Address</em> specifies to the fixed address to " ..
|
"indentifies the host, the <em>IPv4-Address</em> specifies to the fixed address to " ..
|
||||||
"use and the <em>Hostname</em> is assigned as symbolic name to the requesting host."))
|
"use and the <em>Hostname</em> is assigned as symbolic name to the requesting host."))
|
||||||
|
@ -242,4 +240,4 @@ sys.net.arptable(function(entry)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
return m, m2
|
return m
|
||||||
|
|
Loading…
Reference in a new issue