summaryrefslogtreecommitdiffstats
path: root/lbu-config-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-05 14:06:22 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-05 14:06:22 +0000
commitab9e94b01060564436b9ba4eef0a2ab1465e7b83 (patch)
tree3fde3c8f315e234c51867fe946f6a48eb526b247 /lbu-config-html.lsp
parentdfcf164b909dc654e42820cce73baf8aeb54a26b (diff)
downloadacf-alpine-conf-ab9e94b01060564436b9ba4eef0a2ab1465e7b83.tar.bz2
acf-alpine-conf-ab9e94b01060564436b9ba4eef0a2ab1465e7b83.tar.xz
Updated lbu to use new cfe model and components
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1197 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-config-html.lsp')
-rw-r--r--lbu-config-html.lsp63
1 files changed, 12 insertions, 51 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp
index d9e1491..b8b10eb 100644
--- a/lbu-config-html.lsp
+++ b/lbu-config-html.lsp
@@ -1,4 +1,4 @@
-<? local form = ...
+<? local form, viewlibrary = ...
require("viewfunctions")
?>
<?
@@ -9,57 +9,18 @@ io.write("</span>")
--]]
?>
-<H1>SYSTEM INFO</H1>
-<DL>
-<?
-local myform = form.status
-local tags = { "status", "version", }
-displayinfo(myform,tags,"viewonly")
-?>
-</DL>
-
-<H1>CONFIG</H1>
-<form name="config" action="" method="POST">
-<H2>Advanced config</H2>
-<H3>Storage media</H3>
-<DL>
<?
-local myform = form.config
-local tags = { "LBU_MEDIA", }
-displayinfo(myform,tags)
-?>
-</DL>
-
-<H3>Included list</H3>
-<DL>
-<?
-local tags = { "lbu_included","cmd_delete_included", "item_add_included", "cmd_add_included", }
-displayinfo(myform,tags)
-?>
-</DL>
-
-<H3>Excluded list</H3>
-<DL>
-<?
-local tags = { "lbu_excluded","cmd_delete_excluded", "item_add_excluded", "cmd_add_excluded", }
-displayinfo(myform,tags)
-?>
-</DL>
-
-<H3>Security/Encryption</H3>
-<DL>
-<?
-local tags = { "ENCRYPTION", "DEFAULT_CIPHER", "PASSWORD", }
-displayinfo(myform,tags)
+ if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("basicstatus")
+ end
?>
-</DL>
+<H1>Config</H1>
+<?
+ local order = { "LBU_MEDIA", "ENCRYPTION", "DEFAULT_CIPHER", "PASSWORD" }
+ displayform(form, order)
-<H2>Save and apply above settings</H2>
-<DL>
-<?
-local tags = { "config_submit" }
-displayinfo(myform,tags)
+ if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("editincluded")
+ viewlibrary.dispatch_component("editexcluded")
+ end
?>
-</DL>
-
-</form>