From 3243d80d3a748917a6dbe54ed54f3a9a5602f2de Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 27 Sep 2013 03:29:27 +0000 Subject: Modified to use new acf-db library for viewing/editing database Change model and controller to no longer use deprecated "module" function --- kamailio-viewtable-html.lsp | 55 --------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 kamailio-viewtable-html.lsp (limited to 'kamailio-viewtable-html.lsp') diff --git a/kamailio-viewtable-html.lsp b/kamailio-viewtable-html.lsp deleted file mode 100644 index e1531d0..0000000 --- a/kamailio-viewtable-html.lsp +++ /dev/null @@ -1,55 +0,0 @@ -<% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> -<% html = require("acf.html") %> - -<% htmlviewfunctions.displaycommandresults({"deletetableentry", "updatetableentry"}, session) %> -<% htmlviewfunctions.displaycommandresults({"createtableentry"}, session, true) %> - -

<%= html.html_escape(form.label) %> - <%= html.html_escape(form.value.table.value) %>

-
- - - <% if viewlibrary.check_permission("deletetableentry") or viewlibrary.check_permission("updatetableentry") then %> - - <% end %> - <% for i,f in ipairs(form.value.fields.value) do %> - - <% end %> - - -<% for i,tableentry in ipairs(form.value.entries.value) do %> - - <% if viewlibrary.check_permission("deletetableentry") or viewlibrary.check_permission("updatetableentry") then %> - - <% end %> - <% for i,f in ipairs(form.value.fields.value) do %> - - <% end %> - -<% end %> -
Action<%= html.html_escape(f) %>
- <% if viewlibrary.check_permission("updatetableentry") then %> -
- - - -
- <% end %> - <% if viewlibrary.check_permission("deletetableentry") then %> -
- - -
- <% end %> -
<%= html.html_escape(tableentry[f]) %>
-<% if form.errtxt then %> -

<%= html.html_escape(form.errtxt) %>

-<% end %> -<% if #form.value.entries.value == 0 then %> -

No entries found

-<% end %> -
- -<% 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 %> -- cgit v1.2.3