diff options
-rw-r--r-- | samba-listshares-html.lsp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/samba-listshares-html.lsp b/samba-listshares-html.lsp index 41833e8..e3fc36c 100644 --- a/samba-listshares-html.lsp +++ b/samba-listshares-html.lsp @@ -56,15 +56,7 @@ html = require("acf.html") <p>No Shares Found</p> <% end %> -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createshare") then %> -<% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Create new share"}), page_info, htmlviewfunctions.incrementheader(header_level)) %> -<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller) %>/createshare" method="post"> -<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > -<div class='item'><p class='left'></p> -<div class='right'> -<input class="submit" type="submit" value="Create Share"> -</div></div><!-- end .item --> -</form> -<% htmlviewfunctions.displaysectionend(header_level2) %> +<% if viewlibrary and viewlibrary.check_permission("createshare") then %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={redir=redir}, label="Create new share", option="Create Share", action="createshare"}), page_info, htmlviewfunctions.incrementheader(header_level)) %> <% end %> <% htmlviewfunctions.displaysectionend(header_level) %> |