% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editsmtpentry", "delsmtpentry"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
Action | Interface | IP Address | Command Entry |
---|---|---|---|
<% ipaddr.value = interface.ipaddr or interface.interface if viewlibrary.check_permission("editsmtpentry") then htmlviewfunctions.displayitem(cfe({type="link", value={ipaddr=ipaddr, redir=redir}, label="", option="Edit", action="editsmtpentry"}), page_info, -1) end if viewlibrary.check_permission("delsmtpentry") then htmlviewfunctions.displayitem(cfe({type="form", value={ipaddr=ipaddr}, label="", option="Delete", action="delsmtpentry"}), page_info, -1) end %> | <%= html.html_escape(interface.interface) %> | <%= html.html_escape(interface.ipaddr) %> | <%= html.html_escape(interface.cmd) %> |