summaryrefslogtreecommitdiffstats
path: root/kamailio-listusers-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-10-10 14:46:01 +0000
committerTed Trask <ttrask01@yahoo.com>2014-10-10 14:46:56 +0000
commit18d7e388c52151e094cd4cb73c7fde4bc1087264 (patch)
tree4b163bcccb4aed6f69b543643492ad961b34f1cc /kamailio-listusers-html.lsp
parente47c4e42241aa14906b9d5106515abced41e97e3 (diff)
downloadacf-kamailio-18d7e388c52151e094cd4cb73c7fde4bc1087264.tar.bz2
acf-kamailio-18d7e388c52151e094cd4cb73c7fde4bc1087264.tar.xz
Add domain support to user management
(cherry picked from commit a040b1fd25d3a6bb65db161fa3c3b7a656fac9e0)
Diffstat (limited to 'kamailio-listusers-html.lsp')
-rw-r--r--kamailio-listusers-html.lsp8
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 %>