Author: jacopoc
Date: Sat Oct 6 01:23:04 2007 New Revision: 582468 URL: http://svn.apache.org/viewvc?rev=582468&view=rev Log: Improved the widget code for the party detail screen: in this way it will be easier to customize. Removed: ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=582468&r1=582467&r2=582468&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Sat Oct 6 01:23:04 2007 @@ -70,9 +70,48 @@ <widgets> <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> - <platform-specific> - <html><html-template location="component://party/webapp/partymgr/party/viewprofile.ftl"/></html> - </platform-specific> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <condition> + <if-compare field-name="showOld" operator="equals" value="true" type="Boolean"/> + </condition> + <widgets> + <container> + <link target="viewprofile?partyId=${party.partyId}" text="${uiLabelMap.PartyHideOld}" style="smallSubmit"/> + </container> + </widgets> + <fail-widgets> + <container> + <link target="viewprofile?partyId=${party.partyId}&SHOW_OLD=true" text="${uiLabelMap.PartyShowOld}" style="smallSubmit"/> + </container> + </fail-widgets> + </section> + <include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="LoyaltyPoints" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="PaymentMethods" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="AvsSettings" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="FinAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="UserLogin" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Attributes" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Visits" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Cart" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="SerializedInventory" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Subscriptions" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="ShipperAccount" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + <fail-widgets> + <container> + <label style="head3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> </decorator-section> </decorator-screen> </widgets> |
Free forum by Nabble | Edit this page |