diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-02-03 21:48:48 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-02-03 21:48:48 +0000 |
commit | e5f62555031d500d50405ba395e330223ac28e9f (patch) | |
tree | f2676b4768a95561597ca746afc400eeaffeed7c /provisioning-listparams-html.lsp | |
parent | cd46e0528fdf0fd412416c91b40551140b8f2724 (diff) | |
download | acf-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-listparams-html.lsp')
-rw-r--r-- | provisioning-listparams-html.lsp | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/provisioning-listparams-html.lsp b/provisioning-listparams-html.lsp index e8f2f94..3b0e255 100644 --- a/provisioning-listparams-html.lsp +++ b/provisioning-listparams-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']}); $(".deleteparam").click(function(){ return confirm("Are you sure you want to delete this parameter?")}); }); </script> @@ -26,34 +26,33 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"createparam"}, session, true) %> <h1>Parameters</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>Default</TH> - <TH>Sequence</TH> - </TR> -</THEAD><TBODY> +<table id="list" class="tablesorter"><thead> + <tr> + <th>Action</th> + <th>Name</th> + <th>Label</th> + <th>Default</th> + <th>Sequence</th> + </tr> +</thead><tbody> <% for k,v in ipairs( view.value ) do %> - <TR> - <TD> + <tr> + <td> <% if viewlibrary.check_permission("deleteparam") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteparam?submit=true¶m_id="..v.param_id, label="Delete ", class="deleteparam"} %> <% end %> <% if viewlibrary.check_permission("editparam") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editparam?param_id="..v.param_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.value) %></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.value) %></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> @@ -65,4 +64,3 @@ html = require("acf.html") <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createparam") then viewlibrary.dispatch_component("createparam") end %> -</DL> |