svn commit: r735542 - in /ofbiz/trunk/applications/product: webapp/facility/includes/ widget/facility/CommonScreens.xml widget/facility/Menus.xml

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

svn commit: r735542 - in /ofbiz/trunk/applications/product: webapp/facility/includes/ widget/facility/CommonScreens.xml widget/facility/Menus.xml

buscob
Author: buscob
Date: Sun Jan 18 12:58:39 2009
New Revision: 735542

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

Removed:
    ofbiz/trunk/applications/product/webapp/facility/includes/
Modified:
    ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml
    ofbiz/trunk/applications/product/widget/facility/Menus.xml

Modified: ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml?rev=735542&r1=735541&r2=735542&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml Sun Jan 18 12:58:39 2009
@@ -38,7 +38,8 @@
                 <!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
                 <!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
                 <set field="activeApp" value="facilitymgr" global="true"/>
-                <set field="appheaderTemplate" value="component://product/webapp/facility/includes/appheader.ftl" global="true"/>
+                <set field="applicationMenuName" value="FacilityAppBar" global="true"/>
+                <set field="applicationMenuLocation" value="component://product/widget/facility/Menus.xml" global="true"/>
                 <set field="applicationTitle" value="${uiLabelMap.ProductFacilityManagerApplication}" global="true"/>
             </actions>
             <widgets>

Modified: ofbiz/trunk/applications/product/widget/facility/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/Menus.xml?rev=735542&r1=735541&r2=735542&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/Menus.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/Menus.xml Sun Jan 18 12:58:39 2009
@@ -21,6 +21,19 @@
 <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
     
+    <menu name="FacilityAppBar" title="${uiLabelMap.ProductFacilityManagerApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+        <menu-item name="facility" title="${uiLabelMap.ProductFacilities}"><link target="FindFacility"/></menu-item>
+        <menu-item name="facilityGroup" title="${uiLabelMap.ProductFacilityGroups}"><link target="FindFacilityGroup"/></menu-item>
+        <menu-item name="inventoryItemLabel" title="${uiLabelMap.ProductInventoryItemLabels}"><link target="FindInventoryItemLabels"/></menu-item>
+        <menu-item name="shipment" title="${uiLabelMap.ProductShipments}"><link target="FindShipment"/></menu-item>
+        <menu-item name="reports" title="${uiLabelMap.CommonReports}">
+            <condition>
+                <not><if-empty field-name="facilityId"/></not>
+            </condition>
+            <link target="InventoryReports?facilityId=${facilityId}"/>
+        </menu-item>
+    </menu>
+
     <menu name="FacilityTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
           default-menu-item-name="EditFacility">
         <menu-item name="EditFacility" title="${uiLabelMap.ProductFacility}">