summaryrefslogtreecommitdiffstats
path: root/provisioning-listgroups-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-listgroups-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-listgroups-html.lsp')
-rw-r--r--provisioning-listgroups-html.lsp38
1 files changed, 18 insertions, 20 deletions
diff --git a/provisioning-listgroups-html.lsp b/provisioning-listgroups-html.lsp
index 3154df6..9d8268b 100644
--- a/provisioning-listgroups-html.lsp
+++ b/provisioning-listgroups-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']});
$(".deletegroup").click(function(){ return confirm("Are you sure you want to delete this group?")});
});
</script>
@@ -26,32 +26,31 @@ html = require("acf.html")
<% htmlviewfunctions.displaycommandresults({"creategroup"}, session, true) %>
<h1>Groups</h1>
-<DL>
-<TABLE id="list" class="tablesorter"><THEAD>
- <TR style="background:#eee;font-weight:bold;">
- <TH>Action</TH>
- <TH>Name</TH>
- <TH>Label</TH>
- <TH>Sequence</TH>
- </TR>
-</THEAD><TBODY>
+<table id="list" class="tablesorter"><thead>
+ <tr>
+ <th>Action</th>
+ <th>Name</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("deletegroup") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletegroup?submit=true&group_id="..v.group_id, label="Delete ", class="deletegroup"} %>
<% end %>
<% if viewlibrary.check_permission("editgroup") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editgroup?group_id="..v.group_id.."&redir="..page_info.orig_action, label="Edit "} %>
<% end %>
- </TD>
- <TD><%= html.html_escape(v.name) %></TD>
- <TD><%= html.html_escape(v.label) %></TD>
- <TD><%= html.html_escape(v.seq) %></TD>
- </TR>
+ </td>
+ <td><%= html.html_escape(v.name) %></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>
@@ -63,4 +62,3 @@ html = require("acf.html")
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("creategroup") then
viewlibrary.dispatch_component("creategroup")
end %>
-</DL>