diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-09 11:57:45 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-09 11:57:45 +0000 |
commit | 10b140d640145441f1ecfa8a8385ac393ae29198 (patch) | |
tree | 8d733c849572c5756158beeff1ebfe8913ce6298 /dhcp-createnet-html.lsp | |
parent | 38d0619307385dcda96d963a75526c89aba65ecb (diff) | |
download | acf-dhcp-10b140d640145441f1ecfa8a8385ac393ae29198.tar.bz2 acf-dhcp-10b140d640145441f1ecfa8a8385ac393ae29198.tar.xz |
validator code partially integrated in dhcp
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@290 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-createnet-html.lsp')
-rw-r--r-- | dhcp-createnet-html.lsp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dhcp-createnet-html.lsp b/dhcp-createnet-html.lsp index aadc2c8..c3775f9 100644 --- a/dhcp-createnet-html.lsp +++ b/dhcp-createnet-html.lsp @@ -6,6 +6,12 @@ <h1>Create New Subnet</h1> <h2>Subnet: new</h2> +<? + if #form.errcode.msg > 0 then + io.write("<pre style=\"color: #ff2020\">" .. form.errcode.msg .. "</pre><br>") + end +?> + <form action="<? io.write(option.script .. option.prefix .. option.controller .. "/" .. option.action .. option.extra) ?>" method="POST"> <table> @@ -31,5 +37,7 @@ ?> </select> </td></tr> - <tr><td></td><td><input type=submit name=cmd value="create" 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> + <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="create" 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> |