Author: julien(a)jboss.com
Date: 2007-03-03 09:17:39 -0500 (Sat, 03 Mar 2007)
New Revision: 6496
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml
Log:
acceptable layout for the preference editor
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml 2007-03-03
02:43:49 UTC (rev 6495)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml 2007-03-03
14:17:39 UTC (rev 6496)
@@ -48,38 +48,49 @@
</h:form>
<c:if test="#{prefs.selectedEntry != null}">
-
- <h:form>
- <table width="100%">
- <tbody>
- <c:forEach items="#{prefs.selectedEntry.indices}"
var="index" varStatus="status">
+ <h:form style="padding: 1em 0 1em 0">
+ <fieldset style="border: 1px solid;">
+ <legend>Edit existing values</legend>
+ <table>
+ <tbody>
+ <c:forEach items="#{prefs.selectedEntry.indices}"
var="index" varStatus="status">
+ <tr>
+ <td>
+ <h:outputLabel for="row_#{status.index}">
+ <h:outputText value="Value #{status.index}: "
styleClass="portlet-form-field-label"/>
+ </h:outputLabel>
+ </td>
+ <td>
+ <h:inputText
value="#{prefs.selectedEntry[index]}"
styleClass="portlet-form-input-field"/>
+ </td>
+ <td>
+ <h:commandButton
+ id="row_#{status.index}"
+
actionListener="#{prefs.selectedEntry.deleteLine}"
+ value="Delete"
+ styleClass="portlet-form-button"/>
+ </td>
+ </tr>
+ </c:forEach>
<tr>
- <td>
- <h:outputText value="Value #{status.index}:
#{index}" styleClass="portlet-form-field-label"/>
+ <td colspan="3">
+ <h:commandButton value="Update"
styleClass="portlet-form-button"/>
</td>
- <td>
- <h:inputText value="#{prefs.selectedEntry[index]}"
styleClass="portlet-form-input-field"/>
- </td>
- <td>
- <h:commandButton
- id="row_#{status.index}"
- actionListener="#{prefs.selectedEntry.deleteLine}"
- value="Delete"
- styleClass="portlet-form-button"/>
- </td>
</tr>
- </c:forEach>
- </tbody>
- </table>
- <h:commandButton value="Update"
styleClass="portlet-form-button"/>
+ </tbody>
+ </table>
+ </fieldset>
</h:form>
<h:form>
- <h:outputLabel for="new_value">
- <h:outputText value="New value: "
styleClass="portlet-form-field-label"/>
- </h:outputLabel>
- <h:inputText id="new_value"
value="#{prefs.selectedEntry.line}"
styleClass="portlet-form-input-field"/>
- <h:commandButton action="#{prefs.selectedEntry.appendLine}"
value="Append" styleClass="portlet-form-button"/>
+ <fieldset style="border: 1px solid;">
+ <legend>Append a value</legend>
+ <h:outputLabel for="new_value">
+ <h:outputText value="New value: "
styleClass="portlet-form-field-label"/>
+ </h:outputLabel>
+ <h:inputText id="new_value"
value="#{prefs.selectedEntry.line}"
styleClass="portlet-form-input-field"/>
+ <h:commandButton action="#{prefs.selectedEntry.appendLine}"
value="Append" styleClass="portlet-form-button"/>
+ </fieldset>
</h:form>
</c:if>
Modified: trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml
===================================================================
--- trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml 2007-03-03
02:43:49 UTC (rev 6495)
+++ trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml 2007-03-03
14:17:39 UTC (rev 6496)
@@ -90,9 +90,9 @@
<ui:include src="common/editPreferences.xhtml">
<ui:param name="prefs"
value="#{instancemgr.selectedPrefs}"/>
</ui:include>
- <h:form>
- <h:commandButton value="Save"
action="#{instancemgr.updatePrefs}"/>
- <h:commandButton value="Cancel"
action="#{instancemgr.cancelPrefs}"/>
+ <h:form style="text-align:center;padding: 1em 0 1em 0">
+ <h:commandButton value="Save"
action="#{instancemgr.updatePrefs}"
styleClass="portlet-form-button"/>
+ <h:commandButton value="Cancel"
action="#{instancemgr.cancelPrefs}"
styleClass="portlet-form-button"/>
</h:form>
</c:if>
@@ -105,8 +105,6 @@
</c:if>
-
-
</ui:define>
</ui:composition>
</div>
Show replies by date