blob: ca3fdb6983c98c178a90fcbc01ab09ab8cab15bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<% local view, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
<% displaycommandresults({"editinterface"}, session) %>
<h1><%= view.label %></h1>
<TABLE>
<TR style="background:#eee;font-weight:bold;">
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Action</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:right;" class="header">Interface</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Type</TD>
<TD style="white-space:nowrap;text-align:left;" class="header">Comment</TD>
</TR>
<% for i,intf in ipairs(view.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
<% io.write(html.link{value = "editinterface?interface="..intf.interface.."&redir="..page_info.orig_action, label="Edit " }) %>
</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:right;"><%= intf.interface %></TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= intf.type %></TD>
<TD style="white-space:nowrap;" width="90%"><P class="error"><%= string.gsub(intf.errtxt or "", "\n", "<BR>") %></P></TD>
</TR>
<% end %>
</TABLE>
|