summaryrefslogtreecommitdiffstats
path: root/kamailio-viewtable-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-02-23 14:24:20 +0000
committerTed Trask <ttrask01@yahoo.com>2011-02-23 14:24:20 +0000
commit31f68d1ea1390017773e691cccd0e6f9cc1fd0a7 (patch)
tree94895b8799f0682635280ff67e3e7959ca1f1cde /kamailio-viewtable-html.lsp
parent8ceb7e4eb46a498d4d63005dd02b32af012dc4d1 (diff)
downloadacf-kamailio-31f68d1ea1390017773e691cccd0e6f9cc1fd0a7.tar.bz2
acf-kamailio-31f68d1ea1390017773e691cccd0e6f9cc1fd0a7.tar.xz
Added searchdatabase action
Diffstat (limited to 'kamailio-viewtable-html.lsp')
-rw-r--r--kamailio-viewtable-html.lsp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kamailio-viewtable-html.lsp b/kamailio-viewtable-html.lsp
index 7d0aa41..f0c5ff9 100644
--- a/kamailio-viewtable-html.lsp
+++ b/kamailio-viewtable-html.lsp
@@ -41,8 +41,11 @@
</TR>
<% end %>
</TABLE>
+<% if #form.value.entries.value == 0 then %>
+<p>No entries found</p>
+<% end %>
</DL>
-<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createtableentry") then
+<% if page_info.action == "viewtable" and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createtableentry") then
viewlibrary.dispatch_component("createtableentry", {table=form.value.table.value})
end %>