portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r1668128 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp
Date Fri, 20 Mar 2015 19:42:26 GMT
Author: taylor
Date: Fri Mar 20 19:42:26 2015
New Revision: 1668128

URL: http://svn.apache.org/r1668128
Log:
JS2-1293: CSS styling of new User Manager. Add dialog to verify deletion of users

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp?rev=1668128&r1=1668127&r2=1668128&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/security/usermanager2.jsp
Fri Mar 20 19:42:26 2015
@@ -61,7 +61,7 @@ limitations under the License.
 			<a id="actionAddConstraint" style="font-family:verdana;" href="#">Add more constraints...</a>
 		</div>
 		<div style="">
-			<input id="actionFindUser" type="button" value="Find" />
+			<input id="actionFindUser" type="button" value="Find" class="btn"/>
 		</div><br/>
 	</div>
 	<hr style="clear:both" align="left" class="hr2"/>
@@ -69,14 +69,14 @@ limitations under the License.
 		<div id="searchResult" style="width:655px;"></div>
 	</div>
 	<div style="width:655px;text-align:right">
-		<input id="actionNewUser" type="button" value="New User" />
+		<input id="actionNewUser" type="button" value="New User" class="btn" />
 	</div>
 </div>
 
 <div id="editUserPage" class="hidden-node">
 	<span><a id="actionEditUserBack" href="#">FIND USER</a> | EDIT USER  
-    </span><span id="userDisplayName">Unset</span>
 	<div class="yui-skin-sam">
-	<div id="user-properties" class="yui-navset" style="width:665px;">
+	<div id="user-properties" class="yui-navset" style="width:695px;">
 		<form id="editUserForm">
 		<div id="editUserError" class="portlet-msg-error hidden-node"></div>
 		
@@ -153,8 +153,8 @@ limitations under the License.
 						</select>
 					</div>
 					<div style="float:left;margin-left:20px;margin-right:20px;padding-top:60px">
-						<input id="actionAssignRoles" type="button" name="toRight" value="&gt;"/><br
/>
-						<input id="actionRemoveRoles" type="button" name="toLeft" value="&lt;" style="margin-top:5px"/>
+						<input id="actionAssignRoles" class="btn" type="button" name="toRight" value="&gt;"/><br
/>
+						<input id="actionRemoveRoles" class="btn" type="button" name="toLeft" value="&lt;"
style="margin-top:5px"/>
 					</div>
 					<div style="float:left">
 						<label for="assignedRoles" style="">Assigned Roles</label><br/>
@@ -171,8 +171,8 @@ limitations under the License.
 						</select>
 					</div>
 					<div style="float:left;margin-left:20px;margin-right:20px;padding-top:3em">
-						<input id="actionAssignGroups" type="button" name="toRight" value="&gt;"/><br
/>
-						<input id="actionRemoveGroups" type="button" name="toLeft" value="&lt;" style="margin-top:5px"/>
+						<input id="actionAssignGroups" class="btn" type="button" name="toRight" value="&gt;"/><br
/>
+						<input id="actionRemoveGroups" class="btn" type="button" name="toLeft" value="&lt;"
style="margin-top:5px"/>
 					</div>
 					<div style="float:left">
 						<label for="assignedGroups" style="">Assigned Groups</label><br/>
@@ -194,17 +194,17 @@ limitations under the License.
 		</form>
 	</div>
 	</div>
-	<div style="clear:both; width:665px; text-align:right">
-		<input id="actionUpdateUser" type="button" value="Update"/>
-		<input id="actionDeleteUser" style="margin-right:10px" type="button" value="Remove"/>
-		<input id="actionCancelEditUser" type="button" value="Cancel"/>
+	<div style="clear:both; width:695px; text-align:right">
+		<input id="actionUpdateUser" type="button" value="Update" class="btn" />
+		<input id="actionDeleteUser" style="margin-right:10px" type="button" value="Remove"
class="btn" />
+		<input id="actionCancelEditUser" type="button" value="Cancel" class="btn" />
 	</div>
 </div>
 
 <div id="newUserPage" class="hidden-node">
 	<span><a id="actionNewUserBack" href="#">FIND USER</a> | NEW USER</span>
 	<div class="yui-skin-sam">
-	<div id="user-properties" class="yui-navset" style="width:665px;">
+	<div id="user-properties" class="yui-navset" style="width:695px;">
 		<form id="newUserForm">
 		<div id="newUserError" class="portlet-msg-error hidden-node"></div>
 		<div>
@@ -262,9 +262,9 @@ limitations under the License.
 		</form>
 	</div>
 	</div>
-	<div style="clear:both; width:665px; text-align:right">
-		<input id="actionCreateUser" type="button" value="Save"/>
-		<input id="actionCancelNewUser" type="button" value="Cancel"/>
+	<div style="clear:both; width:695px; text-align:right">
+		<input id="actionCreateUser" class="btn" type="button" value="Save"/>
+		<input id="actionCancelNewUser" class="btn" type="button" value="Cancel"/>
 	</div>
 </div>
 
@@ -527,8 +527,10 @@ YUI({combine: true, timeout: 10000}).use
 
 	var actionDeleteUser = function(e) {
 		var userName = Y.one('#inputUserNameHidden').get('value');
-		var cObj = YAHOO.util.Connect.asyncRequest('DELETE', '${portalContextPrefix}/services/usermanager/users/'
+ userName + '/?_type=json', actionDeleteUserDone);
-	}
+		if (window.confirm('Do you really want to delete user \'' + userName + '\'?')) {
+			var cObj = YAHOO.util.Connect.asyncRequest('DELETE', '${portalContextPrefix}/services/usermanager/users/'
+ userName + '/?_type=json', actionDeleteUserDone);
+		}
+	};
 	
 	<%--//  callback for creating a new user --%>
     var actionDeleteUserDone = {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message