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.lsp23
1 files changed, 13 insertions, 10 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp
index 24ef5a1..095f6bc 100644
--- a/lbu-config-html.lsp
+++ b/lbu-config-html.lsp
@@ -18,9 +18,11 @@
<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>
+<? for i=1, table.maxn(view.config.LBU_MEDIA_LIST) do ?>
+<option value="<?= view.config.LBU_MEDIA_LIST[i]["value"] ?>"
+<? if (string.lower(view.config.LBU_MEDIA_LIST[i]["value"]) == string.lower(view.config.LBU_MEDIA)) then io.write("selected='selected'") end?>>
+<?= view.config.LBU_MEDIA_LIST[i]["name"] ?></option>
+<? end ?>
</select></dd>
</dl>
@@ -28,20 +30,21 @@
<dl>
<dt>Password protected commits</dt>
-<dd><input type="checkbox" name="settings_startup"></dd>
+<dd><input type="checkbox" name="ENCRYPTION" <? if (view.config.ENCRYPTION) then io.write("checked=yes") end ?>></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>
+<dd><select name="DEFAULT_CIPHER" size="1">
+<? for i=1, table.maxn(view.config.DEFAULT_CIPHER_LIST) do ?>
+<option value="<?= view.config.DEFAULT_CIPHER_LIST[i] ?>" <? if (string.lower(view.config.DEFAULT_CIPHER_LIST[i]) == string.lower(view.config.DEFAULT_CIPHER)) then io.write("selected='selected'") end?>><?= view.config.DEFAULT_CIPHER_LIST[i] ?></option>
+<? end ?>
+</select></dd>
</dl>
<dl>
<dt>Password when encrypting</dt>
-<dd><input type="text" class="text" name="settings_startup"></dd>
+<dd><input type="text" class="text" value="<?= view.config.PASSWORD or "" ?>" name="PASSWORD"></dd>
</dl>
<H2>Save and apply above settings</H2>
@@ -68,7 +71,7 @@
<?
---[[ DEBUG INFORMATION
+---[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]