diff options
Diffstat (limited to 'weblog-listsources-html.lsp')
-rw-r--r-- | weblog-listsources-html.lsp | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/weblog-listsources-html.lsp b/weblog-listsources-html.lsp index 7f71bdb..11682a3 100644 --- a/weblog-listsources-html.lsp +++ b/weblog-listsources-html.lsp @@ -24,32 +24,31 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"deletesource", "editsource", "testsource", "createsource", "importlogs"}, session) %> <h1><%= html.html_escape(data.label) %></h1> -<DL> -<TABLE id="sources" class="tablesorter"><THEAD> - <TR> - <TH>Action</TH> - <TH>Name</TH> - <TH>Enabled</TH> - <TH>Source</TH> - <TH>Method</TH> - </TR> -</THEAD><TBODY> +<table id="sources" class="tablesorter"><thead> + <tr> + <th>Action</th> + <th>Name</th> + <th>Enabled</th> + <th>Source</th> + <th>Method</th> + </tr> +</thead><tbody> <% for i,source in ipairs(data.value) do %> - <TR> - <TD> + <tr> + <td> <%= html.link{value = "editsource?sourcename=" .. source.sourcename.."&redir="..page_info.orig_action, label="Edit "} %> <%= html.link{value = "deletesource?submit=true&sourcename=" .. source.sourcename, label="Delete "} %> <%= html.link{value = "testsource?submit=true&sourcename=" .. source.sourcename, label="Test "} %> - </TD> - <TD><%= html.html_escape(source.sourcename) %></TD> - <TD><%= html.html_escape(tostring(source.enabled)) %></TD> - <TD><%= html.html_escape(source.source) %></TD> - <TD><%= html.html_escape(source.method) %></TD> - </TR> + </td> + <td><%= html.html_escape(source.sourcename) %></td> + <td><%= html.html_escape(tostring(source.enabled)) %></td> + <td><%= html.html_escape(source.source) %></td> + <td><%= html.html_escape(source.method) %></td> + </tr> <% end %> -</TBODY> -</TABLE> +</tbody> +</table> <% if data.errtxt then %> <p class='error'><%= html.html_escape(data.errtxt) %></p> @@ -60,13 +59,16 @@ html = require("acf.html") <form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/createsource") %>"> -<DT>Create New Source</DT> +<div class='item'><p class='left'>Create New Source</p> +<div class='right'> <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > -<DD><input class="submit" type="submit" value="Create"></DD> +<input class="submit" type="submit" value="Create"> +</div></div><!-- end .item --> </form> <form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/importlogs") %>"> -<DT>Import Logs</DT> -<DD><input class="submit" type="submit" name="submit" value="Import"></DD> +<div class='item'><p class='left'>Import Logs</p> +<div class='right'> +<input class="submit" type="submit" name="submit" value="Import"> +</div></div><!-- end .item --> </form> -</DL> |