summaryrefslogtreecommitdiffstats
path: root/dhcp-editspc-html.lsp
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-19 15:56:10 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-19 15:56:10 +0000
commit3f7c448060b852c4fdde1d9698dbde5794d5c980 (patch)
tree81525498b1d2a9257d111bf42640aca31d5627c2 /dhcp-editspc-html.lsp
parente0d088c76ee0639a3979ffc810867a0221a3213d (diff)
downloadacf-dhcp-3f7c448060b852c4fdde1d9698dbde5794d5c980.tar.bz2
acf-dhcp-3f7c448060b852c4fdde1d9698dbde5794d5c980.tar.xz
/acf/dhcp: added global pre/post config generation input for proprietary config code by the user
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@337 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-editspc-html.lsp')
-rw-r--r--dhcp-editspc-html.lsp23
1 files changed, 23 insertions, 0 deletions
diff --git a/dhcp-editspc-html.lsp b/dhcp-editspc-html.lsp
new file mode 100644
index 0000000..8a06c9c
--- /dev/null
+++ b/dhcp-editspc-html.lsp
@@ -0,0 +1,23 @@
+<?
+ local form = ...
+ local option = form.option;
+ local errcode = form.errcode
+?>
+<h1>DHCPd - Advanced Global Configuration</h1>
+These fields are copied into the final dhcpd.conf on configuration generation without any validation check. So only
+use them if you extactly know what you are doing here.
+
+<form name="myform" action="<? io.write(option.script .. option.prefix ..
+ option.controller .. "/" .. option.action .. option.extra) ?>" method="POST">
+
+<h2>DHCPd - Pre Main Configuration</h2>
+<table><tr><td><textarea name="preconfig" style="width:600px"><? io.write(form.value.preconfig) ?></textarea></td></tr></table>
+
+<h2>DHCPd - Post Main Configuration</h2>
+<table>
+<tr><td><textarea name="postconfig" style="width:600px"><? io.write(form.value.postconfig) ?></textarea></td></tr>
+<tr><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>
+