Changeset 7018

Show
Ignore:
Timestamp:
05/03/11 23:22:26 (2 years ago)
Author:
jow
Message:

modules/admin-full: join maps in merged dnsmasq page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua

    r7017 r7018  
    1515local sys = require "luci.sys" 
    1616 
    17 m = Map("dhcp", translate("DHCP Server"), 
     17m = Map("dhcp", translate("DHCP and DNS"), 
    1818    translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" .. 
    1919        "\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" .. 
     
    2121        "firewalls")) 
    2222 
    23 s = m:section(TypedSection, "dnsmasq", translate("Settings")) 
     23s = m:section(TypedSection, "dnsmasq", translate("Server Settings")) 
    2424s.anonymous = true 
    2525s.addremove = false 
     
    208208 
    209209 
    210 m2 = Map("dhcp", translate("DHCP Leases"), 
     210m:section(SimpleSection).template = "admin_network/lease_status" 
     211 
     212s = m:section(TypedSection, "host", translate("Static Leases"), 
    211213    translate("Static leases are used to assign fixed IP addresses and symbolic hostnames to " .. 
    212214        "DHCP clients. They are also required for non-dynamic interface configurations where " .. 
    213         "only hosts with a corresponding lease are served.")) 
    214  
    215 m2:section(SimpleSection).template = "admin_network/lease_status" 
    216  
    217 s = m2:section(TypedSection, "host", translate("Static Leases"), 
     215        "only hosts with a corresponding lease are served.") .. "<br />" .. 
    218216    translate("Use the <em>Add</em> Button to add a new lease entry. The <em>MAC-Address</em> " .. 
    219217        "indentifies the host, the <em>IPv4-Address</em> specifies to the fixed address to " .. 
     
    243241 
    244242 
    245 return m, m2 
     243return m