modules/freifunk: Add homepage(s) field to contact information
[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 Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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
14 m = Map("freifunk", translate("Contact"), translate("Please fill in your contact details below."))
15
16 c = m:section(NamedSection, "contact", "public", "")
17
18 c:option(Value, "nickname", translate("Nickname"))
19 c:option(Value, "name", translate("Realname"))
20 c:option(DynamicList, "homepage", translate("Homepage"))
21 c:option(Value, "mail", translate("E-Mail"))
22 c:option(Value, "phone", translate("Phone"))
23 c:option(TextValue, "note", translate("Notice")).rows = 10
24
25 return m