summaryrefslogtreecommitdiffstats
path: root/dhcp-home-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-home-html.lsp')
-rw-r--r--dhcp-home-html.lsp13
1 files changed, 5 insertions, 8 deletions
diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp
index 39be215..769c40e 100644
--- a/dhcp-home-html.lsp
+++ b/dhcp-home-html.lsp
@@ -8,14 +8,11 @@
viewlibrary.dispatch_component("status")
end %>
-<h1>Global Settings</h1>
-<div class='item'><p class='left'>Edit global settings</p>
-<div class='right'>
-<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/settings") %>" method="post">
-<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
-<input type=submit value="Edit" class="submit">
-</form>
-</div></div><!-- end .item -->
+<%
+local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Global Settings"}), page_info)
+htmlviewfunctions.displayitem(cfe({type="link", value={redir=cfe({ type="hidden", value=page_info.orig_action })}, label="Edit global settings", option="Edit", action="settings"}), page_info, 0)
+htmlviewfunctions.displaysectionend(header_level)
+%>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("listsubnets")