Author: chanaka
Date: Thu Jan 17 08:30:06 2008
New Revision: 12428
Log:
some alignment, userbility issues fixed.
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-edit.gif
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-trash.gif
trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp Thu Jan
17 08:30:06 2008
@@ -13,4 +13,4 @@
String description = (String)
request.getSession().getAttribute(UIConstants.AJAX_DESCRIPTION_STRING);
%>
-<p><%=description%></p>
\ No newline at end of file
+<%=description%>
\ No newline at end of file
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css Thu Jan
17 08:30:06 2008
@@ -354,9 +354,36 @@
/* editing panel */
#descView{
border:solid 1px #e5daca;
-
-width:98%;
padding-left:5px;
+padding-right:5px;
+}
+#descView h3{
+margin:auto;
+}
+#descView h1{
+color:#000000;
+font-family:Arial,Verdana,Helvetica,sans-serif;
+font-size:auto;
+padding:0px;
+margin:3px;
+font-weight:bold;
+}
+#descView h2{
+padding:0px;
+margin:3px;
+font-family:Verdana,Arial,Helvetica,sans-serif;
+font-size:14px;
+color:#000000;
+}
+#descView h3{
+padding:0px;
+margin:0px;
+color:#000000;
+margin:3px;
+}
+#descView h4{
+padding:0px;
+margin:3px;
}
#descEdit{
border:solid 1px #e5daca;
@@ -465,5 +492,4 @@
}
.search-table td{
padding-right:5px;
-
-}
\ No newline at end of file
+}
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-edit.gif
==============================================================================
Binary files. No diff available.
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-trash.gif
==============================================================================
Binary files. No diff available.
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js Thu Jan
17 08:30:06 2008
@@ -492,3 +492,14 @@
urlHelpText.style.color="#000000";
}
}
+function expandIfNot(name)
+{ var x = name+'Expanded';
+ var expanded=true;
+ if(document.getElementById(name+'Expanded').style.display=='none'){
+ showHideCommon(name+'IconExpanded');
+ showHideCommon(name+'IconMinimized');
+ showHideCommon(name+'Expanded');
+ showHideCommon(name+'Minimized');
+ }
+
+}
\ No newline at end of file
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
Thu Jan 17 08:30:06 2008
@@ -116,7 +116,12 @@
<td>
<% if (details.isPutAllowed()) { %>
<a onclick="showHideCommon('propertiesAddDiv');" href="#">
- <img border="0" title="Add New Properties"
style="margin-top: -10px;" valign="top"
src="/wso2registry/admin/images/universal-add.gif"/>
+ <img border="0" title="Add New Property"
style="margin-top: -10px;" valign="top"
src="/wso2registry/admin/images/universal-add.gif"/>
+ <%
+ }
+ else{
+ %>
+ Sorry. You are not authorized to add new properties.
<% } %>
</a>
</td>
@@ -124,7 +129,7 @@
<form>
<input type="hidden" id="propRPath"
value="<%=details.getPath()%>"/>
Name: <input type="text" id="propName"/> Value:
<input type="text" id="propValue"/>
- <input type="button" value="Add"
onclick="setProperty();showHideCommon('propertiesAddDiv');"/>
+ <input type="button" class="button" value="Add"
onclick="setProperty();showHideCommon('propertiesAddDiv');"/>
</form>
</td>
</tr>
@@ -133,15 +138,20 @@
<div id="resourceProperties" style="margin-left:145px;">
<form>
- <table cellpadding="0" cellspacing="0" border="0" class="data-table"
style="width:100%">
- <tr>
+
+
+ <%
+ Properties props = details.getProperties();
+ if(!props.isEmpty()){
+ %>
+ <table cellpadding="0" cellspacing="0" border="0" class="data-table"
style="width:100%;margin-top:0px;">
+ <tr>
<th style="width:40%">Name</th>
<th>Value</th>
<th style="width:70px;"></th>
- </tr>
+ </tr>
<%
- Properties props = details.getProperties();
-
+ }
Iterator iProps = props.keySet().iterator();
for (int i=0;iProps.hasNext();i++) {
@@ -167,19 +177,17 @@
<td>
<% if (details.isPutAllowed()) { %>
<a href="#"
onclick="showHideCommon('propViewPanel_<%=i%>');showHideCommon('propEditPanel_<%=i%>')"><img
title="Edit" border="0" align="top"
src="/wso2registry/admin/images/icon-edit.gif" /></a>
- <a href="#" onclick="removeProperty('<%=name%>')"
style="margin-left:5px;"><img title="Remove" style="margin-top:3px;" border="0"
align="top" src="/wso2registry/admin/images/icon-trash.gif" /></a>
+ <a href="#" onclick="removeProperty('<%=name%>')"
style="margin-left:5px;"><img title="Remove" border="0" align="top"
src="/wso2registry/admin/images/icon-trash.gif" /></a>
<% } %>
</td>
</tr>
-
-
-
-
<%
}
+ if(!props.isEmpty()){
%>
</table>
+ <% } %>
</form>
</div>
@@ -232,15 +240,15 @@
<tr>
<% if (details.isCollection() &&
details.isPutAllowed()) { %>
<td>
- <a href="#" title="Add Resource"
onclick="showHide('add-resource-div')"><img
src="/wso2registry/admin/images/icon-add-resource.gif" border="0" align="top"
style="margin-top:-5px;" /></a>
+ <a href="#resources" title="Add Resource"
onclick="showHide('add-resource-div');expandIfNot('entries');"><img
src="/wso2registry/admin/images/icon-add-resource.gif" border="0" align="top"
style="margin-top:-5px;" /></a>
</td>
<td valign="top">
- <a href="#" title="Add Collection"
onclick="showHide('add-folder-div')"><img
src="/wso2registry/admin/images/icon-add-folder.gif" border="0" align="top"
style="margin-top:-3px;" /></a>
+ <a href="#resources" name="resources" title="Add
Collection" onclick="showHide('add-folder-div');expandIfNot('entries');"><img
src="/wso2registry/admin/images/icon-add-folder.gif" border="0" align="top"
style="margin-top:-3px;" /></a>
</td>
<% } %>
<td>
- <a href="#"
onclick="showHideCommon('entriesIconExpanded');showHideCommon('entriesIconMinimized');showHideCommon('entriesExpanded');showHideCommon('entriesMinimized');">
+ <a href="#resources"
onclick="showHideCommon('entriesIconExpanded');showHideCommon('entriesIconMinimized');showHideCommon('entriesExpanded');showHideCommon('entriesMinimized');">
<img
src="/wso2registry/admin/images/icon-expanded.gif" border="0" align="top"
id="entriesIconExpanded" style="margin-top:-4px;" />
<img
src="/wso2registry/admin/images/icon-minimized.gif" border="0" align="top"
id="entriesIconMinimized" style="display:none;margin-top:-4px;" />
</a>
@@ -530,7 +538,7 @@
<td align="right" valign="top">
<table cellpadding="0" cellspacing="0" border="0"
class="toolBarTable">
<tr>
- <td><% if (details.isLoggedIn()) { %><a href="#"
onclick="showHideCommon('add-comment-div');"><img
src="/wso2registry/admin/images/universal-add.gif" border="0" valign="top"
style="margin-top:-10px;_margin-top:5px;" title="Add New Comment" /></a><% }
%></td>
+ <td><% if (details.isLoggedIn()) { %><a href="#"
onclick="showHideCommon('add-comment-div');expandIfNot('comments');"><img
src="/wso2registry/admin/images/universal-add.gif" border="0" valign="top"
style="margin-top:-10px;_margin-top:5px;" title="Add New Comment" /></a><% }
%></td>
<td>
<a href="#"
onclick="showHideCommon('commentsIconExpanded');showHideCommon('commentsIconMinimized');showHideCommon('commentsExpanded');showHideCommon('commentsMinimized');">
<img
src="/wso2registry/admin/images/icon-expanded.gif" border="0" align="top"
id="commentsIconExpanded" style="margin-top:-4px;" />
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev