Commit 15cc957a authored by Bill Lynch's avatar Bill Lynch Committed by bill

UI cleanup


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@445 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8696a909
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<p> <p>
Use the form below to set the policy for who can create chat rooms. Use the form below to configure the policy for who can create group chat rooms.
</p> </p>
<% if (errors.size() > 0) { %> <% if (errors.size() > 0) { %>
...@@ -137,7 +137,7 @@ Use the form below to set the policy for who can create chat rooms. ...@@ -137,7 +137,7 @@ Use the form below to set the policy for who can create chat rooms.
<% } %> <% } %>
<form action="muc-create-permission.jsp" method="post"> <form action="muc-create-permission.jsp?save" method="post">
<fieldset> <fieldset>
<legend>Permission Policy</legend> <legend>Permission Policy</legend>
...@@ -166,7 +166,7 @@ Use the form below to set the policy for who can create chat rooms. ...@@ -166,7 +166,7 @@ Use the form below to set the policy for who can create chat rooms.
</tbody> </tbody>
</table> </table>
<br> <br>
<input type="submit" name="save" value="Save Settings"> <input type="submit" value="Save Settings">
</div> </div>
</fieldset> </fieldset>
...@@ -176,16 +176,16 @@ Use the form below to set the policy for who can create chat rooms. ...@@ -176,16 +176,16 @@ Use the form below to set the policy for who can create chat rooms.
<% if (mucServer.isRoomCreationRestricted()) { %> <% if (mucServer.isRoomCreationRestricted()) { %>
<form action="muc-create-permission.jsp" method="post"> <form action="muc-create-permission.jsp?add" method="post">
<fieldset> <fieldset>
<legend>Allowed Users</legend> <legend>Allowed Users</legend>
<div> <div>
<p> <p>
Add User (enter JID): <label for="userJIDtf">Add User (JID):</label>
<input type="text" name="userJID" size="30" maxlength="100" value="<%= (userJID != null ? userJID : "") %>" <input type="text" name="userJID" size="30" maxlength="100" value="<%= (userJID != null ? userJID : "") %>"
onclick="this.form.openPerms[1].checked=true;"> onclick="this.form.openPerms[1].checked=true;" id="userJIDtf">
<input type="submit" name="add" value="Add"> <input type="submit" value="Add">
</p> </p>
<div class="jive-table" style="width:400px;"> <div class="jive-table" style="width:400px;">
......
...@@ -11,12 +11,11 @@ ...@@ -11,12 +11,11 @@
<%@ page import="org.jivesoftware.util.ParamUtils, <%@ page import="org.jivesoftware.util.ParamUtils,
java.text.DateFormat, java.text.DateFormat,
java.util.HashMap,
java.util.Map,
org.jivesoftware.messenger.XMPPServerInfo, org.jivesoftware.messenger.XMPPServerInfo,
org.jivesoftware.messenger.muc.MultiUserChatServer, org.jivesoftware.messenger.muc.MultiUserChatServer,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.JiveGlobals" org.jivesoftware.messenger.JiveGlobals,
java.util.*"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
...@@ -45,7 +44,6 @@ ...@@ -45,7 +44,6 @@
Map errors = new HashMap(); Map errors = new HashMap();
if (save) { if (save) {
// do validation // do validation
System.err.println("muc: " + muc);
if (muc == null || muc.indexOf('.') >= 0) { if (muc == null || muc.indexOf('.') >= 0) {
errors.put("mucname","mucname"); errors.put("mucname","mucname");
} }
...@@ -118,13 +116,12 @@ a server restart. ...@@ -118,13 +116,12 @@ a server restart.
<% } %> <% } %>
<input type="hidden" name="save" value="true"> <form action="muc-server-props-edit-form.jsp?save" method="post">
<fieldset> <fieldset>
<legend>Set Conflict Policy</legend> <legend>Set Conflict Policy</legend>
<div> <div>
<table cellpadding="3" cellspacing="0" border="0"> <table cellpadding="3" cellspacing="0" border="0">
<form action="muc-server-props-edit-form.jsp" method="post">
<tr> <tr>
<td class="c1"> <td class="c1">
Server name: Server name:
...@@ -153,9 +150,9 @@ a server restart. ...@@ -153,9 +150,9 @@ a server restart.
</div> </div>
</fieldset> </fieldset>
<br> <br><br>
<input type="submit" name="save" value="Save Properties"> <input type="submit" value="Save Properties">
</form> </form>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<p> <p>
Below is the list of system administrators of the group chat service. System administrators can Below is the list of system administrators of the group chat service. System administrators can
enter any groupchat room and their permissions are the same as the room owner. enter any group chat room and their permissions are the same as the room owner.
</p> </p>
<% if ("true".equals(request.getParameter("deletesuccess"))) { %> <% if ("true".equals(request.getParameter("deletesuccess"))) { %>
...@@ -83,9 +83,7 @@ enter any groupchat room and their permissions are the same as the room owner. ...@@ -83,9 +83,7 @@ enter any groupchat room and their permissions are the same as the room owner.
</table> </table>
</div><br> </div><br>
<% } %> <% } else if ("true".equals(request.getParameter("addsuccess"))) { %>
<% if ("true".equals(request.getParameter("addsuccess"))) { %>
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
...@@ -98,26 +96,32 @@ enter any groupchat room and their permissions are the same as the room owner. ...@@ -98,26 +96,32 @@ enter any groupchat room and their permissions are the same as the room owner.
</table> </table>
</div><br> </div><br>
<% } %> <% } else if (errors.size() > 0) { %>
<form action="muc-sysadmins.jsp" method="post"> <div class="jive-error">
<table cellpadding="0" cellspacing="0" border="0">
<fieldset> <tbody>
<legend>Add Admin User</legend> <tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0"></td>
<div> <td class="jive-icon-label">
User (enter JID): Error adding the admin. Please verify the JID is correct.
<input type="text" name="userJID" size="30" maxlength="100" value="<%= (userJID != null ? userJID : "") %>"> </td></tr>
<input type="submit" name="add" value="Add"> </tbody>
</div> </table>
</fieldset> </div><br>
</form> <% } %>
<br> <form action="muc-sysadmins.jsp?add" method="post">
<fieldset> <fieldset>
<legend>Admin Users</legend> <legend>Admin Users</legend>
<div> <div>
<label for="userJIDtf">Add Admin (JID):</label>
<input type="text" name="userJID" size="30" maxlength="100" value="<%= (userJID != null ? userJID : "") %>"
id="userJIDtf">
<input type="submit"s value="Add">
<br><br>
<div class="jive-table" style="width:400px;"> <div class="jive-table" style="width:400px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead> <thead>
...@@ -158,4 +162,6 @@ enter any groupchat room and their permissions are the same as the room owner. ...@@ -158,4 +162,6 @@ enter any groupchat room and their permissions are the same as the room owner.
</div> </div>
</fieldset> </fieldset>
</form>
<jsp:include page="bottom.jsp" flush="true" /> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file
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