applications/ffwizard: Massive changes to the ffwizard to make it more generic. Also...
[project/luci.git] / modules / freifunk / luasrc / model / cbi / freifunk / contact.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 luci.i18n.loadc("freifunk")
16
17 m = Map("freifunk", translate("Contact"), translate("Please fill in your contact details below."))
18
19 c = m:section(NamedSection, "contact", "public", "")
20
21 local nick = c:option(Value, "nickname", translate("Nickname"))
22 nick.rmempty = false
23
24 name = c:option(Value, "name", translate("Realname"))
25 name.rmempty = false
26
27 mail = c:option(Value, "mail", translate("E-Mail"))
28 mail.rmempty = false
29
30 c:option(Value, "phone", translate("Phone"))
31
32 c:option(Value, "note", translate("Notice"))
33
34 return m