Merge pull request #278 from nmav/ocserv
[oweals/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / system.lua
index 27f0225d4c1ab329fc3a7a38f1c23f85d5704241..5e82289bd89a66118869f98ddbd12618be1b899f 100644 (file)
@@ -183,7 +183,7 @@ if has_ntpd then
 
                x = s:option(Button, "_enable")
                x.title      = translate("Time Synchronization is not configured yet.")
-               x.inputtitle = translate("Setup Time Synchronization")
+               x.inputtitle = translate("Set up Time Synchronization")
                x.inputstyle = "apply"
 
        else
@@ -192,7 +192,7 @@ if has_ntpd then
                s.anonymous = true
                s.addremove = false
 
-               o = s:option(Flag, "enable", translate("Enable builtin NTP server"))
+               o = s:option(Flag, "enable", translate("Enable NTP client"))
                o.rmempty = false
 
                function o.cfgvalue(self)
@@ -211,6 +211,10 @@ if has_ntpd then
                end
 
 
+               o = s:option(Flag, "enable_server", translate("Provide NTP server"))
+               o:depends("enable", "1")
+
+
                o = s:option(DynamicList, "server", translate("NTP server candidates"))
                o.datatype = "host"
                o:depends("enable", "1")