svn commit: r735541 - in /ofbiz/trunk/applications/party: webapp/partymgr/includes/ widget/Menus.xml widget/partymgr/CommonScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r735541 - in /ofbiz/trunk/applications/party: webapp/partymgr/includes/ widget/Menus.xml widget/partymgr/CommonScreens.xml

buscob
Author: buscob
Date: Sun Jan 18 12:57:32 2009
New Revision: 735541

URL: http://svn.apache.org/viewvc?rev=735541&view=rev
Log:
Replaced appheader.ftl with a standard AppBar menu widget in Party application

Removed:
    ofbiz/trunk/applications/party/webapp/partymgr/includes/
Modified:
    ofbiz/trunk/applications/party/widget/Menus.xml
    ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml

Modified: ofbiz/trunk/applications/party/widget/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/Menus.xml?rev=735541&r1=735540&r2=735541&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/Menus.xml (original)
+++ ofbiz/trunk/applications/party/widget/Menus.xml Sun Jan 18 12:57:32 2009
@@ -21,6 +21,33 @@
 <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
     
+    <menu name="PartyAppBar" title="${uiLabelMap.PartyManagerApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+        <menu-item name="find" title="${uiLabelMap.CommonFind}"><link target="findparty"/></menu-item>
+        <menu-item name="create" title="${uiLabelMap.CommonCreate}">
+            <condition>
+                <if-has-permission permission="PARTYMGR" action="_CREATE"/>
+            </condition>
+            <link target="createnew"/>
+        </menu-item>
+        <menu-item name="link" title="${uiLabelMap.PartyLink}">
+            <condition>
+                <if-has-permission permission="PARTYMGR" action="_UPDATE"/>
+            </condition>
+            <link target="linkparty"/>
+        </menu-item>
+        <menu-item name="comm" title="${uiLabelMap.PartyCommunications}"><link target="FindCommunicationEvents"/></menu-item>
+        <menu-item name="visits" title="${uiLabelMap.PartyVisits}"><link target="showvisits"/></menu-item>
+        <menu-item name="classification" title="${uiLabelMap.PartyClassifications}"><link target="showclassgroups"/></menu-item>
+        <menu-item name="security" title="${uiLabelMap.CommonSecurity}">
+            <condition>
+                <if-has-permission permission="PARTYMGR" action="_VIEW"/>
+            </condition>
+            <link target="FindSecurityGroup"/>
+        </menu-item>
+        <menu-item name="addrmap" title="${uiLabelMap.PageTitleAddressMatchMap}"><link target="addressMatchMap"/></menu-item>
+        <menu-item name="partyinv" title="${uiLabelMap.PartyInvitation}"><link target="partyInvitation"/></menu-item>
+    </menu>
+
     <menu name="SecurityGroupTabBar" default-menu-item-name="EditSecurityGroup" default-selected-style="selected"
         menu-container-style="button-bar tab-bar" type="simple" selected-menuitem-context-field-name="tabButtonItem">
         <menu-item name="EditSecurityGroup" title="${uiLabelMap.PartySecurityGroups}">

Modified: ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml?rev=735541&r1=735540&r2=735541&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml Sun Jan 18 12:57:32 2009
@@ -46,7 +46,8 @@
                 <set field="layoutSettings.javaScripts[]" value="/partymgr/static/partymgr.js" global="true"/>
                 <set field="layoutSettings.styleSheets[]" value="/partymgr/static/partymgr.css" global="true"/>
                 <set field="activeApp" value="partymgr" global="true"/>
-                <set field="appheaderTemplate" value="component://party/webapp/partymgr/includes/appheader.ftl" global="true"/>
+                <set field="applicationMenuName" value="PartyAppBar" global="true"/>
+                <set field="applicationMenuLocation" value="component://party/widget/Menus.xml" global="true"/>
                 <set field="applicationTitle" value="${uiLabelMap.PartyManagerApplication}" global="true"/>
             </actions>
             <widgets>