diff options
Diffstat (limited to 'lbu-config-html.lsp')
-rw-r--r-- | lbu-config-html.lsp | 77 |
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 : ?> |