summaryrefslogtreecommitdiffstats
path: root/tcpproxy-smtpstatus-html.lsp
blob: 7edf5e03691c3ca25e87e5b4f7927c2f78aa0848 (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 view, viewlibrary, page_info, session = ... 
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>

<% htmlviewfunctions.displaycommandresults({"editsmtpentry", "delsmtpentry", "editsmtpfile", "delsmtpfile"}, session) %>
<% htmlviewfunctions.displaycommandresults({"createsmtpfile"}, session, true) %>

<h1>SMTP Proxy Status</h1>
<% htmlviewfunctions.displayitem(view.value.version)
if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then
%>
	<div class='item'><p class='left'>Install package</p>
	<div class='right'>
	<form action="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install") %>" method="post">
	<input type='hidden' name='package' value='<%= html.html_escape(view.value.version.name) %>'>
	<input class='submit' type='submit' name='submit' value='Install'></form>
	</div></div><!-- end .item -->
<% end %>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("listsmtpentries")
	viewlibrary.dispatch_component("listsmtpfiles")
end %>