applications/luci-ntpc: Refreshed CBI model to work with latest UCI scheme

This commit is contained in:
Steven Barth 2008-08-14 16:48:17 +00:00
parent 36717208f1
commit b4d9e2867f

View file

@ -12,15 +12,11 @@ You may obtain a copy of the License at
$Id$
]]--
require("luci.tools.webadmin")
m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
iface = s:option(ListValue, "iface", translate("ntpc_iface"), translate("ntpc_iface_desc"))
luci.tools.webadmin.cbi_add_networks(iface)
s:option(Value, "interval", translate("ntpc_interval"))
s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))