diff options
author | Paul Donald <newtwen@gmail.com> | 2023-12-04 16:04:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 16:04:24 +0100 |
commit | aa1e049f3600f68cf2f52d8a1eb092155bfe8d8a (patch) | |
tree | 2c0e6e4b356c6f4789cabc5f5ff5f24df1531106 | |
parent | 603e43414c2fd200ee595881284955709428f128 (diff) | |
parent | f96691ce44c212d49b5cf4409f6418610a0baaba (diff) |
Merge pull request #6642 from vgaetera/dnsmasq-network-select
luci-mod-network: use network selector for dnsmasq instances
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 3631efab70..b281ba8f5c 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -355,17 +355,18 @@ return view.extend({ o.optional = false; o.rmempty = true; - o = s.taboption('general', form.DynamicList, 'interface', + o = s.taboption('general', widgets.NetworkSelect, 'interface', _('Listen interfaces'), _('Listen only on the specified interfaces, and loopback if not excluded explicitly.')); - o.optional = true; - o.placeholder = 'lan'; + o.multiple = true; + o.nocreate = true; - o = s.taboption('general', form.DynamicList, 'notinterface', + o = s.taboption('general', widgets.NetworkSelect, 'notinterface', _('Exclude interfaces'), _('Do not listen on the specified interfaces.')); - o.optional = true; - o.placeholder = 'loopback'; + o.loopback = true; + o.multiple = true; + o.nocreate = true; o = s.taboption('relay', form.SectionValue, '__relays__', form.TableSection, 'relay', null, _('Relay DHCP requests elsewhere. OK: v4↔v4, v6↔v6. Not OK: v4↔v6, v6↔v4.') |