b0ffa4edae651cd348fc0f34b47aa6145c7f007a
[project/luci.git] / applications / luci-p910nd / luasrc / model / cbi / p910nd.lua
1 --[[
2
3 LuCI p910nd
4 (c) 2008 Yanira <forum-2008@email.de>
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
16 local uci = luci.model.uci.cursor_state()
17
18 m = Map("p910nd", translate("p910nd", "p910nd"),
19         translatef("p910nd_desc"))
20
21 s = m:section(TypedSection, "p910nd", translate("settings", "settings"))
22 s.addremove = true
23 s.anonymous = true
24
25 s:option(Flag, "enabled", translate("enable"))
26
27 s:option(Value, "device", translate("device", "Device")).rmempty = true
28
29 s:option(Value, "port", translate("port"), translate("port_help")).rmempty = true
30
31 s:option(Flag, "bidirectional", translate("bidirectional"))
32
33 return m