summaryrefslogtreecommitdiffstats
path: root/chrony-keyfile-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-10 05:40:47 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-10 05:40:47 +0000
commit0ed315dc3cf0d6244d656e2d68fe577797c2e5f0 (patch)
tree90d36f66effb73dd21cf64f788ae2091f2d5a63a /chrony-keyfile-html.lsp
parentc6280065388fc882a0dd6526c8a66be19a3bd27a (diff)
downloadacf-chrony-0ed315dc3cf0d6244d656e2d68fe577797c2e5f0.tar.bz2
acf-chrony-0ed315dc3cf0d6244d656e2d68fe577797c2e5f0.tar.xz
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'chrony-keyfile-html.lsp')
-rw-r--r--chrony-keyfile-html.lsp13
1 files changed, 4 insertions, 9 deletions
diff --git a/chrony-keyfile-html.lsp b/chrony-keyfile-html.lsp
index 644483b..8ae41fc 100644
--- a/chrony-keyfile-html.lsp
+++ b/chrony-keyfile-html.lsp
@@ -4,18 +4,13 @@
<% htmlviewfunctions.displaycommandresults({"enablekeyfile"}, session) %>
-<h1>Key File Status</h1>
<%
+ local header_level = htmlviewfunctions.displaysectionstart(form.value.status, page_info)
htmlviewfunctions.displayitem(form.value.status)
if form.value.status.errtxt then
-
-%>
-<div class='item'><p class='left'></p><div class='right'>
-<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/enablekeyfile") %>">
-<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
-<input class="submit" type="submit" name="submit" value="Enable"></form>
-</div></div><!-- end .item -->
-<% end
+ htmlviewfunctions.displayitem(cfe({type="form", value={redir=cfe({ type="hidden", value=page_info.orig_action })}, label="", option="Enable", action="enablekeyfile" }), page_info, 0)
+ end
+ htmlviewfunctions.displaysectionend(header_level)
%>
<%