From b8fd03d42b01372c2f2468b1ae2bc4e4204991a3 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:55:18 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- squid-listfiles-html.lsp | 47 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 15 deletions(-) (limited to 'squid-listfiles-html.lsp') diff --git a/squid-listfiles-html.lsp b/squid-listfiles-html.lsp index 90d2fe2..0aea8bf 100644 --- a/squid-listfiles-html.lsp +++ b/squid-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editfile", "deletefile"}, session) %> <% htmlviewfunctions.displaycommandresults({"createfile"}, session, true) %> @@ -10,32 +28,31 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -

Files

-
- - - - - +

Files

+
ActionFile
+ + + + + <% for i,file in ipairs(view.value) do %> - - + - - + + + <% end %> -
ActionFile
+
<% if viewlibrary.check_permission("editfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("deletefile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletefile?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("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) %> -

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

+

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

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