Author: lektran
Date: Tue Nov 24 22:25:17 2009 New Revision: 883900 URL: http://svn.apache.org/viewvc?rev=883900&view=rev Log: Switched back to using main-decorator in ManagePortalPages, wrapped the body section in no-clear container since that was the reason why the CommonPartyDecorator was being used Modified: ofbiz/trunk/framework/common/widget/PortalPageScreens.xml Modified: ofbiz/trunk/framework/common/widget/PortalPageScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/PortalPageScreens.xml?rev=883900&r1=883899&r2=883900&view=diff ============================================================================== --- ofbiz/trunk/framework/common/widget/PortalPageScreens.xml (original) +++ ofbiz/trunk/framework/common/widget/PortalPageScreens.xml Tue Nov 24 22:25:17 2009 @@ -105,61 +105,63 @@ <script location="component://common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy"/> </actions> <widgets> - <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> - <screenlet title="${uiLabelMap.CommonPortalPagesForApplication}: ${parameters.parentPortalPageId}"> - <include-form name="ListPortalPages" location="component://common/widget/PortalPageForms.xml"/> - </screenlet> - <section> - <condition> - <and> - <not><if-empty field="portalPage"/></not> - <not><if-empty field="parameters.editAttributes"/></not> - </and> - </condition> - <actions> - <property-map resource="CommonUiLabels" map-name="uiLabelMap"/> - <set field="originalPortalPageId" from-field="parameters.originalPortalPageId"/> - <entity-one entity-name="PortalPortlet" value-field="portalPortlet"/> - </actions> - <widgets> - <screenlet title="${uiLabelMap.CommonEditPortletAttributes}: ${portalPortlet.portletName}"> - <include-form name="${portalPortlet.editFormName}" location="${portalPortlet.editFormLocation}"/> - </screenlet> - </widgets> - <fail-widgets> - <screenlet title="${uiLabelMap.CommonPortalNewPage}"> - <include-form name="NewPortalPage" location="component://common/widget/PortalPageForms.xml"/> - </screenlet> - </fail-widgets> - </section> - <section> - <condition> - <not><if-empty field="portalPage"/></not> - </condition> - <actions> - <set field="portalPages[]" from-field="portalPage"/> - <entity-condition entity-name="PortalPageColumn" list="portalPageColumnList"> - <condition-expr field-name="portalPageId" from-field="parameters.portalPageId"/> - <order-by field-name="columnSeqId"/> - </entity-condition> - <entity-condition entity-name="PortalPagePortletView" list="portalPagePortletViewList"> - <condition-expr field-name="portalPageId" from-field="parameters.portalPageId"/> - <order-by field-name="+columnSeqId"/> - <order-by field-name="+sequenceNum"/> - </entity-condition> - </actions> - <widgets> - <container id="portalContainerId"> - <screenlet title="${uiLabelMap.CommonPortalEditPage}: ${portalPage.portalPageName} [${portalPage.portalPageId}]"> - <link target="addPortalPageColumn" style="buttontext" text="${uiLabelMap.CommonAddColumn}"> - <parameter param-name="portalPageId" from-field="portalPage.portalPageId"/> - </link> - <platform-specific><html><html-template location="component://common/webcommon/portal/editPortalPage.ftl"/></html></platform-specific> + <container style="no-clear"> + <screenlet title="${uiLabelMap.CommonPortalPagesForApplication}: ${parameters.parentPortalPageId}"> + <include-form name="ListPortalPages" location="component://common/widget/PortalPageForms.xml"/> + </screenlet> + <section> + <condition> + <and> + <not><if-empty field="portalPage"/></not> + <not><if-empty field="parameters.editAttributes"/></not> + </and> + </condition> + <actions> + <property-map resource="CommonUiLabels" map-name="uiLabelMap"/> + <set field="originalPortalPageId" from-field="parameters.originalPortalPageId"/> + <entity-one entity-name="PortalPortlet" value-field="portalPortlet"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.CommonEditPortletAttributes}: ${portalPortlet.portletName}"> + <include-form name="${portalPortlet.editFormName}" location="${portalPortlet.editFormLocation}"/> </screenlet> - </container> - </widgets> - </section> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.CommonPortalNewPage}"> + <include-form name="NewPortalPage" location="component://common/widget/PortalPageForms.xml"/> + </screenlet> + </fail-widgets> + </section> + <section> + <condition> + <not><if-empty field="portalPage"/></not> + </condition> + <actions> + <set field="portalPages[]" from-field="portalPage"/> + <entity-condition entity-name="PortalPageColumn" list="portalPageColumnList"> + <condition-expr field-name="portalPageId" from-field="parameters.portalPageId"/> + <order-by field-name="columnSeqId"/> + </entity-condition> + <entity-condition entity-name="PortalPagePortletView" list="portalPagePortletViewList"> + <condition-expr field-name="portalPageId" from-field="parameters.portalPageId"/> + <order-by field-name="+columnSeqId"/> + <order-by field-name="+sequenceNum"/> + </entity-condition> + </actions> + <widgets> + <container id="portalContainerId"> + <screenlet title="${uiLabelMap.CommonPortalEditPage}: ${portalPage.portalPageName} [${portalPage.portalPageId}]"> + <link target="addPortalPageColumn" style="buttontext" text="${uiLabelMap.CommonAddColumn}"> + <parameter param-name="portalPageId" from-field="portalPage.portalPageId"/> + </link> + <platform-specific><html><html-template location="component://common/webcommon/portal/editPortalPage.ftl"/></html></platform-specific> + </screenlet> + </container> + </widgets> + </section> + </container> </decorator-section> </decorator-screen> </widgets> |
Free forum by Nabble | Edit this page |