luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / protocols / luci-proto-ipv6 / luasrc / model / cbi / admin_network / proto_dhcpv6.lua
index 51f17878d7813da9455941d7ddaa55ff012c31fe..49281ee41d78b95be906bf950343b649580eba86 100644 (file)
@@ -1,14 +1,5 @@
---[[
-LuCI - Lua Configuration Interface
-
-Copyright 2013 Steven Barth <steven@midlink.org>
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-]]--
+-- Copyright 2013 Steven Barth <steven@midlink.org>
+-- Licensed to the public under the Apache License 2.0.
 
 local map, section, net = ...
 
@@ -23,7 +14,7 @@ o.default = "try"
 
 o = section:taboption("general", Value, "reqprefix",
        translate("Request IPv6-prefix of length"))
-o:value("auto", translate("automatic"))
+o:value("auto", translate("Automatic"))
 o:value("no", translate("disabled"))
 o:value("48")
 o:value("52")
@@ -47,7 +38,7 @@ o.default = o.enabled
 
 o = section:taboption("advanced", Value, "ip6prefix",
        translate("Custom delegated IPv6-prefix"))
-o.dataype = "ip6addr"
+o.dataype = "list(ip6addr)"
 
 
 o = section:taboption("advanced", DynamicList, "dns",