flm01/openwrt/packages/luci/modules/freifunk/luasrc/model/cbi/freifunk/contact.lua

35 lines
1.1 KiB
Lua

--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: contact.lua 3941 2008-12-23 21:39:38Z jow $
]]--
luci.i18n.loadc("freifunk")
m = Map("freifunk", translate("contact"), translate("contact1"))
c = m:section(NamedSection, "contact", "public", "")
c:option(Value, "nickname", translate("ff_nickname"))
c:option(Value, "name", translate("ff_name"))
c:option(Value, "mail", translate("ff_mail"), translate("ff_mail1"))
c:option(Value, "phone", translate("ff_phone"))
c:option(Value, "location", translate("ff_location"))
c:option(Value, "note", translate("ff_note"))
m2 = Map("system", translate("geo"))
s = m2:section(TypedSection, "system", "")
s:option(Value, "latitude", translate("latitude", "Breite")).rmempty = true
s:option(Value, "longitude", translate("longitude", "Länge")).rmempty = true
return m, m2