NIU: More restructuring, Add: change password, hostname
[project/luci.git] / modules / niu / luasrc / model / cbi / niu / network / wandevice.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2009 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 local cursor = require "luci.model.uci".cursor()
16 local nw = require "luci.model.network"
17 nw.init(cursor)
18
19 f = Form("wandev", "Internet Device")
20 l = f:field(ListValue, "device", "Gerät")
21 l:value("ethernet:eth0", "Ethernet / Cable / DSL (eth0)")
22 l:value("none", "No Internet Connection")
23
24 function f.handle(self, state, data)
25         if state == FORM_VALID then
26                 
27         end
28 end
29
30 return f