diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-11-04 03:23:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-11-04 03:23:55 +0000 |
commit | 2fbbced496957bb140a4f72c5b66c337b88a60b4 (patch) | |
tree | 07ce27b6afac96387779cbbb7420981899d10da2 /lib | |
parent | c972d26748437e3bcd3bae1effefd85893aa69f8 (diff) | |
download | acf-db-2fbbced496957bb140a4f72c5b66c337b88a60b4.tar.bz2 acf-db-2fbbced496957bb140a4f72c5b66c337b88a60b4.tar.xz |
Modify listtables HTML view to use dispatch_component for createdatabase action
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db-listtables-html.lsp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/db-listtables-html.lsp b/lib/db-listtables-html.lsp index f0db6b7..fd9c7eb 100644 --- a/lib/db-listtables-html.lsp +++ b/lib/db-listtables-html.lsp @@ -58,9 +58,10 @@ formvalues.table = cfe({ type="hidden" }) </tr> <% end %> </tbody></table> -<% elseif viewlibrary.check_permission("createdatabase") then %> - <% htmlviewfunctions.displayitem(cfe({type="form", value={}, label="Create Database", option="Create", action="createdatabase" }), page_info, 0) %> <% else %> <p>No tables found</p> +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createdatabase") then + viewlibrary.dispatch_component("createdatabase") +end %> <% end %> <% htmlviewfunctions.displaysectionend(header_level) %> |