* luci/app-olsr: added rewritten german and english translation
[project/luci.git] / applications / luci-olsr / luasrc / model / cbi / olsr / olsrdhna.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 mh = Map("olsrd", translate("olsrd_hna", "OLSR - HNA-Ankündigungen"))
16
17 for i, sect in ipairs({ "Hna4", "Hna6" }) do
18 hna = mh:section(TypedSection, sect)
19 hna.addremove = true
20 hna.anonymous = true
21 hna.template = "cbi/tblsection"
22
23 net = hna:option(Value, "NetAddr")
24 msk = hna:option(Value, "Prefix")
25 end
26
27 return mh