Author: julien(a)jboss.com
Date: 2007-03-03 09:34:46 -0500 (Sat, 03 Mar 2007)
New Revision: 6497
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml
Log:
better layout for security editor
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml 2007-03-03
14:17:39 UTC (rev 6496)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml 2007-03-03
14:34:46 UTC (rev 6497)
@@ -2,23 +2,37 @@
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core">
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
<h:form>
- <h:dataTable
- var="role"
- value="#{auth.roles}">
- <h:column>
- <b><h:outputText value="#{role == '__unchecked__' ?
'Unchecked' : (auth.roleDisplayNameMap[role] != null ?
auth.roleDisplayNameMap[role] : role)}"/></b>
- </h:column>
- <h:column>
- <h:selectManyCheckbox id="cars"
- value="#{auth.forRole[role]}">
- <f:selectItems value="#{auth.availableActions}"/>
- </h:selectManyCheckbox>
- </h:column>
- </h:dataTable>
- <h:commandButton action="#{auth.execute}" value="Update"
styleClass="portlet-form-button"/>
+ <table>
+ <tbody>
+ <c:forEach items="#{auth.roles}" var="role"
varStatus="status">
+ <tr>
+ <td>
+ <h:outputLabel for="cars_#{status.index}">
+ <span class="portlet-form-field-label">Role
<span>#{role == '__unchecked__' ? 'Unchecked' :
(auth.roleDisplayNameMap[role] != null ? auth.roleDisplayNameMap[role] :
role)}</span></span>:
+ </h:outputLabel>
+ </td>
+ <td>
+ <h:selectManyCheckbox
+ id="cars_#{status.index}"
+ style="portlet-form-field"
+ value="#{auth.forRole[role]}"
+ layout="lineDirection">
+ <f:selectItems
value="#{auth.availableActions}"/>
+ </h:selectManyCheckbox>
+ </td>
+ </tr>
+ </c:forEach>
+ <tr>
+ <td colspan="2">
+ <h:commandButton action="#{auth.execute}"
value="Update" styleClass="portlet-form-button"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
</h:form>
</div>
\ No newline at end of file