% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"enable","config","expert","startstopinterface"}, session) %> <% viewlibrary.dispatch_component("status") %>
Action | Interface | Status | |
---|---|---|---|
<% if intf.enabled then %> <% io.write(html.link{value = "config?DEV="..intf.interface.."&redir="..page_info.orig_action, label="Edit " }) %> <% io.write(html.link{value = "expert?filename="..intf.filename.."&redir="..page_info.orig_action, label="Expert " }) %> <% io.write(html.link{value = page_info.script .. "/alpine-baselayout/rc/edit?servicename="..intf.init.."&redir=".. page_info.orig_action, label="Autostart " }) %> <% else %> <% io.write(html.link{value = "enable?submit=true&interface="..intf.interface, label="Enable " }) %> <% end %> | <%= html.html_escape(intf.interface) %> | <%= html.html_escape(intf.status) %> | <% if intf.enabled then %><% end %> |