summaryrefslogtreecommitdiffstats
path: root/heimdal-klist-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'heimdal-klist-html.lsp')
-rw-r--r--heimdal-klist-html.lsp23
1 files changed, 23 insertions, 0 deletions
diff --git a/heimdal-klist-html.lsp b/heimdal-klist-html.lsp
new file mode 100644
index 0000000..c6997ff
--- /dev/null
+++ b/heimdal-klist-html.lsp
@@ -0,0 +1,23 @@
+<% local data, viewlibrary, page_info, session = ... %>
+<% require("viewfunctions") %>
+
+<% displaycommandresults({"kdestroy"}, session) %>
+<% displaycommandresults({"kinit"}, session, true) %>
+
+<H1><%= data.label %></H1>
+<pre>
+<%= html.html_escape(data.value) %>
+</pre>
+
+<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].kdestroy then %>
+<DL>
+<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/kdestroy") %>">
+<DT>Destroy Tickets</DT>
+<DD><input class="submit" type="submit" value="Destroy"></DD>
+</form>
+</DL>
+<% end %>
+
+<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].kinit then
+ viewlibrary.dispatch_component("kinit")
+end %>