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.lsp137
1 files changed, 48 insertions, 89 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp
index f0a07ea..76233a7 100644
--- a/lbu-config-html.lsp
+++ b/lbu-config-html.lsp
@@ -3,13 +3,10 @@
<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>
+ <dt>Program status</dt>
+ <dd><?= view.status.status or "" ?></dd>
+ <dt>Program version</dt>
+ <dd><?= view.status.version ?></dd>
</dl>
<H1>CONFIG</H1>
@@ -17,107 +14,69 @@
<H2>Advanced config</H2>
<H3>Storage media</H3>
<dl>
-<dt>Default media for commit</dt>
-<dd><select name="LBU_MEDIA" size="1">
-<? 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>
+ <dt>Default media for commit</dt>
+ <dd><select name="LBU_MEDIA" size="1">
+ <? 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 or "")) then io.write("selected='selected'") end?>>
+ <?= view.config.LBU_MEDIA_LIST[i]["name"] ?></option>
+ <? end ?>
+ </select></dd>
</dl>
<H3>Include/exclude list</H3>
<dl>
-<dt>Included item(s)</dt>
-<dd><select name="lbu_included" size="3">
-<? for i=1, table.maxn(view.config.lbu_included or {}) do ?>
-<option value="<?= view.config.lbu_included[i] ?>"><?= view.config.lbu_included[i] ?></option>
-<? end ?>
-</select></dd>
-</dl>
-
-<dl>
-<dt>Delete selected include-item</dt>
-<dd><input name="cmd_delete_included" class="submit" type="submit" value="Delete" > (see above)</dd>
-</dl>
-
-<dl>
-<dt>Add item to inlude list</dt>
-<dd><input type="text" name="item_add_include" class="text" value="">
-<input name="cmd_add_include" class="submit" type="submit" value="Add"></dd>
-</dl>
-
-<dl>
-<dt>Excluded item(s)</dt>
-<dd><select name="lbu_excluded" size="3">
-<? for i=1, table.maxn(view.config.lbu_excluded or {}) do ?>
-<option value="<?= view.config.lbu_excluded[i] ?>"><?= view.config.lbu_excluded[i] ?></option>
-<? end ?>
-</select></dd>
-</dl>
-
-<dl>
-<dt>Delete selected exclude-item</dt>
-<dd><input name="cmd_delete_excluded" class="submit" type="submit" value="Delete" > (see above)</dd>
-</dl>
-
-<dl>
-<dt>Add item to exclude list</dt>
-<dd><input type="text" name="item_add_exclude" class="text" value="">
-<input name="cmd_add_exclude" class="submit" type="submit" value="Add"></dd>
+ <dt>Included item(s)</dt>
+ <dd><select name="lbu_included" size="3">
+ <? for i=1, table.maxn(view.config.lbu_included or {}) do ?>
+ <option value="<?= view.config.lbu_included[i] ?>"><?= view.config.lbu_included[i] ?></option>
+ <? end ?>
+ </select></dd>
+ <dt>Delete selected include-item</dt>
+ <dd><input name="cmd_delete_included" class="submit" type="submit" value="Delete" > (see above)</dd>
+ <dt>Add item to inlude list</dt>
+ <dd><input type="text" name="item_add_include" class="text" value="">
+ <input name="cmd_add_include" class="submit" type="submit" value="Add"></dd>
+ <dt>Excluded item(s)</dt>
+ <dd><select name="lbu_excluded" size="3">
+ <? for i=1, table.maxn(view.config.lbu_excluded or {}) do ?>
+ <option value="<?= view.config.lbu_excluded[i] ?>"><?= view.config.lbu_excluded[i] ?></option>
+ <? end ?>
+ </select></dd>
+ <dt>Delete selected exclude-item</dt>
+ <dd><input name="cmd_delete_excluded" class="submit" type="submit" value="Delete" > (see above)</dd>
+ <dt>Add item to exclude list</dt>
+ <dd><input type="text" name="item_add_exclude" class="text" value="">
+ <input name="cmd_add_exclude" class="submit" type="submit" value="Add"></dd>
</dl>
<H3>Security/Encryption</H3>
-
-<dl>
-<dt>Password protected commits</dt>
-<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="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" value="<?= view.config.PASSWORD or "" ?>" name="PASSWORD"></dd>
+ <dt>Password protected commits</dt>
+ <dd><input type="checkbox" name="ENCRYPTION" <? if (view.config.ENCRYPTION) then io.write("checked=yes") end ?>></dd>
+ <dt>Cipher to use at encryption</dt>
+ <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>
+ <dt>Password when encrypting</dt>
+ <dd><input type="text" class="text" value="<?= view.config.PASSWORD or "" ?>" name="PASSWORD"></dd>
</dl>
<H2>Save and apply above settings</H2>
<DL>
-<DT>Apply settings</DT>
-<DD><input class="submit" name="config_submit" type="submit" value="Apply" disabled /></DD>
+ <DT>Apply settings</DT>
+ <DD><input class="submit" name="config_submit" type="submit" value="Apply" /></DD>
</DL>
</form>
-<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
+--[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]
?>
+
<? -- vim: set filetype=lua : ?>