summaryrefslogtreecommitdiffstats
path: root/dhcp-editspc-html.lsp
diff options
context:
space:
mode:
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>
+