From: Paul Donald Date: Mon, 18 Dec 2023 18:45:12 +0000 (+0100) Subject: luci-mod-network: Fixes for PXE/TFTP tab. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1a14bf6de5b108f02d0ee2bb1f384511a7c26ab3;p=project%2Fluci.git luci-mod-network: Fixes for PXE/TFTP tab. Signed-off-by: Paul Donald (cherry picked from commit 0c27557ab56926502ebb0189f9da0c9f866dc318) --- 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 551995fe78..81c2055a1c 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 @@ -656,6 +656,7 @@ return view.extend({ ss = o.subsection; ss.addremove = true; ss.anonymous = true; + ss.modaltitle = _('Edit PXE/TFTP/BOOTP Host'); ss.nodescriptions = true; so = ss.option(form.Value, 'filename', @@ -678,19 +679,20 @@ return view.extend({ so = ss.option(form.DynamicList, 'dhcp_option', _('DHCP Options'), - _('Options for the Network-ID. (Note: needs also Network-ID.) E.g. "42,192.168.1.4" for NTP server, "3,192.168.4.4" for default route. 0.0.0.0 means "the address of the system running dnsmasq".')); + _('Additional options to send to the below match tags.') + '
' + + _('%s means "the address of the system running dnsmasq".').format('0.0.0.0')); so.optional = true; - so.placeholder = '42,192.168.1.4'; + so.placeholder = 'option:root-path,192.168.1.2:/data/netboot/root'; - so = ss.option(widgets.DeviceSelect, 'networkid', - _('Network-ID'), - _('Apply DHCP Options to this net. (Empty = all clients).')); + so = ss.option(form.Value, 'networkid', + _('Match this Tag'), + _('Only DHCP Clients with this tag are sent this boot option.')); so.optional = true; so.noaliases = true; so = ss.option(form.Flag, 'force', _('Force'), - _('Always send DHCP Options. Sometimes needed, with e.g. PXELinux.')); + _('Always send the chosen DHCP options. Sometimes needed, with e.g. PXELinux.')); so.optional = true; so = ss.option(form.Value, 'instance',