diff options
Diffstat (limited to 'ipsectools-controller.lua')
-rw-r--r-- | ipsectools-controller.lua | 17 |
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 |