summaryrefslogtreecommitdiffstats
path: root/dhcp-listsubnets-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-09 14:37:15 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-09 14:37:15 +0000
commite45a01ccebf7c9a756e3d27e3fe6abbeb8797a36 (patch)
tree338fd422d828a395b9070fb7201e89e5895c07cd /dhcp-listsubnets-html.lsp
parentc4de6d7e2aea4520dbfb9070ecb1d9f01185a092 (diff)
downloadacf-dhcp-e45a01ccebf7c9a756e3d27e3fe6abbeb8797a36.tar.bz2
acf-dhcp-e45a01ccebf7c9a756e3d27e3fe6abbeb8797a36.tar.xz
Rewrite of dhcp to modify existing config file rather than just generate a new one. Still need to add support for hosts, currently only supports globals and subnets.
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1373 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-listsubnets-html.lsp')
-rw-r--r--dhcp-listsubnets-html.lsp27
1 files changed, 27 insertions, 0 deletions
diff --git a/dhcp-listsubnets-html.lsp b/dhcp-listsubnets-html.lsp
new file mode 100644
index 0000000..4eb4285
--- /dev/null
+++ b/dhcp-listsubnets-html.lsp
@@ -0,0 +1,27 @@
+<% local view, viewlibrary, page_info, session = ... %>
+<% require("viewfunctions") %>
+
+<H1>Subnet Declarations</H1>
+
+<DL>
+<TABLE>
+ <TR style="background:#eee;font-weight:bold;">
+ <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Action</TD>
+ <TD style="white-space:nowrap;text-align:left;" class="header">Subnet</TD>
+ </TR>
+<% for i,subnet in ipairs(view.value) do %>
+ <TR>
+ <TD style="padding-right:20px;white-space:nowrap;">
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsubnet?subnet="..subnet, label="Edit "} %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsubnet?subnet="..subnet, label="Delete "} %>
+ </TD>
+ <TD style="white-space:nowrap;"><%= subnet %></TD>
+ </TR>
+<% end %>
+</TABLE>
+
+<dt>Add new subnet</dt>
+<dd><form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/createsubnet" %>" method="POST">
+<input type=submit value="New" class="submit">
+</form></dd>
+</DL>