From a3b838873fd04b83285fe3f955d012d5a0da71c5 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:35:45 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- opennhrp-listinterfaces-html.lsp | 49 ++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 15 deletions(-) (limited to 'opennhrp-listinterfaces-html.lsp') diff --git a/opennhrp-listinterfaces-html.lsp b/opennhrp-listinterfaces-html.lsp index 044de2e..a684c2d 100644 --- a/opennhrp-listinterfaces-html.lsp +++ b/opennhrp-listinterfaces-html.lsp @@ -3,24 +3,43 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editinterface"}, session) %>

<%= html.html_escape(view.label) %>

-
- - - - - - +
ActionInterfaceTypeComment
+ + + + + + + <% 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 " }) %> - <%= html.html_escape(intf.interface) %><%= html.html_escape(intf.type) %>

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

<%= html.html_escape(intf.interface) %><%= html.html_escape(intf.type) %>

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

+ -- cgit v1.2.3