Commit d451e6bd authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added warning text when adding remote JID to group. JM-210

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3129 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4a9e6f68
...@@ -490,11 +490,12 @@ ...@@ -490,11 +490,12 @@
%> %>
<% <%
boolean showUpdateButtons = memberCount > 0; boolean showUpdateButtons = memberCount > 0;
boolean showRemoteJIDsWarning = false;
while (admins.hasNext()) { while (admins.hasNext()) {
JID user = (JID)admins.next(); JID user = (JID)admins.next();
%> %>
<tr> <tr>
<td><%= user %></td> <td><%= user %><% if (!webManager.getXMPPServer().isLocal(user)) { showRemoteJIDsWarning = true; %> <font color="red"><b>*</b></font><%}%></td>
<td align="center"> <td align="center">
<input type="checkbox" name="admin" value="<%= user %>" checked> <input type="checkbox" name="admin" value="<%= user %>" checked>
</td> </td>
...@@ -510,7 +511,7 @@ ...@@ -510,7 +511,7 @@
JID user = (JID)members.next(); JID user = (JID)members.next();
%> %>
<tr> <tr>
<td><%= user %></td> <td><%= user %><% if (!webManager.getXMPPServer().isLocal(user)) { showRemoteJIDsWarning = true; %> <font color="red"><b>*</b></font><%}%></td>
<td align="center"> <td align="center">
<input type="checkbox" name="admin" value="<%= user %>"> <input type="checkbox" name="admin" value="<%= user %>">
</td> </td>
...@@ -535,6 +536,16 @@ ...@@ -535,6 +536,16 @@
<input type="submit" name="remove" value="Remove"> <input type="submit" name="remove" value="Remove">
</td> </td>
</tr> </tr>
<%
}
if (showRemoteJIDsWarning) {
%>
<tr>
<td colspan="3">
<font color="red">* Note: Remote users or entities should accept presence subscriptions automatically.</font>
</td>
</tr>
<% <%
} }
%> %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment