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