From f524a6f6edf59eaf6e20043d4e54fe866f7f1357 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 9 Jan 2009 22:00:23 +0000 Subject: Virtual rewrite of opennhrp to change config to listinterfaces and editinterface. Modified expert to allow writing of file with errors. git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@1673 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-listinterfaces-html.lsp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 opennhrp-listinterfaces-html.lsp (limited to 'opennhrp-listinterfaces-html.lsp') diff --git a/opennhrp-listinterfaces-html.lsp b/opennhrp-listinterfaces-html.lsp new file mode 100644 index 0000000..ca3fdb6 --- /dev/null +++ b/opennhrp-listinterfaces-html.lsp @@ -0,0 +1,25 @@ +<% local view, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"editinterface"}, session) %> + +

<%= view.label %>

+ + + + + + + +<% for i,intf in ipairs(view.value) do %> + + + + + + +<% end %> +
ActionInterfaceTypeComment
+ <% io.write(html.link{value = "editinterface?interface="..intf.interface.."&redir="..page_info.orig_action, label="Edit " }) %> + <%= intf.interface %><%= intf.type %>

<%= string.gsub(intf.errtxt or "", "\n", "
") %>

-- cgit v1.2.3