Product component
Moved TabBar Menus from the "body" decorator-section to the "pre-body" decorator section. This makes better the rendering of themes such as Dropping Crumbs. Removed several redundant <section><widget> tags also git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883671 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -29,6 +29,20 @@ under the License.
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<!-- do check for CATALOG, _VIEW permission -->
|
||||
<condition>
|
||||
<and>
|
||||
<if-has-permission permission="CATALOG" action="_VIEW"/>
|
||||
<not><if-empty field="productCategoryId"/></not>
|
||||
</and>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="CategoryTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<!-- do check for CATALOG, _VIEW permission -->
|
||||
@@ -39,9 +53,6 @@ under the License.
|
||||
<section>
|
||||
<condition><not><if-empty field="productCategoryId"/></not></condition>
|
||||
<widgets>
|
||||
<container style="no-clear">
|
||||
<include-menu name="CategoryTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
|
||||
</container>
|
||||
<container>
|
||||
<label style="h1">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.description} [${uiLabelMap.CommonId}:${productCategoryId}] ${${extraFunctionName}}</label>
|
||||
</container>
|
||||
|
||||
@@ -65,6 +65,19 @@ under the License.
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<condition>
|
||||
<and>
|
||||
<if-has-permission permission="CATALOG" action="_VIEW"/>
|
||||
<not><if-empty field="product"/></not>
|
||||
</and>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="ProductTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<!-- do check for CATALOG, _VIEW permission -->
|
||||
@@ -75,9 +88,6 @@ under the License.
|
||||
<section>
|
||||
<condition><not><if-empty field="product"/></not></condition>
|
||||
<widgets>
|
||||
<container style="no-clear">
|
||||
<include-menu name="ProductTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
|
||||
</container>
|
||||
<container>
|
||||
<label style="h1">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${product.internalName} [${uiLabelMap.CommonId}:${productId}] ${${extraFunctionName}}</label>
|
||||
<image src="${product.smallImageUrl}" height="40" width="40" url-mode="content" alt="${product.internalName}"/>
|
||||
|
||||
@@ -58,7 +58,7 @@ under the License.
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
|
||||
@@ -73,6 +73,31 @@ under the License.
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="FacilityTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ProductErrorFacilityIdNotFound}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ProductFacilityViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<or>
|
||||
<not><if-empty field="facility"/></not>
|
||||
<not><if-empty field="displayWithNoFacility"/></not>
|
||||
</or>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
@@ -93,13 +118,22 @@ under the License.
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="FACILITY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="InventoryItemLabelsTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="FACILITY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
|
||||
@@ -29,11 +29,13 @@ under the License.
|
||||
<widgets>
|
||||
<!-- main defines the regions of the HTML page -->
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ShipmentGatewayConfigTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
|
||||
</decorator-section>
|
||||
<!-- body is the primary display for this page and is called recursively -->
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-menu name="ShipmentGatewayConfigTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
|
||||
<container>
|
||||
<label style="h1">${uiLabelMap[labelTitleProperty]}</label>
|
||||
</container>
|
||||
|
||||
Reference in New Issue
Block a user