summaryrefslogtreecommitdiffstats
path: root/provisioning-listclasses-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-listclasses-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-listclasses-html.lsp')
-rw-r--r--provisioning-listclasses-html.lsp38
1 files changed, 18 insertions, 20 deletions
diff --git a/provisioning-listclasses-html.lsp b/provisioning-listclasses-html.lsp
index e1b9538..59933d3 100644
--- a/provisioning-listclasses-html.lsp
+++ b/provisioning-listclasses-html.lsp
@@ -25,7 +25,7 @@ html = require("acf.html")
end
%>
$(document).ready(function() {
- $("#list").tablesorter({headers: {0:{sorter: false}}});
+ $("#list").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra']});
$(".deleteclass").click(function(){ return confirm("Are you sure you want to delete this class?")});
});
</script>
@@ -34,18 +34,17 @@ html = require("acf.html")
<% htmlviewfunctions.displaycommandresults({"createclass"}, session, true) %>
<h1>Classes</h1>
-<DL>
-<TABLE id="list" class="tablesorter"><THEAD>
- <TR style="background:#eee;font-weight:bold;">
- <TH>Action</TH>
- <TH>Class Group</TH>
- <TH>Label</TH>
- <TH>Sequence</TH>
- </TR>
-</THEAD><TBODY>
+<table id="list" class="tablesorter"><thead>
+ <tr>
+ <th>Action</th>
+ <th>Class Group</th>
+ <th>Label</th>
+ <th>Sequence</th>
+ </tr>
+</thead><tbody>
<% for k,v in ipairs( view.value ) do %>
- <TR>
- <TD>
+ <tr>
+ <td>
<% if viewlibrary.check_permission("deleteclass") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteclass?submit=true&class_id="..v.class_id, label="Delete ", class="deleteclass"} %>
<% end %>
@@ -55,14 +54,14 @@ html = require("acf.html")
<% if viewlibrary.check_permission("getclassvalues") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/getclassvalues?submit=true&class_id="..v.class_id, label="View "} %>
<% end %>
- </TD>
- <TD><%= html.html_escape(v.group) %></TD>
- <TD><%= html.html_escape(v.label) %></TD>
- <TD><%= html.html_escape(v.seq) %></TD>
- </TR>
+ </td>
+ <td><%= html.html_escape(v.group) %></td>
+ <td><%= html.html_escape(v.label) %></td>
+ <td><%= html.html_escape(v.seq) %></td>
+ </tr>
<% end %>
-</TBODY>
-</TABLE>
+</tbody>
+</table>
<% if view.errtxt then %>
<p class="error"><%= html.html_escape(view.errtxt) %></p>
@@ -74,4 +73,3 @@ html = require("acf.html")
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createclass") then
viewlibrary.dispatch_component("createclass")
end %>
-</DL>