summaryrefslogtreecommitdiffstats
path: root/lbu-config-html.lsp
diff options
context:
space:
mode:
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>