<% local view, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletecert"}, session) %> <% htmlviewfunctions.displaycommandresults({"uploadcert"}, session, true) %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %> <% local certcfe = cfe({ type="hidden", value="" }) %> <% for i,cert in ipairs(view.value) do %> <% end %>
Action Certificate
<% certcfe.value = cert %> <% htmlviewfunctions.displayitem(cfe({type="form", value={cert=certcfe}, label="", option="Delete", action="deletecert" }), page_info, -1) %> <% if not string.find(cert, "%-key") then %> <% htmlviewfunctions.displayitem(cfe({type="link", value={cert=certcfe}, label="", option="View", action="viewcert" }), page_info, -1) %> <% end %> <%= html.html_escape(cert) %>
<% htmlviewfunctions.displaysectionend(header_level) %> <% if viewlibrary.dispatch_component and viewlibrary.check_permission("uploadcert") then viewlibrary.dispatch_component("uploadcert") end %>