summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r--syslog-config-html.lsp10
1 files changed, 4 insertions, 6 deletions
diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp
index e6001b3..efc989f 100644
--- a/syslog-config-html.lsp
+++ b/syslog-config-html.lsp
@@ -1,4 +1,4 @@
-<% local form, viewlibrary = ... %>
+<% local form, viewlibrary, page_info = ... %>
<% require("viewfunctions") %>
<%
--[[ DEBUG INFORMATION
@@ -13,9 +13,8 @@ io.write("</span>")
end %>
<H1>Configuration</H1>
-<% if form.descr then %><P CLASS='descr'><%= string.gsub(form.descr, "\n", "<BR>") %></P><% end %>
-<% if form.errtxt then %><P CLASS='error'><%= string.gsub(form.errtxt, "\n", "<BR>") %></P><% end %>
-<form action="" method="POST">
+<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
+<% displayformstart(form) %>
<H2>Advanced Configuration</H2>
<H3>General</H3>
<DL>
@@ -40,8 +39,7 @@ end %>
%>
</DL>
<H2>Save and Apply Above Settings</H2>
-<DL><DT>Save/Apply above settings</DT><DD><input class="submit" type="submit" name="<%= form.option %>" value="Save"></DD></DL>
-</form>
+<% displayformend(form) %>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("startstop")