summaryrefslogtreecommitdiffstats
path: root/dhcp-settings-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-09 14:37:15 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-09 14:37:15 +0000
commite45a01ccebf7c9a756e3d27e3fe6abbeb8797a36 (patch)
tree338fd422d828a395b9070fb7201e89e5895c07cd /dhcp-settings-html.lsp
parentc4de6d7e2aea4520dbfb9070ecb1d9f01185a092 (diff)
downloadacf-dhcp-e45a01ccebf7c9a756e3d27e3fe6abbeb8797a36.tar.bz2
acf-dhcp-e45a01ccebf7c9a756e3d27e3fe6abbeb8797a36.tar.xz
Rewrite of dhcp to modify existing config file rather than just generate a new one. Still need to add support for hosts, currently only supports globals and subnets.
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1373 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-settings-html.lsp')
-rw-r--r--dhcp-settings-html.lsp42
1 files changed, 6 insertions, 36 deletions
diff --git a/dhcp-settings-html.lsp b/dhcp-settings-html.lsp
index 8a7019e..796f565 100644
--- a/dhcp-settings-html.lsp
+++ b/dhcp-settings-html.lsp
@@ -1,38 +1,8 @@
-<%
- local form = ...
- local option = form.option
- local settings = form.value
- local errcode = form.errcode
-%>
-<h1>Global Settings</h1>
+<% local form = ... %>
+<% require("viewfunctions") %>
-<%
- if #errcode.msg > 0 then
- io.write("<pre style=\"color: #ff2020\">" .. errcode.msg .. "</pre><br>")
- end
+<h1><%= form.label %></h1>
+<%
+ local order = {"domainname", "domainnameservers", "defleasetime", "maxleasetime"}
+ displayform(form, order)
%>
-
-<DL>
-<form action="<% io.write(option.script .. option.prefix ..
- option.controller .. "/" .. option.action .. option.extra) %>" method="POST">
-
-<dt>Default Lease Time</dt>
-<dd><input type="text" name="defleasetime" class="text" value="<% io.write(settings.defleasetime.value) %>"></dd>
-
-<dt>Maximum Lease Time</dt>
-<dd><input type="text" name="maxleasetime" class="text" value="<% io.write(settings.maxleasetime.value) %>"></dd>
-
-<dt>Domain Name</dt>
-<dd><input type="text" name="domainname" class="text" value="<% io.write(settings.domainname.value) %>"></dd>
-
-<dt>Submit above settings</dt>
-<dd><input type=submit name=cmd value="update" class="submit"></dd>
-
-</form>
-
-<dt>Cancel and go back</dt>
-<dd><form action="<% io.write(option.script .. option.prefix .. option.controller .. "/home") %>" method="POST">
-<input type=submit name="cmd" value="back" class="submit"></form></dd>
-</DL>
-
-