fd3bcf7ef8ec93c498c784581d0b4d12711e310f
[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 m = Map("freifunk", translate("contact"), translate("contact1"))
15
16 c = m:section(NamedSection, "contact", "public", "")
17
18 c:option(Value, "nickname", translate("nickname"))
19 c:option(Value, "name", translate("name"))
20 c:option(Value, "mail", translate("mail"), translate("mail1"))
21 c:option(Value, "phone", translate("phone"))
22 c:option(Value, "location", translate("location"))
23 c:option(Value, "note", translate("note"))
24
25 m2 = Map("system", translate("geo"))
26
27 s = m2:section(TypedSection, "system", "")
28 s:option(Value, "latitude", translate("latitude", "Breite")).rmempty = true
29 s:option(Value, "longitude", translate("longitude", "Länge")).rmempty = true
30
31 return m, m2