Author: mrisaliti
Date: Sun Jan 13 06:30:24 2008 New Revision: 611579 URL: http://svn.apache.org/viewvc?rev=611579&view=rev Log: Different version of the ProductTabBar.ftl to avoid bad titles on UI after the tab bar. Modified: ofbiz/trunk/applications/product/webapp/catalog/product/ProductTabBar.ftl Modified: ofbiz/trunk/applications/product/webapp/catalog/product/ProductTabBar.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/ProductTabBar.ftl?rev=611579&r1=611578&r2=611579&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/product/ProductTabBar.ftl (original) +++ ofbiz/trunk/applications/product/webapp/catalog/product/ProductTabBar.ftl Sun Jan 13 06:30:24 2008 @@ -18,50 +18,50 @@ --> <#if (requestAttributes.uiLabelMap)?exists><#assign uiLabelMap = requestAttributes.uiLabelMap></#if> -<#assign unselectedClassName = ""> -<#assign selectedClassMap = {page.tabButtonItem?default("void") : "selected"}> +<#assign selected = tabButtonItem?default("void")> <#if product?has_content> <br/> <div class="button-bar tab-bar"> <ul> - <li><a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProduct?default(unselectedClassName)}">${uiLabelMap.ProductProduct}</a><li> - <li><a href="<@ofbizUrl>EditProductPrices?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductPrices?default(unselectedClassName)}">${uiLabelMap.ProductPrices}</a><li> - <li><a href="<@ofbizUrl>EditProductContent?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductContent?default(unselectedClassName)}">${uiLabelMap.ProductContent}</a><li> - <li><a href="<@ofbizUrl>EditProductGeos?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductGeos?default(unselectedClassName)}">${uiLabelMap.CommonGeos}</a><li> - <li><a href="<@ofbizUrl>EditProductGoodIdentifications?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductGoodIdentifications?default(unselectedClassName)}">${uiLabelMap.CommonIds}</a><li> - <li><a href="<@ofbizUrl>EditProductCategories?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductCategories?default(unselectedClassName)}">${uiLabelMap.ProductCategories}</a><li> - <li><a href="<@ofbizUrl>EditProductKeyword?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductKeyword?default(unselectedClassName)}">${uiLabelMap.ProductKeywords}</a><li> - <li><a href="<@ofbizUrl>EditProductAssoc?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductAssoc?default(unselectedClassName)}">${uiLabelMap.ProductAssociations}</a><li> - <li><a href="<@ofbizUrl>ViewProductManufacturing?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.ViewProductManufacturing?default(unselectedClassName)}">${uiLabelMap.ProductManufacturing}</a><li> - <li><a href="<@ofbizUrl>EditProductCosts?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductCosts?default(unselectedClassName)}">${uiLabelMap.ProductCosts}</a><li> - <li><a href="<@ofbizUrl>EditProductAttributes?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductAttributes?default(unselectedClassName)}">${uiLabelMap.ProductAttributes}</a><li> - <li><a href="<@ofbizUrl>EditProductFeatures?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductFeatures?default(unselectedClassName)}">${uiLabelMap.ProductFeatures}</a><li> - <li><a href="<@ofbizUrl>EditProductFacilities?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductFacilities?default(unselectedClassName)}">${uiLabelMap.ProductFacilities}</a><li> - <li><a href="<@ofbizUrl>EditProductFacilityLocations?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductFacilityLocations?default(unselectedClassName)}">${uiLabelMap.ProductLocations}</a><li> - <li><a href="<@ofbizUrl>EditProductInventoryItems?productId=${productId}&showAllFacilities=Y</@ofbizUrl>" class="${selectedClassMap.EditProductInventoryItems?default(unselectedClassName)}">${uiLabelMap.ProductInventory}</a><li> - <li><a href="<@ofbizUrl>EditProductSuppliers?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditSupplierProduct?default(unselectedClassName)}">${uiLabelMap.ProductVendorProduct}</a><li> - <li><a href="<@ofbizUrl>ViewProductAgreements?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.ViewProductAgreements?default(unselectedClassName)}">${uiLabelMap.ProductAgreements}</a><li> - <li><a href="<@ofbizUrl>EditProductGlAccounts?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductGlAccounts?default(unselectedClassName)}">${uiLabelMap.ProductAccounts}</a><li> - <li><a href="<@ofbizUrl>EditProductPaymentMethodTypes?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductPaymentMethodTypes?default(unselectedClassName)}">${uiLabelMap.ProductPaymentTypes}</a><li> - <li><a href="<@ofbizUrl>EditProductMaints?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductMaints?default(unselectedClassName)}">${uiLabelMap.ProductMaintenance}</a><li> - <li><a href="<@ofbizUrl>EditProductMeters?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductMeters?default(unselectedClassName)}">${uiLabelMap.ProductMeters}</a><li> - <li><a href="<@ofbizUrl>EditProductSubscriptionResources?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductSubscriptionResources?default(unselectedClassName)}">${uiLabelMap.ProductSubscriptionResources}</a><li> - <li><a href="<@ofbizUrl>EditProductQuickAdmin?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductQuickAdmin?default(unselectedClassName)}">${uiLabelMap.ProductQuickAdmin}</a><li> - <li><a href="<@ofbizUrl>EditVendorProduct?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditVendorProduct?default(unselectedClassName)}">${uiLabelMap.PartyVendor}</a><li> + <li<#if selected="EditProduct"> class="selected"</#if>><a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductProduct}</a><li> + <li<#if selected="EditProductPrices"> class="selected"</#if>><a href="<@ofbizUrl>EditProductPrices?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductPrices}</a><li> + <li<#if selected="EditProductContent"> class="selected"</#if>><a href="<@ofbizUrl>EditProductContent?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductContent}</a><li> + <li<#if selected="EditProductGeos"> class="selected"</#if>><a href="<@ofbizUrl>EditProductGeos?productId=${productId}</@ofbizUrl>">${uiLabelMap.CommonGeos}</a><li> + <li<#if selected="EditProductGoodIdentifications"> class="selected"</#if>><a href="<@ofbizUrl>EditProductGoodIdentifications?productId=${productId}</@ofbizUrl>">${uiLabelMap.CommonIds}</a><li> + <li<#if selected="EditProductCategories"> class="selected"</#if>><a href="<@ofbizUrl>EditProductCategories?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductCategories}</a><li> + <li<#if selected="EditProductKeyword"> class="selected"</#if>><a href="<@ofbizUrl>EditProductKeyword?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductKeywords}</a><li> + <li<#if selected="EditProductAssoc"> class="selected"</#if>><a href="<@ofbizUrl>EditProductAssoc?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductAssociations}</a><li> + <li<#if selected="ViewProductManufacturing"> class="selected"</#if>><a href="<@ofbizUrl>ViewProductManufacturing?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductManufacturing}</a><li> + <li<#if selected="EditProductCosts"> class="selected"</#if>><a href="<@ofbizUrl>EditProductCosts?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductCosts}</a><li> + <li<#if selected="EditProductAttributes"> class="selected"</#if>><a href="<@ofbizUrl>EditProductAttributes?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductAttributes}</a><li> + <li<#if selected="EditProductFeatures"> class="selected"</#if>><a href="<@ofbizUrl>EditProductFeatures?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductFeatures}</a><li> + <li<#if selected="EditProductFacilities"> class="selected"</#if>><a href="<@ofbizUrl>EditProductFacilities?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductFacilities}</a><li> + <li<#if selected="EditProductFacilityLocations"> class="selected"</#if>><a href="<@ofbizUrl>EditProductFacilityLocations?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductLocations}</a><li> + <li<#if selected="EditProductInventoryItems"> class="selected"</#if>><a href="<@ofbizUrl>EditProductInventoryItems?productId=${productId}&showAllFacilities=Y</@ofbizUrl>">${uiLabelMap.ProductInventory}</a><li> + <li<#if selected="EditSupplierProduct"> class="selected"</#if>><a href="<@ofbizUrl>EditProductSuppliers?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductVendorProduct}</a><li> + <li<#if selected="ViewProductAgreements"> class="selected"</#if>><a href="<@ofbizUrl>ViewProductAgreements?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductAgreements}</a><li> + <li<#if selected="EditProductGlAccounts"> class="selected"</#if>><a href="<@ofbizUrl>EditProductGlAccounts?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductAccounts}</a><li> + <li<#if selected="EditProductPaymentMethodTypes"> class="selected"</#if>><a href="<@ofbizUrl>EditProductPaymentMethodTypes?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductPaymentTypes}</a><li> + <li<#if selected="EditProductMaints"> class="selected"</#if>><a href="<@ofbizUrl>EditProductMaints?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductMaintenance}</a><li> + <li<#if selected="EditProductMeters"> class="selected"</#if>><a href="<@ofbizUrl>EditProductMeters?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductMeters}</a><li> + <li<#if selected="EditProductSubscriptionResources"> class="selected"</#if>><a href="<@ofbizUrl>EditProductSubscriptionResources?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductSubscriptionResources}</a><li> + <li<#if selected="EditProductQuickAdmin"> class="selected"</#if>><a href="<@ofbizUrl>EditProductQuickAdmin?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductQuickAdmin}</a><li> + <li<#if selected="EditVendorProduct"> class="selected"</#if>><a href="<@ofbizUrl>EditVendorProduct?productId=${productId}</@ofbizUrl>">${uiLabelMap.PartyVendor}</a><li> <#if product?exists && product.isVirtual?if_exists == "Y"> - <li><a href="<@ofbizUrl>QuickAddVariants?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.QuickAddVariants?default(unselectedClassName)}">${uiLabelMap.ProductVariants}</a><li> + <li<#if selected="QuickAddVariants"> class="selected"</#if>><a href="<@ofbizUrl>QuickAddVariants?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductVariants}</a><li> </#if> <#if product?exists && product.productTypeId?if_exists == "AGGREGATED"> - <li><a href="<@ofbizUrl>EditProductConfigs?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductConfigs?default(unselectedClassName)}">${uiLabelMap.ProductConfigs}</a><li> + <li<#if selected="EditProductConfigs"> class="selected"</#if>><a href="<@ofbizUrl>EditProductConfigs?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductConfigs}</a><li> </#if> <#if product?exists && product.productTypeId?if_exists == "ASSET_USAGE"> - <li><a href="<@ofbizUrl>EditProductAssetUsage?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductAssetUsage?default(unselectedClassName)}">${uiLabelMap.ProductAssetUsage}</a><li> + <li<#if selected="EditProductAssetUsage"> class="selected"</#if>><a href="<@ofbizUrl>EditProductAssetUsage?productId=${productId}</@ofbizUrl>">${uiLabelMap.ProductAssetUsage}</a><li> </#if> - <li><a href="<@ofbizUrl>EditProductWorkEfforts?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductWorkEfforts?default(unselectedClassName)}">${uiLabelMap.WorkEffortWorkEffort}</a><li> - <li><a href="<@ofbizUrl>EditProductParties?productId=${productId}</@ofbizUrl>" class="${selectedClassMap.EditProductParties?default(unselectedClassName)}">${uiLabelMap.PartyParties}</a><li> + <li<#if selected="EditProductWorkEfforts"> class="selected"</#if>><a href="<@ofbizUrl>EditProductWorkEfforts?productId=${productId}</@ofbizUrl>">${uiLabelMap.WorkEffortWorkEffort}</a><li> + <li<#if selected="EditProductParties"> class="selected"</#if>><a href="<@ofbizUrl>EditProductParties?productId=${productId}</@ofbizUrl>">${uiLabelMap.PartyParties}</a><li> </ul> <br/> </div> -</#if> + <br/> +</#if> \ No newline at end of file |
Free forum by Nabble | Edit this page |