From 3d6451d0b5fed1f8fbe5c431d1cfb7f002514373 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 10 Apr 2014 06:02:36 +0000 Subject: Changes to use new htmlviewfunctions functions --- dhcp-listfiles-html.lsp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'dhcp-listfiles-html.lsp') diff --git a/dhcp-listfiles-html.lsp b/dhcp-listfiles-html.lsp index 3e1bb65..f39e60e 100644 --- a/dhcp-listfiles-html.lsp +++ b/dhcp-listfiles-html.lsp @@ -31,7 +31,7 @@ end @@ -41,21 +41,26 @@ end viewlibrary.dispatch_component("status") end %> -

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

+<% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> + -<% for i,file in ipairs(data.value) do %> +<% local filename = cfe({ type="hidden", value="" }) %> +<% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> +<% for i,file in ipairs( data.value ) do %> + <% filename.value = file.filename %> - + + <% end %>
Action File Size Last Modified
- <%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %> - <% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="expert"}), page_info, -1) %><%= html.html_escape(file.filename) %> <%= convertsize(file.filesize) %>b<%= html.html_escape(file.filesize) %> <%= html.html_escape(file.mtime) %>
+<% htmlviewfunctions.displaysectionend(header_level) %> + -- cgit v1.2.3