diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-17 20:54:53 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-17 20:54:53 +0000 |
commit | 6f3e73c18db22a88e4ab224dbbe351d7ce1a20df (patch) | |
tree | cfbebabe215411b58c338e3583496c309213a6bc | |
parent | ea930ec9b8600c9ba8639683a503654a442efdde (diff) | |
download | acf-samba-6f3e73c18db22a88e4ab224dbbe351d7ce1a20df.tar.bz2 acf-samba-6f3e73c18db22a88e4ab224dbbe351d7ce1a20df.tar.xz |
Replace form with displayitem in listshares-html
-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) %> |