Author: chanaka
Date: Thu Dec  6 21:17:52 2007
New Revision: 10670

Log:

user page fixed

Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp
   trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp     
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp     Thu Dec 
 6 21:17:52 2007
@@ -97,9 +97,8 @@
 
     <tr>
         <th>Username</th>
-        <th>Created Date</th>
-        <th>Role</th>
-        <th>Action</th>
+        <th>Name</th>     
+        <th style="width:100px;" align="left">Action</th>
 
     </tr>
 
@@ -113,9 +112,9 @@
     <tr>
         <td><a 
href="/wso2registry/system/people/<%=regUser%>"><%=regUser%></a></td>
         <td>Friendly name should appear here</td>
-        <td><a href="/wso2registry/system/removeUser?user=<%=regUser%>">Remove 
user</a></td>
-        <td>
-            <a href="#" title="Delete" style="margin-left:5px;"><img 
src="images/icon-trash.gif" border="0" /></a>
+        
+        <td align="left">
+            <a href="/wso2registry/system/removeUser?user=<%=regUser%>" 
title="Delete" style="margin-left:5px;"><img 
src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a>
         </td>
     </tr>
 
@@ -153,8 +152,7 @@
 <table cellpadding="0" cellspacing="0" border="0" style="width:100%" 
class="data-table">
     <tr>
         <th>Role Name</th>
-        <th>Created Date</th>
-        <th>Action</th>
+        <th style="width:100px;" align="left">Action</th>
 
     </tr>
 
@@ -166,9 +164,8 @@
     %>
     <tr>
         <td><%=role%></td>
-        <td><a href="/wso2registry/system/removeRole?role=<%=role%>">Remove 
role</a></td>
         <td>
-            <a href="/wso2registry/system/removeRole?role=<%=role%>" 
title="Delete" style="margin-left:5px;"><img src="images/icon-trash.gif" 
border="0" /></a>
+            <a href="/wso2registry/system/removeRole?role=<%=role%>" 
title="Delete" style="margin-left:5px;"><img 
src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a>
         </td>
     </tr>
 

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp       
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp       Thu Dec 
 6 21:17:52 2007
@@ -3,27 +3,34 @@
 <%@ page import="java.util.Iterator" %>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
-<head><title>WSO2 Registry</title></head>
+<head>
+    <script language="JavaScript" type="text/JavaScript" 
src="/wso2registry/admin/js/common.js"></script>
+    <link type="text/css" href="/wso2registry/admin/css/main.css" 
rel="stylesheet" />
+    <title>WSO2 Registry</title>
+</head>
 
 <body>
+<div class="page-sizer">
 
+<!-- START header content -->
+<jsp:include page="header.jsp" />
     <%
         UserDetailsAction userDetailsAction = (UserDetailsAction) 
request.getSession().getAttribute(UIConstants.USER_BEAN);        
     %>
 
-    <h1><%=userDetailsAction.getUserName()%></h1>
 
-    <br/>
+<div class="content">
+<h1 class="headding-user-manage">People</h1>
 
-    <ul>
-        <%
-            Iterator iUserRoles = userDetailsAction.getUserRoles().iterator();
-            while (iUserRoles.hasNext()) {
-                String userRole = (String) iUserRoles.next();
-        %>
-        <li><%=userRole%><a 
href="/wso2registry/system/removeUserFromRole?user=<%=userDetailsAction.getUserName()%>&role=<%=userRole%>">Remove</a></li>
-        <% } %>
-    </ul>
+<table cellpadding="0" cellspacing="0" border="0">
+<tr>
+<td style="width:700px;" valign="top">
+
+<!-- Display the details of main node -->
+<div class="breadcrumb"><a href="/wso2registry/system/people">People</a> | 
<%=userDetailsAction.getUserName()%> (Settings)</div>
+<h2><%=userDetailsAction.getUserName()%></h2>
+
+    <h3>Add roles to <%=userDetailsAction.getUserName()%></h3>
 
     <form action="/wso2registry/system/addUserToRole" method="post">
         <input type="hidden" name="userName" 
value="<%=userDetailsAction.getUserName()%>"/>
@@ -36,11 +43,26 @@
             <option value="<%=roleName%>"><%=roleName%></option>
             <% } %>
         </select>
-        <input type="submit" value="Add"/>
+        <input type="submit" class="button" value="Add"/>
     </form>
-
-    <h2>Recent activity of the user</h2>
-    <br/>
+    <h3>Available roles to <%=userDetailsAction.getUserName()%></h3>
+       <table cellpadding="0" cellspacing="0" border="0" style="width:100%" 
class="data-table">
+       <tr>
+       <th>Role Name</th>
+       <th style="width:100px;" align="left">Action</th>
+       
+       </tr>
+       <%
+           Iterator iUserRoles = userDetailsAction.getUserRoles().iterator();
+           while (iUserRoles.hasNext()) {
+               String userRole = (String) iUserRoles.next();
+       %>
+       <tr><td><%=userRole%></td><td><a 
href="/wso2registry/system/removeUserFromRole?user=<%=userDetailsAction.getUserName()%>&role=<%=userRole%>"><img
 src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a></td></tr>
+       <% } %>
+       
+       </table>
+    <h3 style="margin-top:10px;">Recent activity of 
<%=userDetailsAction.getUserName()%></h3>
+   
     <ul>
         <%
             Iterator iActivity = 
userDetailsAction.getUserActivity().iterator();
@@ -51,5 +73,18 @@
         <% } %>        
     </ul>
 
+
+
+
+</td>
+<td valign="top" style="padding-left:10px;padding-right:10px;">
+
+
+</td>
+</tr>
+</table>
+</div>
+    
+
 </body>
 </html>
\ No newline at end of file

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to