diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-10-10 14:46:01 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-10-10 14:46:01 +0000 |
commit | a040b1fd25d3a6bb65db161fa3c3b7a656fac9e0 (patch) | |
tree | 23e5de856c6ea2d458d1cef5b3bbeb79996e46cc /kamailio-listusers-html.lsp | |
parent | 320c57df707590303f2baeab8d0737fd121b4fae (diff) | |
download | acf-kamailio-a040b1fd25d3a6bb65db161fa3c3b7a656fac9e0.tar.bz2 acf-kamailio-a040b1fd25d3a6bb65db161fa3c3b7a656fac9e0.tar.xz |
Add domain support to user management
Diffstat (limited to 'kamailio-listusers-html.lsp')
-rw-r--r-- | kamailio-listusers-html.lsp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kamailio-listusers-html.lsp b/kamailio-listusers-html.lsp index 47b7c2d..8cd0237 100644 --- a/kamailio-listusers-html.lsp +++ b/kamailio-listusers-html.lsp @@ -34,25 +34,29 @@ <th>Action</th> <% end %> <th>User Name</th> + <th>Domain</th> <th>Password</th> </tr> </thead><tbody> <% local username = cfe({ type="hidden", value="" }) %> +<% local domain = cfe({ type="hidden", value="" }) %> <% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> <% for i,user in ipairs(form.value) do %> <tr> <% username.value = user.username %> + <% domain.value = user.domain %> <% if viewlibrary.check_permission("deleteuser") or viewlibrary.check_permission("updateuser") then %> <td> <% if viewlibrary.check_permission("updateuser") then %> - <% htmlviewfunctions.displayitem(cfe({type="link", value={username=username, redir=redir}, label="", option="Update", action="updateuser"}), page_info, -1) %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={username=username, domain=domain, redir=redir}, label="", option="Update", action="updateuser"}), page_info, -1) %> <% end %> <% if viewlibrary.check_permission("deleteuser") then %> - <% htmlviewfunctions.displayitem(cfe({type="form", value={username=username}, label="", option="Delete", action="deleteuser"}), page_info, -1) %> + <% htmlviewfunctions.displayitem(cfe({type="form", value={username=username, domain=domain}, label="", option="Delete", action="deleteuser"}), page_info, -1) %> <% end %> </td> <% end %> <td><%= html.html_escape(user.username) %></td> + <td><%= html.html_escape(user.domain) %></td> <% if viewlibrary.check_permission("updateuser") then %> <td><%= html.html_escape(user.password) %></td> <% else %> |