summaryrefslogtreecommitdiffstats
path: root/chrony-keyfile-html.lsp
diff options
context:
space:
mode:
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)
%>
<%