summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/model/cbi
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-10-21 13:27:55 +0000
committerManuel Munz <freifunk@somakoma.de>2011-10-21 13:27:55 +0000
commitc0ce5f96f28b6db62470ad24799ee09af5a3f9d4 (patch)
treee34363806dd36c029a2e424108a85f96317597ee /modules/freifunk/luasrc/model/cbi
parentcd1fa7c070eb3e700c4978c5c71cabcf1b693f6e (diff)
modules/freifunk: Nicer layout of the contact page; make note a TextValue field in the admin interface
Diffstat (limited to 'modules/freifunk/luasrc/model/cbi')
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/contact.lua18
1 files changed, 5 insertions, 13 deletions
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/contact.lua b/modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
index 178df28b85..6f998819a3 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
@@ -2,14 +2,13 @@
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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$
]]--
luci.i18n.loadc("freifunk")
@@ -18,17 +17,10 @@ m = Map("freifunk", translate("Contact"), translate("Please fill in your contact
c = m:section(NamedSection, "contact", "public", "")
-local nick = c:option(Value, "nickname", translate("Nickname"))
-nick.rmempty = false
-
-name = c:option(Value, "name", translate("Realname"))
-name.rmempty = false
-
-mail = c:option(Value, "mail", translate("E-Mail"))
-mail.rmempty = false
-
+c:option(Value, "nickname", translate("Nickname"))
+c:option(Value, "name", translate("Realname"))
+c:option(Value, "mail", translate("E-Mail"))
c:option(Value, "phone", translate("Phone"))
-
-c:option(Value, "note", translate("Notice"))
+c:option(TextValue, "note", translate("Notice")).rows = 10
return m