summaryrefslogtreecommitdiffstats
path: root/provisioning-listtemplates-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-02-03 21:48:48 +0000
committerTed Trask <ttrask01@yahoo.com>2014-02-03 21:48:48 +0000
commite5f62555031d500d50405ba395e330223ac28e9f (patch)
treef2676b4768a95561597ca746afc400eeaffeed7c /provisioning-listtemplates-html.lsp
parentcd46e0528fdf0fd412416c91b40551140b8f2724 (diff)
downloadacf-provisioning-e5f62555031d500d50405ba395e330223ac28e9f.tar.bz2
acf-provisioning-e5f62555031d500d50405ba395e330223ac28e9f.tar.xz
Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags
Diffstat (limited to 'provisioning-listtemplates-html.lsp')
-rw-r--r--provisioning-listtemplates-html.lsp46
1 files changed, 22 insertions, 24 deletions
diff --git a/provisioning-listtemplates-html.lsp b/provisioning-listtemplates-html.lsp
index 4adc23f..ee67b17 100644
--- a/provisioning-listtemplates-html.lsp
+++ b/provisioning-listtemplates-html.lsp
@@ -17,7 +17,7 @@ html = require("acf.html")
<script type="text/javascript">
$(document).ready(function() {
- $("#list").tablesorter({headers: {0:{sorter: false}}});
+ $("#list").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra']});
$(".deletetemplate").click(function(){ return confirm("Are you sure you want to delete this template?")});
});
</script>
@@ -26,20 +26,19 @@ html = require("acf.html")
<% htmlviewfunctions.displaycommandresults({"createtemplate"}, session, true) %>
<h1>Templates</h1>
-<DL>
-<TABLE id="list" class="tablesorter"><THEAD>
- <TR style="background:#eee;font-weight:bold;">
- <TH>Action</TH>
- <TH>File Name</TH>
- <TH>Label</TH>
- <TH>Sequence</TH>
- <TH>File Size</TH>
- <TH>Last Modified</TH>
- </TR>
-</THEAD><TBODY>
+<table id="list" class="tablesorter"><thead>
+ <tr>
+ <th>Action</th>
+ <th>File Name</th>
+ <th>Label</th>
+ <th>Sequence</th>
+ <th>File Size</th>
+ <th>Last Modified</th>
+ </tr>
+</thead><tbody>
<% for k,v in ipairs( view.value ) do %>
- <TR>
- <TD>
+ <tr>
+ <td>
<% if viewlibrary.check_permission("deletetemplate") and v.label then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?submit=true&filename="..v.filename, label="Delete ", class="deletetemplate"} %>
<% end %>
@@ -49,16 +48,16 @@ html = require("acf.html")
<% if viewlibrary.check_permission("createtemplate") and not v.label then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/createtemplate?filename="..v.filename.."&redir="..page_info.orig_action, label="Create "} %>
<% end %>
- </TD>
- <TD><%= html.html_escape(v.filename) %></TD>
- <TD><%= html.html_escape(v.label) %></TD>
- <TD><%= html.html_escape(v.seq) %></TD>
- <TD><%= html.html_escape(v.filesize) %></TD>
- <TD><%= html.html_escape(v.mtime) %></TD>
- </TR>
+ </td>
+ <td><%= html.html_escape(v.filename) %></td>
+ <td><%= html.html_escape(v.label) %></td>
+ <td><%= html.html_escape(v.seq) %></td>
+ <td><%= html.html_escape(v.filesize) %></td>
+ <td><%= html.html_escape(v.mtime) %></td>
+ </tr>
<% end %>
-</TBODY>
-</TABLE>
+</tbody>
+</table>
<% if view.errtxt then %>
<p class="error"><%= html.html_escape(view.errtxt) %></p>
@@ -70,4 +69,3 @@ html = require("acf.html")
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createtemplate") then
viewlibrary.dispatch_component("createtemplate")
end %>
-</DL>