summaryrefslogtreecommitdiffstats
path: root/ipsectools-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-02 11:43:27 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-02 11:43:27 +0000
commit15f432dd230df053f861e97638aed42befab24f9 (patch)
treee73223e039cd3f8448fb448ea5fae680f006cc08 /ipsectools-controller.lua
parentbfbd3a922f57bded604819b2bd6d0703fabf985b (diff)
downloadacf-ipsec-tools-15f432dd230df053f861e97638aed42befab24f9.tar.bz2
acf-ipsec-tools-15f432dd230df053f861e97638aed42befab24f9.tar.xz
Added /etc/ipsec.conf to the expert-tab.v0.2.0
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@893 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'ipsectools-controller.lua')
-rw-r--r--ipsectools-controller.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/ipsectools-controller.lua b/ipsectools-controller.lua
index 11d597d..1689b36 100644
--- a/ipsectools-controller.lua
+++ b/ipsectools-controller.lua
@@ -55,6 +55,12 @@ expert = function (self)
if ( self.clientdata.cmdsave ) then
modifications = self.model:update_filecontent(modifications)
end
+
+ local modifications2 = self.clientdata.filecontent2 or ""
+ if ( self.clientdata.cmdsave2 ) then
+ modifications2 = self.model:update_filecontent2(modifications2)
+ end
+
local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller
-- Start/Stop/Restart process
@@ -85,6 +91,17 @@ expert = function (self)
file.cmdsave.descr="* Changes has been saved!"
end
+ -- Add buttons
+ file.cmdsave2 = cfe ({
+ name="cmdsave2",
+ label="Apply settings",
+ value="Apply",
+ type="submit",
+ })
+ if (self.clientdata.cmdsave2) then
+ file.cmdsave2.descr="* Changes has been saved!"
+ end
+
-- Management buttons
local disablestart,disablestop,disablerestart