luci-mod-system: system.js: expose use_dhcp NTP option

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-09-24 18:41:22 +02:00
parent e4ca5b237f
commit 1bad6f3e61

View file

@ -261,6 +261,11 @@ return L.view.extend({
o.ucisection = 'ntp'; o.ucisection = 'ntp';
o.depends('enabled', '1'); o.depends('enabled', '1');
o = s.taboption('timesync', form.Flag, 'use_dhcp', _('Use NTP servers offered by DHCP'));
o.ucisection = 'ntp';
o.default = o.enabled;
o.depends('enabled', '1');
o = s.taboption('timesync', form.DynamicList, 'server', _('NTP server candidates')); o = s.taboption('timesync', form.DynamicList, 'server', _('NTP server candidates'));
o.datatype = 'host(0)'; o.datatype = 'host(0)';
o.ucisection = 'ntp'; o.ucisection = 'ntp';