diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-23 14:31:44 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-23 14:31:44 +0000 |
commit | b6c2c25e5e99b6d8515a777a00f5a97c1f6b1d23 (patch) | |
tree | 8d38ec02518e736922c41961545d8123191641b0 /lbu-commit-html.lsp | |
parent | 8d5450a1ad2402c0e5b764a5e033cd9134dd4d23 (diff) | |
download | acf-alpine-conf-b6c2c25e5e99b6d8515a777a00f5a97c1f6b1d23.tar.bz2 acf-alpine-conf-b6c2c25e5e99b6d8515a777a00f5a97c1f6b1d23.tar.xz |
Forcing user to enter valid options in the config-tab before making a commit.
Displaying current errors in the config/settings.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@628 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-commit-html.lsp')
-rw-r--r-- | lbu-commit-html.lsp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lbu-commit-html.lsp b/lbu-commit-html.lsp index ffba7a4..f86bef1 100644 --- a/lbu-commit-html.lsp +++ b/lbu-commit-html.lsp @@ -12,7 +12,7 @@ <H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2> <dl> <dt>Archives will be saved to</dt> - <dd><?= view.status.LBU_MEDIA or "" ?></dd> + <dd><?= view.status.LBU_MEDIA or "<p class=error>No default - (Needs to be configured)</p>" ?></DD> <dt>Archives will be encrypted</dt> <dd><? if (view.status.ENCRYPTION) then io.write("yes <I>(Using cipher: " .. view.status.DEFAULT_CIPHER .. ")</I>") else io.write("No") end ?></DD> </dl> @@ -22,13 +22,15 @@ <H2>Save to media</h2> <form name="cmd" action="" method="POST"> <dl> - <dt>Remove existing apk.ovls from media</dt> - <dd><input type="checkbox" class="checkbox" name="lbucleanmedia" > -<p class=attention>Attention!</p><p>By checking this box, you remove all existing archives from the <?= view.status.LBU_MEDIA ?> when commiting (adding the '-d' flag to the commit action).<br>This needs to be done when you want/dont want to encrypt your archive and there already exists archives on the media.<BR>There can only be one sort of arcive on the media.</dd> <dt>Simulate/Test a commit</dt> <dd><input type=submit class="submit" name="lbusimulate" value="simulate" ></dd> <dt>Actually Commit and save changes</dt> <dd><input type=submit class="submit" name="lbucommit" value="commit" ></dd> +<? if (view.cmderror) and (view.cmderror["-d"]) then ?> + <dt class=error>Remove existing apk.ovls from media</dt> + <dd><input type="checkbox" class="checkbox" name="lbucleanmedia" > +<p>By checking this box, you remove all existing archives from the <?= view.status.LBU_MEDIA ?> when commiting (adding the '-d' flag to the commit action).<br>This needs to be done when you want/dont want to encrypt your archive and there already exists archives on the media.<BR>There can only be one sort of arcive on the media.</p><p>If you dont remove existing apk.ovls from media, your commit will most likely fail.</p></dd> +<? end ?> </dl> </form> |