summaryrefslogtreecommitdiffstats
path: root/shorewall-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-03 16:54:31 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-03 16:54:31 +0000
commit8c41156d76be7332fd34d1ab18a078510745b81a (patch)
treeb6c940129b860f8844e6c031e47ef9120b673a45 /shorewall-controller.lua
parent7c698f58e0661639b5bff855e82a76fff8c90b65 (diff)
downloadacf-shorewall-8c41156d76be7332fd34d1ab18a078510745b81a.tar.bz2
acf-shorewall-8c41156d76be7332fd34d1ab18a078510745b81a.tar.xz
Cleaning up the code a bit.
Adding some examples into the config-tab. Minor modifications on the view-files. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@794 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-controller.lua')
-rw-r--r--shorewall-controller.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua
index a2ff244..efcaa65 100644
--- a/shorewall-controller.lua
+++ b/shorewall-controller.lua
@@ -71,8 +71,20 @@ function config(self)
local status=getstatus(self)
-- Add a [New] record to the options
+ table.insert(config.interfaces_list.option, "[New]")
table.insert(config.zones_list.option, "[New]")
table.insert(config.policies_list.option, "[New]")
+ table.insert(config.rules_list.option, "[New]")
+
+ -- Add button
+ config.interfaces_list_cmd = cfe ({
+ name="interfaces_list_cmd",
+ label="Edit above record",
+ value="Edit",
+ type="submit",
+ disabled="yes",
+ })
+ config.interfaces_list_cmd.descr="Mark a item in above list before pressing [" .. config.interfaces_list_cmd.value .. "]"
-- Add button
config.zones_list_cmd = cfe ({