summaryrefslogtreecommitdiffstats
path: root/dhcp-settings-html.lsp
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-12 16:13:51 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-12 16:13:51 +0000
commit9f186b02cb10036f234a965bfca6080186217c50 (patch)
treedb8f1988525d3906b73a98936aabca389f9ead10 /dhcp-settings-html.lsp
parentb5d32caafdb1e8e520145d202ca8e347e038251e (diff)
downloadacf-dhcp-9f186b02cb10036f234a965bfca6080186217c50.tar.bz2
acf-dhcp-9f186b02cb10036f234a965bfca6080186217c50.tar.xz
added global settings configuration to dhcp
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@298 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-settings-html.lsp')
-rw-r--r--dhcp-settings-html.lsp24
1 files changed, 24 insertions, 0 deletions
diff --git a/dhcp-settings-html.lsp b/dhcp-settings-html.lsp
new file mode 100644
index 0000000..73b377d
--- /dev/null
+++ b/dhcp-settings-html.lsp
@@ -0,0 +1,24 @@
+<?
+ local form = ...
+ local option = form.option
+ local settings = form.value
+ local errcode = form.errcode
+?>
+<h1>Global Settings</h1>
+
+<?
+ if #errcode.msg > 0 then
+ io.write("<pre style=\"color: #ff2020\">" .. errcode.msg .. "</pre><br>")
+ end
+?>
+
+<form action="<? io.write(option.script .. option.prefix ..
+ option.controller .. "/" .. option.action .. option.extra) ?>" method="POST">
+<table>
+ <tr><td><nobr>Default Lease Time:</nobr></td><td><input type="text" name="defleasetime" value="<? io.write(settings.defleasetime.value) ?>"></td></tr>
+ <tr><td><nobr>Maximum Lease Time:</nobr></td><td><input type="text" name="maxleasetime" value="<? io.write(settings.maxleasetime.value) ?>"></td></tr>
+ <tr><td><nobr>Domain Name:</nobr></td><td><input type="text" name="domainname" value="<? io.write(settings.domainname.value) ?>"></td></tr>
+ <tr><td></td><td><input type=submit name=cmd value="update" style="width:100px"></form><form action="<? io.write(option.script .. option.prefix .. option.controller .. "/home") ?> method="POST">
+<input type=submit name="cmd" value="back" style="width:100px"></form></td></tr>
+</table>
+