summaryrefslogtreecommitdiffstats
path: root/dhcp-home-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-home-html.lsp')
-rw-r--r--dhcp-home-html.lsp23
1 files changed, 14 insertions, 9 deletions
diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp
index a631233..e864c07 100644
--- a/dhcp-home-html.lsp
+++ b/dhcp-home-html.lsp
@@ -18,10 +18,17 @@
</table>
<pre><? io.write( form.info.srvctrl.value ) ?></pre><br>
-<h2>DHCPd - General</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="generate" value="generate" style="width:100px"></td></tr>
+</form>
+</table><br>
+
+<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 Settings" style="width:200px"></td></tr>
+<tr><td><input type=submit name="cmd" value="edit" style="width:100px"></td></tr>
</form>
</table><br>
@@ -37,17 +44,15 @@
end
?>
</select></td>
-<td><input type=submit name="cmd" value="Edit" style="width:200px"></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="" method="POST">
+<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/createnet") ?>" method="POST">
<tr>
- <td>Network Name</td>
- <td><input type=text name="name" value="" style="width:300px"></td>
- <td><input type=submit name="cmd" value="Create" style="width:200px"></td>
+ <td><input type=submit name="cmd" value="new" style="width:100px"></td>
</tr>
</form>
</table>
@@ -56,8 +61,8 @@
<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="View dhcpd.conf" style="width:200px"></td></tr>
-<tr><td><input type=submit name="leases" value="View dhcpd.leases" style="width:200px"></td></tr>
+<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>
</form>
</table><br>