From 8c41156d76be7332fd34d1ab18a078510745b81a Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Mar 2008 16:54:31 +0000 Subject: 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 --- shorewall-controller.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shorewall-controller.lua') 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 ({ -- cgit v1.2.3