summaryrefslogtreecommitdiffstats
path: root/apk-expert-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-10 05:23:03 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-10 05:23:03 +0000
commit5832775f8f2fa176a1ccb4be5eb0e8ede11b185e (patch)
tree08e6876b111805e088ee371056d1f046a3f3da7e /apk-expert-html.lsp
parenta9df81d33751b43b16334ef4b2a21d4dcb96797e (diff)
downloadacf-apk-tools-5832775f8f2fa176a1ccb4be5eb0e8ede11b185e.tar.bz2
acf-apk-tools-5832775f8f2fa176a1ccb4be5eb0e8ede11b185e.tar.xz
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'apk-expert-html.lsp')
-rw-r--r--apk-expert-html.lsp19
1 files changed, 4 insertions, 15 deletions
diff --git a/apk-expert-html.lsp b/apk-expert-html.lsp
index 6dde79f..a46318e 100644
--- a/apk-expert-html.lsp
+++ b/apk-expert-html.lsp
@@ -11,23 +11,12 @@ func(form, viewlibrary, page_info, session)
%>
<% if viewlibrary.check_permission("updateall") or viewlibrary.check_permission("upgradeall") then %>
-<h2>Update / Upgrade</h2>
+<% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Update / Upgrade"}), page_info) %>
<% if viewlibrary.check_permission("updateall") then %>
- <div class='item'><p class='left'>Update Index</p>
- <div class='right'>
- <form action="updateall" method="POST">
- <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
- <input class="submit" type="submit" name="submit" value="Update">
- </form>
- </div></div><!-- end .item -->
+ <% htmlviewfunctions.displayitem(cfe({type="form", value={}, label="Update Index", option="Update", action="updateall" }), page_info, 0) %>
<% end %>
<% if viewlibrary.check_permission("upgradeall") then %>
- <div class='item'><p class='left'>Upgrade All</p>
- <div class='right'>
- <form action="upgradeall" method="POST">
- <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
- <input class="submit" type="submit" name="submit" value="Upgrade">
- </form>
- </div></div><!-- end .item -->
+ <% htmlviewfunctions.displayitem(cfe({type="form", value={}, label="Upgrade All", option="Upgrade", action="upgradeall" }), page_info, 0) %>
<% end %>
+<% htmlviewfunctions.displaysectionend(header_level) %>
<% end %>