Author: hansbak
Date: Sun Jul 6 17:16:52 2008 New Revision: 674369 URL: http://svn.apache.org/viewvc?rev=674369&view=rev Log: changed the permission check to work around the screenlet limitation Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml?rev=674369&r1=674368&r2=674369&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml Sun Jul 6 17:16:52 2008 @@ -20,18 +20,6 @@ <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd"> - - <menu name="personUpdate"> - <menu-item name="update" title="${uiLabelMap.CommonUpdate}"> - <link target="editperson?partyId=${party.partyId}"/> - </menu-item> - </menu> - <menu name="groupUpdate"> - <menu-item name="update" title="${uiLabelMap.CommonUpdate}"> - <link target="editpartygroup?partyId=${party.partyId}"/> - </menu-item> - </menu> - <menu name="ProfileTabBar" default-menu-item-name="viewprofile" default-selected-style="selected" type="simple" menu-container-style="button-bar tab-bar" selected-menuitem-context-field-name="tabButtonItem"> <menu-item name="viewprofile" title="${uiLabelMap.PartyProfile}"> @@ -172,4 +160,17 @@ <link target="PartyInvitationRoleAssocs?partyInvitationId=${partyInvitationId}"/> </menu-item> </menu> + + <menu name="personUpdate"> + <menu-item name="update" title="${uiLabelMap.CommonUpdate}"> + <link target="editperson?partyId=${party.partyId}"/> + </menu-item> + </menu> + + <menu name="groupUpdate"> + <menu-item name="update" title="${uiLabelMap.CommonUpdate}"> + <link target="editpartygroup?partyId=${party.partyId}"/> + </menu-item> + </menu> + </menus> Modified: ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml?rev=674369&r1=674368&r2=674369&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml Sun Jul 6 17:16:52 2008 @@ -40,25 +40,38 @@ <not><if-empty field-name="lookupPerson"/></not> </condition> <widgets> - <screenlet title="${uiLabelMap.PartyPersonalInformation}" navigation-menu-name="personUpdate" collapsible="true" id="PartyPersonalInformationPanel"> - <section> - <condition> - <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> - </condition> - <widgets> - <include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/> - </widgets> - </section> - <include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/> - <section> - <condition> - <not><if-empty field-name="partyNameHistoryList"/></not> - </condition> - <widgets> - <include-form name="ViewPartyPersonHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> - </widgets> - </section> - </screenlet> + <section> + <condition> + <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.PartyPersonalInformation}" navigation-menu-name="personUpdate" id="PartyPersonalInformationPanel"> + <include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/> + <include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field-name="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyPersonHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + </widgets> + </section> + </screenlet> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.PartyPersonalInformation}" id="PartyPersonalInformationPanel"> + <include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field-name="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyPersonHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + </widgets> + </section> + </screenlet> + </fail-widgets> + </section> </widgets> </section> <section> @@ -66,25 +79,38 @@ <not><if-empty field-name="lookupGroup"/></not> </condition> <widgets> - <screenlet title="${uiLabelMap.PartyPartyGroupInformation}" navigation-menu-name="groupUpdate" collapsible="true" id="PartyGroupInformationPanel"> - <section> - <condition> - <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> - </condition> - <widgets> - <include-menu name="groupUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/> - </widgets> - </section> - <include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/> - <section> - <condition> - <not><if-empty field-name="partyNameHistoryList"/></not> - </condition> - <widgets> - <include-form name="ViewPartyGroupHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> - </widgets> - </section> - </screenlet> + <section> + <condition> + <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.PartyPartyGroupInformation}" navigation-menu-name="groupUpdate" id="PartyGroupInformationPanel"> + <include-menu name="groupUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/> + <include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field-name="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyGroupHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + </widgets> + </section> + </screenlet> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.PartyPartyGroupInformation}" id="PartyGroupInformationPanel"> + <include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field-name="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyGroupHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/> + </widgets> + </section> + </screenlet> + </fail-widgets> + </section> </widgets> </section> </widgets> |
Free forum by Nabble | Edit this page |