From 210f1c930825f872aa6003f37a8908a63c2c91f5 Mon Sep 17 00:00:00 2001
From: Mika Havela
Date: Tue, 6 May 2008 15:11:55 +0000
Subject: Changing buttons to be cfe's (coming from controller) rather than
created by the view-file. Reorganized the view-files so they look a bit more
like other ACF's.
git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1108 ab2d0c66-481e-0410-8bed-d214d4d58bed
---
dansguardian-plain-html.lsp | 78 ++++++++++++++++++++++++++++++++-------------
1 file changed, 55 insertions(+), 23 deletions(-)
(limited to 'dansguardian-plain-html.lsp')
diff --git a/dansguardian-plain-html.lsp b/dansguardian-plain-html.lsp
index cf76317..7ef2847 100644
--- a/dansguardian-plain-html.lsp
+++ b/dansguardian-plain-html.lsp
@@ -1,4 +1,5 @@
+require("viewfunctions")
local form = ...
local data = form.option
local service = form.service
@@ -6,7 +7,7 @@
local srv1fill = ""
local srv2fill = "disabled"
- if service.status == "running" then
+ if form.info.status.value == "Enabled" then
srv1fill = "disabled"
srv2fill = ""
end
@@ -18,34 +19,65 @@
end
?>
+
+
+--[[ DEBUG INFORMATION
+io.write("
Modifying the DansGuardian configuration file is generally not necessary.
-You must be familiar with the configuration file before proceeding.
+
+
Warning
+
Modifying the DansGuardian configuration file is generally not necessary.
+You must be familiar with the configuration file before proceeding.
+
Information
+
These parameters define the interface and port that Dansguardian uses to accept connections.
+
-
Status
-
io.write( service.message ) ?>
+
Configuration
+
-
-This process runs as a service. When you make and save changes, the configuration
-files for the service are changed. However, the changes will not be applied
-until you restart the service.
-
-
-
These parameters define the interface and port that Dansguardian uses to accept connections.
+
Save changes
+
+
+local myform = form.service
+local tags = { "cmdsave", }
+displayinfo(myform,tags)
+?>
+ if (service) and (service.error) and (#service.error > 0) then ?>
+
Config status
io.write(service.error ) ?>
+ end ?>
+ if (service) and (service.cfgerr) and (#service.cfgerr > 0) then ?>
+
Config status
io.write(service.cfgerr ) ?>
+ end ?>
-
+
Process information
This process runs as a service. When you make and save changes, the configuration
+files for the service are changed. However, the changes will not be applied
+until you restart the service.