diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-15 17:49:03 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-15 17:49:03 +0000 |
commit | ff5d1eb7ac50df3be2c9c39559cf979a8afa3695 (patch) | |
tree | d4d75130992f1cadb27f7c88447f1685b3a3dfa8 /syslog-expert-html.lsp | |
parent | 8b6fcbe8893ec89835b6cdaed262da23809850f7 (diff) | |
download | acf-alpine-baselayout-ff5d1eb7ac50df3be2c9c39559cf979a8afa3695.tar.bz2 acf-alpine-baselayout-ff5d1eb7ac50df3be2c9c39559cf979a8afa3695.tar.xz |
Changed the looks of syslog-view-files
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@587 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'syslog-expert-html.lsp')
-rw-r--r-- | syslog-expert-html.lsp | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/syslog-expert-html.lsp b/syslog-expert-html.lsp index 5f5d6ec..a212df0 100644 --- a/syslog-expert-html.lsp +++ b/syslog-expert-html.lsp @@ -1,24 +1,37 @@ <? local view = ... ?> -<h1>CONFIGURATION</h1> +<h1>SYSTEM INFO</h1> + +<DL> +<dt>Program status</dt> +<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD> +</DL> -<H2>Enable/Disable</H2> -<DT>Change status for this program</DT> -<DD><input class="radio" type="radio" name="enabled" value="2" <? if (view.status.enabled) then io.write('checked') end ?> >Enable -<input class="radio" type="radio" name="enabled" value="3" <? if not (view.status.enabled) then io.write('checked') end ?> >Disable</DD> +<DL> +<dt>Program version</dt> +<dd><?= view.status.version ?></dd> +</DL> + +<h1>CONFIGURATION</h1> <H2>Expert config</H2> <h3>File details</h3> +<DL> <dt>File name</dt> <dd><?= view.file.details.path ?></dd> +</DL> +<DL> <dt>File size</dt> <dd><?= view.file.details.size ?></dd> +</DL> +<DL> <dt>Last modified</dt> <dd><?= view.file.details.mtimelong ?></dd> +</DL> <h3>File content</h3> @@ -27,8 +40,28 @@ <textarea name="modifications"><?= view.file.content ?></textarea> <H2>Save and apply above settings</H2> +<DL> <DT>Apply settings</DT> -<DD><input class="submitxxx" type="submit" value="Apply"/></DD> +<DD><input class="submit" type="submit" value="Apply" disabled/></DD> +</DL> + +<H1>MANAGEMENT</H1> + +<dl> +<dt>Program controll-panel</dt> +<dd><form name="cmd" action="" method="POST"> +<input type=submit class="submit" name="cmd" value="start" disabled> +<input type=submit class="submit" name="cmd" value="stop" disabled> +<input type=submit class="submit" name="cmd" value="restart" 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 |