summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-09 16:55:59 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-09 16:55:59 +0000
commitd20181da4d975c5d8649f65ce7f33baef23907f2 (patch)
treef17f14d74bcd02b7fa5a6f374f5504feced581ed /syslog-config-html.lsp
parent9ad995cea4060451485664a102657dfe82258dc8 (diff)
downloadacf-alpine-baselayout-d20181da4d975c5d8649f65ce7f33baef23907f2.tar.bz2
acf-alpine-baselayout-d20181da4d975c5d8649f65ce7f33baef23907f2.tar.xz
Trying to figure out what to show and how
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@521 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r--syslog-config-html.lsp70
1 files changed, 12 insertions, 58 deletions
diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp
index b32d323..9ef330a 100644
--- a/syslog-config-html.lsp
+++ b/syslog-config-html.lsp
@@ -1,71 +1,25 @@
-<? view = ... ?>
-<h1>System logging</h1>
-<h2>System info</h2>
-<form>
-<DT>Process status</DT>
-<DD><?= view.status.status ?></DD>
+<? local view = ... ?>
-<DT>Daemon control</DT>
-<dd><form action="" method="POST">
-<input type=submit name="srvcmd" value="start" class="submit">
-<input type=submit name="srvcmd" value="stop" class="submit">
-<input type=submit name="srvcmd" value="restart" class="submit"></form>
-</dd>
+<h1>CONFIGURATION</h1>
-<? if (view.srvcmdresult) then ?>
-<dt>Previous action</dt>
-<dd><pre><?= view.srvcmdresult ?></pre></dd>
-<? end ?>
+<H2>Enable/Disable</H2>
+<DT>Change status for this program</DT>
+<DD><input class="radio" type="radio" name="loglevel" value="2" <? if (tostring(view.config.loglevel) == "2") then io.write('checked') end ?>>Enable
+<input class="radio" type="radio" name="loglevel" value="3" <? if (tostring(view.config.loglevel) == "3") then io.write('checked') end ?>>Disable</DD>
-<H2>Configuration</H2>
+<H2>Guided setup</H2>
-<H3>General settings</H3>
-<DT>Log to given file</DT>
-<DD><input type="text" class="text" name="smallerlogg" value="<?= view.config.logfile ?>"/>
-<P>(default=/var/log/messages)</P></DD>
-
-<DT>Set local log level</DT>
-<DD><input class="radio" type="radio" name="loglevel" value="1" <? if (tostring(view.config.loglevel) == "1") then io.write('checked') end ?>>1
-<input class="radio" type="radio" name="loglevel" value="2" <? if (tostring(view.config.loglevel) == "2") then io.write('checked') end ?>>2
-<input class="radio" type="radio" name="loglevel" value="3" <? if (tostring(view.config.loglevel) == "3") then io.write('checked') end ?>>3
-<input class="radio" type="radio" name="loglevel" value="4" <? if (tostring(view.config.loglevel) == "4") then io.write('checked') end ?>>4
-<input class="radio" type="radio" name="loglevel" value="5" <? if (tostring(view.config.loglevel) == "5") then io.write('checked') end ?>>5
-<input class="radio" type="radio" name="loglevel" value="" <? if (tostring(view.config.loglevel) == "") then io.write('checked') end ?>>Default
-<p>(1=Quiet, 5=Noisy, Default=Not specifyed any loglevel in the config)</P>
-</DD>
+<H3>Remote logging</H3>
-<DT>Smaller logging output</DT>
+<DT>Activate remote logging</DT>
<DD><input type="checkbox" name="smallog" <? if (view.config.smallog) then io.write('checked') end ?>/></DD>
-<H3>Save logs for a longer period</H3>
-<DT>Max size (KB) before rotate</DT>
-<DD><input type="text" class="text" name="maxsize" value="<?= view.config.maxsize ?>"/>
-<p>(default=200KB, 0=off)</p>
-</DD>
-
-<DT>Number of rotated logs to keep</DT>
-<DD><input type="text" class="text" name="logrotate" value="<?= view.config.logrotate ?>"/>
-<p>(default=1, max=99, 0=purge)</p>
-</DD>
-
-<H3>Remote logging</H3>
-
<DT>Log to IP or hostname on PORT</DT>
<DD><input type="text" class="text" name="host" value="<?= view.config.remote ?>"/>
<P>(default PORT=514/UDP)</P></DD>
-<H2>Save above settings</H2>
-<DT>Save settings</DT>
-<DD><input class="submit" type="submit" value="Save"/></DD>
-
-</form>
-
-<?
---[[ DEBUG INFORMATION
-view = ...
-require("debugs")
-io.write(debugs.variables(view))
---]]
-?>
+<H2>Save and apply above settings</H2>
+<DT>Apply settings</DT>
+<DD><input class="submit" type="submit" value="Apply"/></DD>