summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-30 16:18:58 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-30 16:18:58 +0000
commit86e67c5e0f5622b36ce792a6065e485b083e0f47 (patch)
treeffa975a6d0c41903a4873d61427975cc6fe6b81c /syslog-config-html.lsp
parent9e5cf48cfb22cf85cca230e13312254dbf651e51 (diff)
downloadacf-alpine-baselayout-86e67c5e0f5622b36ce792a6065e485b083e0f47.tar.bz2
acf-alpine-baselayout-86e67c5e0f5622b36ce792a6065e485b083e0f47.tar.xz
Redoing mostly everything trying to present things as cfe (my own fault when not doing this from start)
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@666 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r--syslog-config-html.lsp14
1 files changed, 7 insertions, 7 deletions
diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp
index af69007..3782147 100644
--- a/syslog-config-html.lsp
+++ b/syslog-config-html.lsp
@@ -15,9 +15,6 @@
<H1>CONFIGURATION</H1>
<form name="config" action="" method="POST">
-<H2>Guided config</H2>
-
-<!--
<H2>Advanced config</H2>
<H3>General settings</H3>
@@ -74,10 +71,9 @@
</DD>
</DL>
--->
<H3>Remote logging</H3>
<DL>
-<!--
+
<? var = "-L" ?>
<DT <? if (view.errors) and (view.errors["SYSLOGD_OPTS"][var]) then io.write("class='error'") end ?>>Log locally and via network</DT>
<DD><input type="checkbox" name="<?= var ?>" <? if (view.config["SYSLOGD_OPTS"][var]) then io.write('checked=yes') end ?> />
@@ -86,7 +82,7 @@
io.write("<p class='error'>",view.errors["SYSLOGD_OPTS"][var] ,"</p>")
end ?>
</DD>
--->
+
<? var = "-R" ?>
<DT <? if (view.errors) and (view.errors["SYSLOGD_OPTS"][var]) then io.write("class='error'") end ?>>Log to IP or hostname on PORT</DT>
<DD><input type="text" class="text" name="<?= var ?>" value="<?= view.config["SYSLOGD_OPTS"][var] ?>"/>
@@ -103,6 +99,10 @@
<DL>
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" name="cmdsave" value="Apply" /></DD>
+ <? if (view.cmderrors) then ?>
+ <dt class='error'>Errors in previous action</dt>
+ <dd><pre class='error'><?= view.cmderrors?></pre></dd>
+ <? end ?>
</DL>
</form>
<H1>MANAGEMENT</H1>
@@ -123,7 +123,7 @@
<?
---[[ DEBUG INFORMATION
+---[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]