From 50b8c1bd4d52e53ab9ce98c67550b995a5682865 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Feb 2014 17:02:41 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- kamailio-listusers-html.lsp | 56 ++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 18 deletions(-) (limited to 'kamailio-listusers-html.lsp') diff --git a/kamailio-listusers-html.lsp b/kamailio-listusers-html.lsp index c631716..0b7183f 100644 --- a/kamailio-listusers-html.lsp +++ b/kamailio-listusers-html.lsp @@ -2,42 +2,62 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"deleteuser", "updateuser"}, session) %> <% htmlviewfunctions.displaycommandresults({"createuser"}, session, true) %> -

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

-
- - +

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

+
+ <% if viewlibrary.check_permission("deleteuser") or viewlibrary.check_permission("updateuser") then %> - + <% end %> - - - - + + + + <% for i,user in ipairs(form.value) do %> - + <% if viewlibrary.check_permission("deleteuser") or viewlibrary.check_permission("updateuser") then %> - + <% end %> - + <% if viewlibrary.check_permission("updateuser") then %> - + <% else %> - + <% end %> - + <% end %> -
ActionActionUser NamePassword
User NamePassword
+ <% if viewlibrary.check_permission("updateuser") then %> <%= html.link{value = "updateuser?username=" .. user.username.."&redir="..page_info.orig_action, label="Update "} %> <% end %> <% if viewlibrary.check_permission("deleteuser") then %> <%= html.link{value = "deleteuser?submit=true&username=" .. user.username, label="Delete "} %> <% end %> - <%= html.html_escape(user.username) %><%= html.html_escape(user.username) %><%= html.html_escape(user.password) %><%= html.html_escape(user.password) %>************
-
+ <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createuser") then viewlibrary.dispatch_component("createuser") -- cgit v1.2.3