diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-05-17 17:00:21 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-05-17 17:00:21 +0000 |
commit | 0a3877049b42c7645a6358ddaf4516b6b091a524 (patch) | |
tree | 7c4417234cceb55740a0d65c4979465f6c0de4f9 /applications/luci-olsr/luasrc | |
parent | 2cd7e95524af6022dab40a2d57db84bca74f8f55 (diff) |
applications/luci-olsr: Add dataype verdification, placeholders and helptexts to the olsrhna page
Diffstat (limited to 'applications/luci-olsr/luasrc')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua index 4a1e69320..eb3b71272 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua @@ -15,22 +15,30 @@ $Id$ mh = Map("olsrd", translate("OLSR - HNA-Announcements")) -hna4 = mh:section(TypedSection, "Hna4", "Hna4") +hna4 = mh:section(TypedSection, "Hna4", translate("Hna4"), translate("Both values must use the dotted decimal notation.")) hna4.addremove = true hna4.anonymous = true hna4.template = "cbi/tblsection" net4 = hna4:option(Value, "netaddr", translate("Network address")) +net4.datatype = "ip4addr" +net4.placeholder = "15.15.0.0" msk4 = hna4:option(Value, "netmask", translate("Netmask")) +msk4.datatype = "ip4addr" +msk4.placeholder = "255.255.255.0" - -hna6 = mh:section(TypedSection, "Hna6", "Hna6") +hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " .. + "prefix must be in CIDR notation.")) hna6.addremove = true hna6.anonymous = true hna6.template = "cbi/tblsection" net6 = hna6:option(Value, "netaddr", translate("Network address")) +net6.datatype = "ip6addr" +net6.placeholder = "fec0:2200:106:0:0:0:0:0" msk6 = hna6:option(Value, "prefix", translate("Prefix")) +msk6.datatype = "integer" +msk6.placeholder = "48" return mh |