diff options
Diffstat (limited to 'dhcp-editnet-html.lsp')
-rw-r--r-- | dhcp-editnet-html.lsp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dhcp-editnet-html.lsp b/dhcp-editnet-html.lsp index 8330c31..e58bcd9 100644 --- a/dhcp-editnet-html.lsp +++ b/dhcp-editnet-html.lsp @@ -2,10 +2,17 @@ local form = ... local option = form.option; local net = form.value + local erroce = form.errcode ?> <h1>Basic Configuration</h1> <h2>Subnet: <? io.write(net.name.value) ?></h2> +<? + if #errcode.msg > 0 then + io.write("<textarea style=\"width:600px\">" .. errcode.msg .. "</textarea><br>") + end +?> + <form action="<? io.write(option.script .. option.prefix .. option.controller .. "/" .. option.action .. option.extra) ?>" method="POST"> <input type="hidden" name="name" value="<? io.write(net.name.value) ?>"> @@ -31,5 +38,7 @@ ?> </select> </td></tr> + <tr><td><nobr>Lease Range Start:</nobr></td><td><input type="text" name="leaserangestart" value="<? io.write(net.leaserangestart.value) ?>"></td></tr> + <tr><td><nobr>Lease Range End:</nobr></td><td><input type="text" name="leaserangeend" value="<? io.write(net.leaserangeend.value) ?>"></td></tr> <tr><td></td><td><input type=submit name=cmd value="Update" style="width:300px"></form><form action="<? io.write(option.script .. option.prefix .. option.controller .. "/home") ?> method="POST"> <input type=submit name="cmd" value="Back" style="width:300px"></form></td></tr></table> |