From 02f08e3420245cb727783f5abe460d336f135459 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:55:41 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- tcpproxy-listsmtpfiles-html.lsp | 47 ++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 15 deletions(-) (limited to 'tcpproxy-listsmtpfiles-html.lsp') diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index 8918a7e..b5e479a 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -3,35 +3,52 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editsmtpfile", "delsmtpfile"}, session) %> <% htmlviewfunctions.displaycommandresults({"createsmtpfile"}, session, true) %> -

Files

-
- - - - - +

Files

+
ActionFile
+ + + + + <% for i,file in ipairs(view.value) do %> - - + - - + + + <% end %> -
ActionFile
+
<% if viewlibrary.check_permission("editsmtpfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsmtpfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("delsmtpfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpfile?submit=true&filename="..file, label="Delete "} %> <% end %> - <%= html.html_escape(file) %>
<%= html.html_escape(file) %>
-
+ <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createsmtpfile") then local createform = viewlibrary.dispatch_component("createsmtpfile", nil, true) %> -

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

+

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

<% createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createsmtpfile" htmlviewfunctions.displayform(createform) -- cgit v1.2.3