summaryrefslogtreecommitdiffstats
path: root/provisioning-listclasses-html.lsp
diff options
context:
space:
mode:
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>