summaryrefslogtreecommitdiffstats
path: root/chrony-keyfile-html.lsp
blob: 1925cab2a34a8313e8ba17cc8767f399d23deea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% local form, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>

<% htmlviewfunctions.displaycommandresults({"enablekeyfile"}, session) %>

<H1>Key File Status</H1>
<DL>
<%
	htmlviewfunctions.displayitem(form.value.status)
	if form.value.status.errtxt then 

%>
<dt></dt><dd><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></dd>
<%	end
%>
</DL>

<%
local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1")
local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp")
func(form, viewlibrary, page_info, session)
%>