modules/admin-full, modules/admin-mini: prevent addremove in system page
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / buttons.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("system", translate("buttons"), translate("buttons_desc"))
15
16 s = m:section(TypedSection, "button", "")
17 s.anonymous = true
18 s.addremove = true
19
20 s:option(Value, "button")
21
22 act = s:option(ListValue, "action")
23 act:value("released")
24
25 s:option(Value, "handler")
26
27 min = s:option(Value, "min")
28 min.rmempty = true
29
30 max = s:option(Value, "max")
31 max.rmempty = true