Author: julien(a)jboss.com
Date: 2007-03-01 11:57:55 -0500 (Thu, 01 Mar 2007)
New Revision: 6486
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml
Log:
improving the layout for page layout editor
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml 2007-03-01
16:23:10 UTC (rev 6485)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml 2007-03-01
16:57:55 UTC (rev 6486)
@@ -13,40 +13,51 @@
<h3>You are editing the page layout</h3>
<h:form id="layoutForm">
- <div style="float:left">
- <c:forEach items="#{portalobjectmgr.regionNames}"
var="regionName">
- <table>
- <tr>
- <td colspan="3"
class="portlet-form-field-label">#{regionName} Region</td>
- </tr>
- <tr>
- <td>
- <div>
- <h:commandButton value="Up"
id="u_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
- </div>
- <div>
- <h:commandButton value="Down"
id="d_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
- </div>
- </td>
- <td>
- <h:selectManyListbox
-
value="#{assignWindowsAction.assignedWindows[regionName]}"
- size="7"
- styleClass="windowList portlet-form-field">
- <f:selectItems
value="#{portalobjectmgr.windowItemsMap[regionName]}"/>
- </h:selectManyListbox>
- </td>
- <td>
- <div>
- <h:commandButton value="->"
id="l_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
- </div>
- <div>
- <h:commandButton value="<-"
id="r_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
- </div>
- </td>
- </tr>
- </table>
- </c:forEach>
+ <div style="float:left;padding:0 2em 0 2em">
+ <table>
+ <c:forEach items="#{portalobjectmgr.regionNames}"
var="regionName" varStatus="status">
+ <tbody>
+ <c:choose>
+ <c:when test="#{status.index > 0}">
+ <tr>
+ <td colspan="3"
class="portlet-form-field-label" style="border-width:0px;border-top:1px
dashed #d5d5d5">#{regionName} Region</td>
+ </tr>
+ </c:when>
+ <c:otherwise>
+ <tr>
+ <td colspan="3"
class="portlet-form-field-label">#{regionName} Region</td>
+ </tr>
+ </c:otherwise>
+ </c:choose>
+ <tr>
+ <td>
+ <div>
+ <h:commandButton value="Up"
id="u_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
+ </div>
+ <div>
+ <h:commandButton value="Down"
id="d_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
+ </div>
+ </td>
+ <td>
+ <h:selectManyListbox
+
value="#{assignWindowsAction.assignedWindows[regionName]}"
+ size="7"
+ styleClass="windowList portlet-form-field">
+ <f:selectItems
value="#{portalobjectmgr.windowItemsMap[regionName]}"/>
+ </h:selectManyListbox>
+ </td>
+ <td>
+ <div>
+ <h:commandButton value="->"
id="l_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
+ </div>
+ <div>
+ <h:commandButton value="<-"
id="r_#{regionName}" actionListener="#{assignWindowsAction.execute}"
styleClass="portlet-form-button"/>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </c:forEach>
+ </table>
</div>
<div style="float:left">
<table>
Show replies by date