diff options
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 %> |