luci-0.11: merge r9571 - r9573
[project/luci.git] / applications / luci-upnp / luasrc / model / cbi / upnp / upnpmini.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15 m = Map("upnpd", translate("Universal Plug & Play"), translate("UPNP allows clients in the local network to automatically configure the router."))
16
17 s = m:section(NamedSection, "config", "upnpd", "")
18 s.addremove = false
19
20 e = s:option(Flag, "enabled", translate("enable"))
21 e.rmempty = false
22
23 s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
24 s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
25
26 return m