summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openntpd-advanced-html.lsp8
-rw-r--r--openntpd-logfile-html.lsp2
-rw-r--r--openntpd-read-html.lsp6
-rw-r--r--openntpd-settings-html.lsp26
-rw-r--r--openntpd.menu2
5 files changed, 21 insertions, 23 deletions
diff --git a/openntpd-advanced-html.lsp b/openntpd-advanced-html.lsp
index 33f59e5..7baaa56 100644
--- a/openntpd-advanced-html.lsp
+++ b/openntpd-advanced-html.lsp
@@ -9,7 +9,7 @@
<dd><? io.write(view.statusinfo.status) ?><? if (view.startstop.status) then io.write(" (" .. view.startstop.status .. ")") end ?></dd>
<dt>Start or stop process</dt>
-<dd><form name="start" action="" method="POST"><input type=submit name="cmd" value="start" style="width:100px"></form><form name="stop" action="" method="POST"><input type=submit name="cmd" value="stop" style="width:100px"></form></dd>
+<dd><form name="start" action="" method="POST"><input type=submit name="cmd" class="submit" value="start"></form><form name="stop" action="" method="POST"><input type=submit name="cmd" class="submit" value="stop"></form></dd>
<h2>Details</h2>
@@ -29,10 +29,10 @@
<h2>Content</h2>
<form name="myform" action="" method="POST">
-<input name="name" type=hidden value="<?= view.filecontent.filedetails.longname ?>" style="width:100%">
-<textarea name="modifications" style="width:100%;height:360px;"><?= view.filecontent.value ?></textarea>
+<input name="name" type=hidden value="<?= view.filecontent.filedetails.longname ?>">
+<textarea name="modifications"><?= view.filecontent.value ?></textarea>
-<input type="submit" name="cmd" value="update"></form>
+<input type="submit" name="cmd" class="submit" value="update"></form>
<?
--[[ DEBUG INFORMATION
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp
index 748bd09..593a8d1 100644
--- a/openntpd-logfile-html.lsp
+++ b/openntpd-logfile-html.lsp
@@ -9,7 +9,7 @@
<dd><?= view.logfile.cmd ?></dd>
<h2>Content</h2>
-<textarea name="" style="width:100%;height:450px;"><? io.write(view.logfile.value) ?></textarea>
+<textarea name=""><? io.write(view.logfile.value) ?></textarea>
</body>
</html>
diff --git a/openntpd-read-html.lsp b/openntpd-read-html.lsp
index 9d059c0..4d1e840 100644
--- a/openntpd-read-html.lsp
+++ b/openntpd-read-html.lsp
@@ -19,12 +19,6 @@
<dt>Previous time adjustment</dt>
<dd><? io.write(view.statusinfo.timechanged) ?></dd>
-<? --[[ ?>
-<dt>TimeZone</dt>
-<dd><? io.write(view.statusinfo.timezone) ?></dd>
-<? --]] ?>
-
-
<?
--[[ DEBUG INFORMATION
require("debugs")
diff --git a/openntpd-settings-html.lsp b/openntpd-settings-html.lsp
index 9bc7c78..e2a2b32 100644
--- a/openntpd-settings-html.lsp
+++ b/openntpd-settings-html.lsp
@@ -8,17 +8,20 @@
<dd><? io.write(view.statusinfo.status) ?><? if (view.startstop.status) then io.write(" (" .. view.startstop.status .. ")") end ?></dd>
<dt>Start or stop process</dt>
-<dd><form name="start" action="" method="POST"><input type=submit name="cmd" value="start" style="width:100px"></form><form name="stop" action="" method="POST"><input type=submit name="cmd" value="stop" style="width:100px"></form></dd>
-
+<dd><form name="start" action="" method="POST">
+<input type=submit class="submit" name="cmd" value="start"></form>
+<form name="stop" action="" method="POST">
+<input type=submit class="submit" name="cmd" value="stop"></form></dd>
<h2>NTPD SETTINGS</h2>
<form name="cmd" action="" method="POST">
+
<dt>Set time immediately at startup</dt>
<dd><input type="checkbox" name="settings_startup" <? if (view.statusinfo.setstimeonstartup) then io.write("checked") end ?>></dd>
<dt>Save the above settings</dt>
-<dd><input name="settings_cmd" type="submit" value="Save"> (see above)</dd>
+<dd><input name="settings_cmd" class="submit" type="submit" value="Save"> (see above)</dd>
</form>
<h3>'SET TIME' OPTIONS</h3>
@@ -26,7 +29,7 @@
<form name="cmd" action="" method="POST">
<dt>Timeserver hosts...</dt>
<dd>
-<select name="hosts_list" size="3" style="width:200px;">
+<select name="hosts_list" size="3">
<? if (view.statusinfo.servers) then
for i = 1, table.maxn(view.statusinfo.servers) do ?>
<option value="servers <? io.write(view.statusinfo.servers[i].value) ?>"><? io.write(view.statusinfo.servers[i].value) ?> (pool)</option>
@@ -40,14 +43,15 @@ In most cases you could use <i><b>pool.ntp.org</b></i> or<br><i><b>[countryname]
<? if (view.errors.hosts_list) then io.write("<p class=error>"..view.errors.hosts_list.."</p>") end ?></dd>
<dt>Delete selected host</dt>
-<dd><input name="hosts_cmd" type="submit" value="Delete"> (see above)</dd>
+<dd><input name="hosts_cmd" class="submit" type="submit" value="Delete"> (see above)</dd>
<dt>Host to add</dt>
-<dd><input type="text" name="hosts_add" value=""><? if (view.errors.hosts_add) then io.write("<p class=error>"..view.errors.hosts_add.."</p>") end ?></dd>
+<dd><input type="text" name="hosts_add" class="text" value=""><? if (view.errors.hosts_add) then io.write("<p class=error>"..view.errors.hosts_add.."</p>") end ?></dd>
<dt>Type of above server</dt>
-<dd><table><tr><td width="100px"><input type="radio" name="hosts_type" value="server">Single server</td><td width="100px"><input type="radio" name="hosts_type" value="servers">Server pool</td></tr></table><? if (view.errors.hosts_type) then io.write("<p class=error>"..view.errors.hosts_type.."</p>") end ?></dd>
+<dd><span style="display:inline">Single server:<input type="radio" name="hosts_type" value="server"> Server pool:<input type="radio" name="hosts_type" value="servers"></span></dd>
+
<dt>Add new host</dt>
-<dd><input name="hosts_cmd" type="submit" value="Add"></dd>
+<dd><input name="hosts_cmd" class="submit"type="submit" value="Add"></dd>
</form>
<h3>'PRESENT TIME' OPTIONS (ACT AS TIME SERVER)</h3>
@@ -55,7 +59,7 @@ In most cases you could use <i><b>pool.ntp.org</b></i> or<br><i><b>[countryname]
<form name="cmd" action="" method="POST">
<dt>Listen on address...</dt>
<dd>
-<select name="listen_list" size="3" style="width:200px;">
+<select name="listen_list" size="3">
<? if (view.statusinfo.listen) then
for i = 1, table.maxn(view.statusinfo.listen) do ?>
<option value="listen on <? io.write(view.statusinfo.listen[i].value) ?>"><? io.write(view.statusinfo.listen[i].value) ?></option>
@@ -65,10 +69,10 @@ for i = 1, table.maxn(view.statusinfo.listen) do ?>
</dd>
<dt>Delete selected address</dt>
-<dd><input name="listen_cmd" type="submit" value="Delete"> (see above)</dd>
+<dd><input name="listen_cmd" type="submit" class="submit" value="Delete"> (see above)</dd>
<dt>Add new listen address</dt>
-<dd><input name="listen_add" type="text" value=""> <input name="listen_cmd" type="submit" value="Add"><? if (view.errors.listen_add) then io.write("<p class=error>"..view.errors.listen_add.."</p>") end ?></dd>
+<dd><input name="listen_add" type="text" class="text" value=""> <input name="listen_cmd" type="submit" class="submit" value="Add"><? if (view.errors.listen_add) then io.write("<p class=error>"..view.errors.listen_add.."</p>") end ?></dd>
</form>
diff --git a/openntpd.menu b/openntpd.menu
index 14edaa1..2274c41 100644
--- a/openntpd.menu
+++ b/openntpd.menu
@@ -1,2 +1,2 @@
#CAT GROUP/DESC TAB ACTION
-Setup openNTPD openNTPD read
+Networking 20NTPD_config NTPD_config read