summaryrefslogtreecommitdiffstats
path: root/lbu-config-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-16 17:01:00 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-16 17:01:00 +0000
commit773a0952af828389e84c4cc94f1bff15e4f7f09b (patch)
treee6faf2c97e84915c6b6a0204fd7b1c06a2bf25ad /lbu-config-html.lsp
parentf2ff77a050a092c3677746a31fe061477e2cc85d (diff)
downloadacf-alpine-conf-773a0952af828389e84c4cc94f1bff15e4f7f09b.tar.bz2
acf-alpine-conf-773a0952af828389e84c4cc94f1bff15e4f7f09b.tar.xz
Moving around things in LBU to get a grip on how it could look and work
git-svn-id: svn://svn.alpinelinux.org/acf/lbu/trunk@592 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-config-html.lsp')
-rw-r--r--lbu-config-html.lsp77
1 files changed, 77 insertions, 0 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp
new file mode 100644
index 0000000..24ef5a1
--- /dev/null
+++ b/lbu-config-html.lsp
@@ -0,0 +1,77 @@
+<? local view = ... ?>
+
+<h1>SYSTEM INFO</h1>
+
+<dl>
+<dt>Program status</dt>
+<dd><?= view.status.status or "" ?></dd>
+</dl>
+
+<dl>
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+</dl>
+
+<H1>CONFIG</H1>
+<H2>Advanced config</H2>
+<H3>Storage media</H3>
+<dl>
+<dt>Default media for commit</dt>
+<dd><select name="LBU_MEDIA" size="1">
+<option value="">No default</option>
+<option value="floppy">floppy</option>
+<option value="usb">usb</option>
+</select></dd>
+</dl>
+
+<H3>Security/Encryption</H3>
+
+<dl>
+<dt>Password protected commits</dt>
+<dd><input type="checkbox" name="settings_startup"></dd>
+</dl>
+
+<dl>
+<dt>Cipher to use at encryption</dt>
+<dd><select name="hosts_list" size="1">
+<option value="">aes-256-cbc</option>
+</select>
+(For possible ciphers, try: openssl -v)</dd>
+</dl>
+
+<dl>
+<dt>Password when encrypting</dt>
+<dd><input type="text" class="text" name="settings_startup"></dd>
+</dl>
+
+<H2>Save and apply above settings</H2>
+<DL>
+<DT>Apply settings</DT>
+<DD><input class="submit" type="submit" value="Apply" disabled/></DD>
+</DL>
+
+<H1>MANAGEMENT</H1>
+
+<dl>
+<dt>Commit and save changes</dt>
+<dd><form name="cmd" action="" method="POST">
+<input type=submit class="submit" name="cmd" value="commit" disabled>
+</form></dd>
+</dl>
+
+<? if (view.startstop) and (view.startstop.cmdresult) then ?>
+<dl>
+<dt>Previous action result</dt>
+<dd><pre><?= view.startstop.cmdresult?></pre></dd>
+</dl>
+<? end ?>
+
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
+
+<? -- vim: set filetype=lua : ?>