--- a/feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -163,6 +163,26 @@ return view.extend({ s.tab('tftp', _('TFTP Settings')); s.tab('advanced', _('Advanced Settings')); s.tab('leases', _('Static Leases')); + s.tab('custom_domain', _('Custom Redirect Domain')); + + o = s.taboption('custom_domain', form.SectionValue, 'domain', form.GridSection, 'domain', null, + _('Define a custom domain name and the corresponding PTR record')); + + ss = o.subsection; + + ss.addremove = true; + ss.anonymous = true; + + so = ss.option(form.Value, 'name', _('Domain Name')); + so.datatype = 'hostname'; + so.rmempty = true; + + so = ss.option(form.Value, 'ip', _('IPv4-Address')); + so.datatype = 'or(ip4addr,"ignore")'; + so.rmempty = true; + + so = ss.option(form.Value, 'comments', _('Comments')); + so.rmempty = true; s.taboption('general', form.Flag, 'domainneeded', _('Domain required'),