summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
blob: 9ef330a0b120e4daf92579e6ff11866afac58d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<? local view = ... ?>

<h1>CONFIGURATION</h1>

<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>Guided setup</H2>


<H3>Remote logging</H3>

<DT>Activate remote logging</DT>
<DD><input type="checkbox" name="smallog" <? if (view.config.smallog) then io.write('checked') end ?>/></DD>

<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 and apply above settings</H2>
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" value="Apply"/></DD>