summaryrefslogtreecommitdiffstats
path: root/dhcp-home-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2007-12-20 14:24:00 +0000
committerMika Havela <mika.havela@gmail.com>2007-12-20 14:24:00 +0000
commit2659317883b211aba20dbb256eaf108eac8eda41 (patch)
treebbce72143345e08f10f67b8d4cbc8a57c10d71a9 /dhcp-home-html.lsp
parent7c37e7e2a7883b71f56c399da156e6b87ad33bfa (diff)
downloadacf-dhcp-2659317883b211aba20dbb256eaf108eac8eda41.tar.bz2
acf-dhcp-2659317883b211aba20dbb256eaf108eac8eda41.tar.xz
Changed view-files to reflect modificatsion in the new css
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@441 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-home-html.lsp')
-rw-r--r--dhcp-home-html.lsp116
1 files changed, 57 insertions, 59 deletions
diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp
index c4ad154..da6d8d5 100644
--- a/dhcp-home-html.lsp
+++ b/dhcp-home-html.lsp
@@ -2,75 +2,73 @@
local form = ...
local data = form.option
?>
+
<h1>Home</h1>
-<h2>DHCPd - Status</h2>
-<? io.write(form.info.version.value) ?> is: <b><? io.write( form.info.status.value ) ?></b><br><br>
-
-<h2>DHCPd - Daemon Control</h2>
-<table>
-<form action="" method="POST">
-<tr>
-<td><input type=submit name="srvcmd" value="start" style="width:100px"></td>
-<td><input type=submit name="srvcmd" value="stop" style="width:100px"></td>
-<td><input type=submit name="srvcmd" value="restart" style="width:100px"></td>
-</tr>
-</form>
-</table>
-<pre style="color: #ff2020"><? io.write( form.info.srvctrl.value ) ?></pre><br>
+<h2>System info</h2>
-<h2>DHCPd - Generate Configuration File</h2>
-<table>
-<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/home") ?>" method="POST">
-<tr><td><input type=submit name="cmd" value="generate" style="width:100px"></td></tr>
-</form>
-</table>
-<? if form.genmsg ~= nil then io.write( "<pre style=\"color: #ff2020\">" .. form.genmsg .. "</pre>" ) end ?><br>
+<dt>Program version</dt>
+<dd><? io.write(form.info.version.value) ?></dd>
-<h2>DHCPd - Global Settings</h2>
-<table>
-<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/settings") ?>" method="POST">
-<tr><td><input type=submit name="cmd" value="edit" style="width:100px"></td></tr>
-</form>
-</table><br>
-
-<h2>DHCPd - Edit Subnet</h2>
-<table>
-<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/editnet") ?>" method="POST">
-<tr><td>Network to modify<td>
-<td><select name="network" size="1">
- <option value="choose">-- Choose Network --</option>
+<dt>Process status</dt>
+<dd><? io.write( form.info.status.value ) ?></dd>
+
+<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>
+<p class='error'><? io.write( form.info.srvctrl.value ) ?></p>
+</dd>
+
+<H2>Change/Generate settings</H2>
+
+<H3>Global</H3>
+
+<dt>Edit global settings</dt>
+<dd><form action="<? io.write(data.script .. data.prefix .. data.controller .. "/settings") ?>" method="POST">
+<input type=submit name="cmd" value="edit" class="submit">
+</form></dd>
+
+
+<dt>Global Config Pre/Post Code</dt>
+<dd><form action="<? io.write(data.script .. data.prefix .. data.controller .. "/editspc") ?>" method="POST">
+<input type=submit name="cmd" value="edit" class="submit">
+</form></dd>
+
+<H3>Subnet declarations</H3>
+
+<dt>Edit subnet</dt>
+<dd><form action="<? io.write(data.script .. data.prefix .. data.controller .. "/editnet") ?>" method="POST">
+<select name="network" size="1">
+ <option value="choose">-- Choose Network --</option>
<?
for k,v in ipairs(form.info.subnets) do
io.write("<option>" .. v .. "</option>")
end
?>
-</select></td>
-<td><input type=submit name="cmd" value="edit" style="width:100px"></td>
-</form>
-</table><br>
-
-<h2>DHCPd - Add New Subnet</h2>
-<table>
-<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/createnet") ?>" method="POST">
-<tr>
- <td><input type=submit name="cmd" value="new" style="width:100px"></td>
-</tr>
-</form>
-</table>
-<br>
+</select><input type=submit name="cmd" value="edit" class="submit">
+</form></dd>
-<h2>DHCPd - Global Config Pre/Post Code</h2>
-<table>
-<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/editspc") ?>" method="POST">
-<tr><td><input type=submit name="cmd" value="edit" style="width:100px"></td></tr>
-</form>
-</table><br>
+<dt>Add new subnet</dt>
+<dd><form action="<? io.write(data.script .. data.prefix .. data.controller .. "/createnet") ?>" method="POST">
+<input type=submit name="cmd" value="new" class="submit">
+</form></dd>
+
+<h3>Generate config</h3>
+
+<dt>Generate Configuration File</dt>
+<dd><form action="<? io.write(data.script .. data.prefix .. data.controller .. "/home") ?>" method="POST">
+<input type=submit name="cmd" value="generate" class="submit"></form>
+<? if form.genmsg ~= nil then io.write( "<p class='error'>" .. form.genmsg .. "</p>" ) end ?></dd>
+
+<h2>View files</h2>
-<h2>DHCPd - View Files</h2>
-<table>
<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/view") ?>" method="POST">
-<tr><td><input type=submit name="conf" value="dhcpd.conf" style="width:200px"></td></tr>
-<tr><td><input type=submit name="leases" value="dhcpd.leases" style="width:200px"></td></tr>
+<dt>View dhcpd.conf</dt>
+<dd><input type=submit name="conf" value="dhcpd.conf" class="submit"></dd>
+
+<dt>View dhcpd.leases</dt>
+<dd><input type=submit name="leases" value="dhcpd.leases" class="submit"></dd>
</form>
-</table><br>
+