summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-24 18:41:22 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-24 18:41:54 +0200
commit1bad6f3e61eaf6c811ac5abc3bb52af83815e56d (patch)
treebe44f7e8da9d6d59fb252d5576c73bb8054a2942 /modules/luci-mod-system/htdocs
parente4ca5b237f4109307346be25a0142200634cfb0b (diff)
luci-mod-system: system.js: expose use_dhcp NTP option
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
index ac6586af4..415a6a175 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
@@ -261,6 +261,11 @@ return L.view.extend({
o.ucisection = 'ntp';
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.datatype = 'host(0)';
o.ucisection = 'ntp';