diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-03-03 16:54:31 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-03-03 16:54:31 +0000 |
commit | 8c41156d76be7332fd34d1ab18a078510745b81a (patch) | |
tree | b6c940129b860f8844e6c031e47ef9120b673a45 /shorewall-controller.lua | |
parent | 7c698f58e0661639b5bff855e82a76fff8c90b65 (diff) | |
download | acf-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.lua | 12 |
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 ({ |