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