You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2007/12/27 17:09:09 UTC
svn commit: r607080 - in /ofbiz/trunk/applications/product:
webapp/catalog/product/EditProductQuickAdmin.ftl
webapp/catalog/product/EditVirtualProductInventory.ftl
widget/catalog/ProductScreens.xml
Author: mrisaliti
Date: Thu Dec 27 08:09:08 2007
New Revision: 607080
URL: http://svn.apache.org/viewvc?rev=607080&view=rev
Log:
Quick Admin & Product Inventory forms (ftl/widgets screen) has now the same look and feel (Part of issue OFBIZ-1544)
Modified:
ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl
ofbiz/trunk/applications/product/webapp/catalog/product/EditVirtualProductInventory.ftl
ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml
Modified: ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl?rev=607080&r1=607079&r2=607080&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl Thu Dec 27 08:09:08 2007
@@ -69,7 +69,7 @@
<tr>
<td><h2>${productId?if_exists}<h2></td>
<td><input type="text" name="productName" size="40" maxlength="40" value="${product.productName?if_exists}"/></td>
- <td><input type="submit" value="${uiLabelMap.UpdateName}"/></td>
+ <td align="left"><input type="submit" value="${uiLabelMap.UpdateName}"/></td>
</tr>
</table>
</form>
@@ -82,7 +82,7 @@
<table cellspacing="0" class="basic-table">
<tr>
<td colspan="2"><h2>${uiLabelMap.SelectableFeatures}</h2></td>
- <td colspan="2">${uiLabelMap.CommonType}
+ <td colspan="2"><span class="label">${uiLabelMap.CommonType}</span>
<select name="productFeatureTypeId" onchange="javascript:document.selectableFeatureTypeSelector.submit();">
<option value="~~any~~">${uiLabelMap.AnyFeatureType}</option>
<#list featureTypes as featureType>
@@ -102,21 +102,21 @@
<input type="hidden" name="productId" value="${product.productId?if_exists}"/>
<input type="hidden" name="productFeatureTypeId" value="${(productFeatureTypeId)?if_exists}"/>
<table cellspacing="0" class="basic-table">
- <tr>
- <td>${uiLabelMap.ProductProductId}</td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td>${uiLabelMap.ProductSRCH}</td>
- <td>${uiLabelMap.ProductDL}</td>
+ <tr class="header-row">
+ <td><b>${uiLabelMap.ProductProductId}</b></td>
+ <td><b> </b></td>
+ <td><b> </b></td>
+ <td><b> </b></td>
+ <td><b>${uiLabelMap.ProductSRCH}</b></td>
+ <td><b>${uiLabelMap.ProductDL}</b></td>
</tr>
-
<#assign idx=0/>
+ <#assign rowClass = "2">
<#list productAssocs as productAssoc>
<#assign assocProduct = productAssoc.getRelatedOne("AssocProduct")/>
<input type="hidden" name="productId${idx}" value="${assocProduct.productId?if_exists}"/>
- <tr>
- <td nowrap><a class="buttontext" href="<@o...@ofbizUrl>">[${assocProduct.productId?if_exists}]</a></td>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <td nowrap><a class="buttontext" href="<@o...@ofbizUrl>">${assocProduct.productId?if_exists}</a></td>
<td width="100%"><a class="buttontext" href="<@o...@ofbizUrl>">${assocProduct.internalName?if_exists}</a></td>
<td colspan="2">
<input name="description${idx}" size="70" maxlength="100" value="${selFeatureDesc[assocProduct.productId]?if_exists}"/>
@@ -128,16 +128,22 @@
</#if>
<td><input type="radio" ${checked} name="useImages" value="${assocProduct.productId}"/></td>
<#assign fromDate = Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(productAssoc.getTimestamp("fromDate").toString())/>
- <td><a class="buttontext" href="javascript:removeAssoc('${productAssoc.productIdTo}','${fromDate}');">[x]</a></td>
+ <td><a class="buttontext" href="javascript:removeAssoc('${productAssoc.productIdTo}','${fromDate}');">x</a></td>
</tr>
<#assign idx = idx + 1/>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
<tr>
<td colspan="2"> </td>
<td>
<table cellspacing="0" class="basic-table">
<#list selectableFeatureTypes as selectableFeatureType>
- <tr><td><a class="buttontext" href="javascript:removeSelectable('${(selectableFeatureType.get("description",locale))?if_exists}','${selectableFeatureType.productFeatureTypeId}','${product.productId}')">[x]</a>
+ <tr><td><a class="buttontext" href="javascript:removeSelectable('${(selectableFeatureType.get("description",locale))?if_exists}','${selectableFeatureType.productFeatureTypeId}','${product.productId}')">x</a>
<a class="buttontext" href="<@o...@ofbizUrl>">${(selectableFeatureType.get("description",locale))?if_exists}</a></td></tr>
</#list>
</table>
@@ -156,20 +162,28 @@
<form action="<@o...@ofbizUrl>" method="post" style="margin: 0;" name="distFeature">
<input type="hidden" name="productId" value="${product.productId?if_exists}"/>
<table cellspacing="0" class="basic-table">
- <tr>
+ <tr class="header-row">
<td colspan="3"><h2>${uiLabelMap.DistinguishingFeatures}</h2></td>
</tr>
- <tr>
- <td>${uiLabelMap.ProductProductId}</td>
- <td> </td>
- <td> </td>
+ <tr class="header-row">
+ <td><b>${uiLabelMap.ProductProductId}</b></td>
+ <td><b> </b></td>
+ <td><b> </b></td>
</tr>
<#assign idx=0/>
+ <#assign rowClass = "2">
<#list distinguishingFeatures as distinguishingFeature>
- <tr>
- <td><a href="<@o...@ofbizUrl>">[x]</a></td>
- <td>[${distinguishingFeature.productFeatureId}] ${productFeatureTypeLookup.get(distinguishingFeature.productFeatureId).get("description",locale)}: ${distinguishingFeature.get("description",locale)} </td>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <td><a href="<@o...@ofbizUrl>">x</a></td>
+ <td>${distinguishingFeature.productFeatureId} ${productFeatureTypeLookup.get(distinguishingFeature.productFeatureId).get("description",locale)}: ${distinguishingFeature.get("description",locale)} </td>
+ <td> </td>
</tr>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
</table>
@@ -181,48 +195,53 @@
<!-- ***************************************************** Shipping dimensions section -->
<br/>
- <form action="<@o...@ofbizUrl>" method="post" style="margin: 0;" name="updateShipping">
+ <form action="<@o...@ofbizUrl>" method="post" name="updateShipping">
<input type="hidden" name="productId" value="${product.productId?if_exists}"/>
<input type="hidden" name="heightUomId" value="LEN_in"/>
<input type="hidden" name="widthUomId" value="LEN_in"/>
<input type="hidden" name="depthUomId" value="LEN_in"/>
<input type="hidden" name="weightUomId" value="WT_oz"/>
<table cellspacing="0" class="basic-table">
- <tr>
+ <tr class="header-row">
<td colspan=2><h2>${uiLabelMap.ShippingDimensionsAndWeights}</h2></td>
- <td>${uiLabelMap.ProductProductHeight}</td>
- <td>${uiLabelMap.ProductProductWidth}</td>
- <td>${uiLabelMap.ProductProductDepth}</td>
- <td>${uiLabelMap.ProductWeight}</td>
- <td>${uiLabelMap.ProductFlOz}</td>
- <td>${uiLabelMap.ProductML}</td>
- <td>${uiLabelMap.ProductNtWt}</td>
- <td>${uiLabelMap.ProductGrams}</td>
- <td>${uiLabelMap.ProductHZ}</td>
- <td>${uiLabelMap.ProductST}</td>
- <td>${uiLabelMap.ProductTD}</td>
+ <td><b>${uiLabelMap.ProductProductHeight}</b></td>
+ <td><b>${uiLabelMap.ProductProductWidth}</b></td>
+ <td><b>${uiLabelMap.ProductProductDepth}</b></td>
+ <td><b>${uiLabelMap.ProductWeight}</b></td>
+ <td><b>${uiLabelMap.ProductFlOz}</b></td>
+ <td><b>${uiLabelMap.ProductML}</b></td>
+ <td><b>${uiLabelMap.ProductNtWt}</b></td>
+ <td><b>${uiLabelMap.ProductGrams}</b></td>
+ <td><b>${uiLabelMap.ProductHZ}</b></td>
+ <td><b>${uiLabelMap.ProductST}</b></td>
+ <td><b>${uiLabelMap.ProductTD}</b></td>
</tr>
-
<#if (product.isVirtual)?if_exists == "Y">
<#assign idx=0/>
+ <#assign rowClass = "2">
<#list assocProducts as assocProduct>
- <tr>
- <td nowrap>[${assocProduct.productId?if_exists}]</td>
- <td width="100%">${assocProduct.internalName?if_exists}</td>
- <input type="hidden" name="productId${idx}" value="${assocProduct.productId?if_exists}"/>
- <td><input name="productHeight${idx}" size="6" maxlength="20" value="${assocProduct.productHeight?if_exists}"/></td>
- <td><input name="productWidth${idx}" size="6" maxlength="20" value="${assocProduct.productWidth?if_exists}"/></td>
- <td><input name="productDepth${idx}" size="6" maxlength="20" value="${assocProduct.productDepth?if_exists}"/></td>
- <td><input name="weight${idx}" size="6" maxlength="20" value="${assocProduct.weight?if_exists}"/></td>
- <td><input name="~floz${idx}" size="6" maxlength="20" value="${featureFloz.get(assocProduct.productId)?if_exists}"/></td>
- <td><input name="~ml${idx}" size="6" maxlength="20" value="${featureMl.get(assocProduct.productId)?if_exists}"/></td>
- <td><input name="~ntwt${idx}" size="6" maxlength="20" value="${featureNtwt.get(assocProduct.productId)?if_exists}"/></td>
- <td><input name="~grams${idx}" size="6" maxlength="20" value="${featureGrams.get(assocProduct.productId)?if_exists}"/></td>
- <td><a class="buttontext" href="<@o...@ofbizUrl>">[${featureHazmat.get(assocProduct.productId)?if_exists}]</a></td>
- <td><a class="buttontext" href="<@o...@ofbizUrl>">${featureSalesThru.get(assocProduct.productId)?if_exists}</a></td>
- <td><a class="buttontext" href="<@o...@ofbizUrl>">${featureThruDate.get(assocProduct.productId)?if_exists}</a></td>
- </tr>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <td nowrap>${assocProduct.productId?if_exists}</td>
+ <td width="100%">${assocProduct.internalName?if_exists}<input type="hidden" name="productId${idx}" value="${assocProduct.productId?if_exists}"/></td>
+ <td><input name="productHeight${idx}" size="6" maxlength="20" value="${assocProduct.productHeight?if_exists}"/></td>
+ <td><input name="productWidth${idx}" size="6" maxlength="20" value="${assocProduct.productWidth?if_exists}"/></td>
+ <td><input name="productDepth${idx}" size="6" maxlength="20" value="${assocProduct.productDepth?if_exists}"/></td>
+ <td><input name="weight${idx}" size="6" maxlength="20" value="${assocProduct.weight?if_exists}"/></td>
+ <td><input name="~floz${idx}" size="6" maxlength="20" value="${featureFloz.get(assocProduct.productId)?if_exists}"/></td>
+ <td><input name="~ml${idx}" size="6" maxlength="20" value="${featureMl.get(assocProduct.productId)?if_exists}"/></td>
+ <td><input name="~ntwt${idx}" size="6" maxlength="20" value="${featureNtwt.get(assocProduct.productId)?if_exists}"/></td>
+ <td><input name="~grams${idx}" size="6" maxlength="20" value="${featureGrams.get(assocProduct.productId)?if_exists}"/></td>
+ <td><a class="buttontext" href="<@o...@ofbizUrl>">${featureHazmat.get(assocProduct.productId)?if_exists}</a></td>
+ <td><a class="buttontext" href="<@o...@ofbizUrl>">${featureSalesThru.get(assocProduct.productId)?if_exists}</a></td>
+ <td><a class="buttontext" href="<@o...@ofbizUrl>">${featureThruDate.get(assocProduct.productId)?if_exists}</a></td>
+ </tr>
<#assign idx = idx + 1/>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
<tr>
<td colspan=10 align="right"><input name="applyToAll" type="submit" value="${uiLabelMap.ApplyToAll}"/>
@@ -240,7 +259,7 @@
<td><input name="~ml" size="6" maxlength="20" value="${ml?if_exists}"></td>
<td><input name="~ntwt" size="6" maxlength="20" value="${ntwt?if_exists}"></td>
<td><input name="~grams" size="6" maxlength="20" value="${grams?if_exists}"></td>
- <td><a class="buttontext" href="<@o...@ofbizUrl>">[${hazmat?if_exists}]</a></td>
+ <td><a class="buttontext" href="<@o...@ofbizUrl>">${hazmat?if_exists}</a></td>
<td><a class="buttontext" href="<@o...@ofbizUrl>">${salesthru?if_exists}</a></td>
<td><a class="buttontext" href="<@o...@ofbizUrl>">${thrudate?if_exists}</a></td>
</tr>
@@ -258,16 +277,17 @@
<table cellspacing="0" class="basic-table">
<tr>
<td>
- <form method="post" action="<@o...@ofbizUrl>" style="margin: 0;" name="addFeatureById">
+ <form method="post" action="<@o...@ofbizUrl>" name="addFeatureById">
<input type="hidden" name="productId" value="${product.productId?if_exists}"/>
<input type="hidden" name="productFeatureApplTypeId" value="STANDARD_FEATURE"/>
<input type="hidden" name="fromDate" value="${nowTimestampString}"/>
<table cellspacing="0" class="basic-table">
- <tr>
- <td colspan=2><h2>${uiLabelMap.StandardFeatures}</h2></td>
+ <tr class="header-row">
+ <td colspan="2"><h2>${uiLabelMap.StandardFeatures}</h2></td>
</tr>
+ <#assign rowClass = "2">
<#list addedFeatureTypeIds as addedFeatureTypeId>
- <tr>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
<td align="right">${addedFeatureTypes.get(addedFeatureTypeId).description}</td>
<td>
<select name="productFeatureId">
@@ -278,22 +298,34 @@
</select>
</td>
</tr>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
- <tr><td colspan=2 align="right"><input type="submit" value="${uiLabelMap.AddFeatures}"/></td></tr>
-
+ <tr><td colspan="2" align="right"><input type="submit" value="${uiLabelMap.AddFeatures}"/></td></tr>
</table>
</form>
</td>
<td width="20"> </td>
<td valign="top">
<table cellspacing="0" class="basic-table">
+ <#assign rowClass = "2">
<#list standardFeatureAppls as standardFeatureAppl>
<#assign featureId = standardFeatureAppl.productFeatureId/>
- <tr>
- <td><a href='<@o...@ofbizUrl>' class="buttontext">[x]</a></td>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <td><a href='<@o...@ofbizUrl>' class="buttontext">x</a></td>
<td>${productFeatureTypeLookup.get(featureId).description}:
${standardFeatureLookup.get(featureId).description}</td>
</tr>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
</table>
</td>
@@ -311,7 +343,7 @@
<#list featureTypes as featureType>
<option value="${featureType.productFeatureTypeId?if_exists}">${featureType.get("description",locale)?if_exists}
</#list>
- </select>
+ </select>
</td>
<td><input type="submit" value="${uiLabelMap.AddFeatureType}"/></td>
</tr>
@@ -333,7 +365,7 @@
<td>
<select multiple="true" name="categoryId">
<#list allCategories as category>
- <option value="${category.productCategoryId?if_exists}">${category.description?if_exists} [${category.productCategoryId}]</option>
+ <option value="${category.productCategoryId?if_exists}">${category.description?if_exists} ${category.productCategoryId}</option>
</#list>
</select>
</td>
@@ -341,12 +373,19 @@
</table>
<td valign="top">
<table cellspacing="0" class="basic-table">
+ <#assign rowClass = "2">
<#list productCategoryMembers as prodCatMemb>
<#assign prodCat = prodCatMemb.getRelatedOne("ProductCategory")/>
- <tr>
- <td><a href='<@o...@ofbizUrl>' class="buttontext">[x]</a></td>
- <td>${prodCat.description?if_exists} [${prodCat.productCategoryId}]</td>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <td><a href='<@o...@ofbizUrl>' class="buttontext">x</a></td>
+ <td>${prodCat.description?if_exists} ${prodCat.productCategoryId}</td>
</tr>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
</table>
</td>
@@ -365,15 +404,13 @@
<form action="<@o...@ofbizUrl>" name="publish">
<input type="hidden" name="productId" value="${product.productId?if_exists}"/>
<input type="hidden" name="categoryId" value="${allCategoryId?if_exists}"/>
- <input type="text" size="25" name="fromDate"/>
<table cellspacing="0" class="basic-table">
<tr>
<td>
+ <input type="text" size="25" name="fromDate"/>
<a href="javascript:call_cal(document.publish.fromDate,'${nowTimestampString}');">
<img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/>
</a>
- </td>
- <td>
<input type=button value="${uiLabelMap.PublishAndView}" onClick="doPublish();"/>
</td>
</tr>
@@ -390,8 +427,8 @@
<a href="javascript:call_cal(document.unpublish.thruDate,'${nowTimestampString}');">
<img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/>
</a>
+ <input type="submit" value="${uiLabelMap.RemoveFromSite}"/>
</td>
- <td><input type="submit" value="${uiLabelMap.RemoveFromSite}"/></td>
</tr>
</table>
</form>
@@ -401,5 +438,5 @@
<!-- **************************************************** end - publish section -->
<#else>
- <h3>${uiLabelMap.ProductProductNotFound} [${productId?if_exists}]</h3>
+ <h3>${uiLabelMap.ProductProductNotFound} ${productId?if_exists}</h3>
</#if>
Modified: ofbiz/trunk/applications/product/webapp/catalog/product/EditVirtualProductInventory.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/EditVirtualProductInventory.ftl?rev=607080&r1=607079&r2=607080&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/product/EditVirtualProductInventory.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/product/EditVirtualProductInventory.ftl Thu Dec 27 08:09:08 2007
@@ -26,8 +26,9 @@
<td>${uiLabelMap.ProductQoh}</td>
<td>${uiLabelMap.ProductAtp}</td>
</tr>
+ <#assign rowClass = "2">
<#list variantInventorySummaries as variantSummary>
- <tr>
+ <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
<td><a href="/catalog/control/EditProductInventoryItems?productId=${variantSummary.productId}" class="buttontext">${variantSummary.productId}</a></td>
<#list featureTypeIds as featureTypeId>
<td>${(variantSummary[featureTypeId].description)?default(featureTypeId)}</td>
@@ -35,5 +36,11 @@
<td>${variantSummary.quantityOnHandTotal}</td>
<td>${variantSummary.availableToPromiseTotal}</td>
</tr>
+ <#-- toggle the row color -->
+ <#if rowClass == "2">
+ <#assign rowClass = "1">
+ <#else>
+ <#assign rowClass = "2">
+ </#if>
</#list>
</table>
Modified: ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml?rev=607080&r1=607079&r2=607080&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml Thu Dec 27 08:09:08 2007
@@ -504,9 +504,22 @@
<widgets>
<decorator-screen name="CommonProductDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
- <platform-specific>
- <html><html-template location="component://product/webapp/catalog/product/QuickAddVariants.ftl"/></html>
- </platform-specific>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <container style="head4">
+ <label text="${uiLabelMap.PageTitleEditProductQuickAdmin}"/>
+ </container>
+ </container>
+ <container style="screenlet-body">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://product/webapp/catalog/product/QuickAddVariants.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </container>
+ </container>
</decorator-section>
</decorator-screen>
</widgets>
@@ -724,55 +737,41 @@
<widgets>
<decorator-screen name="CommonProductDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
- <section>
- <condition>
- <if-compare field-name="product.isVirtual" operator="equals" type="String" value="Y"/>
- </condition>
- <widgets>
- <container style="screenlet-title-bar">
- <container style="head4">
- <label text="${uiLabelMap.ProductVariantProductInventorySummary}"/>
- </container>
- </container>
- <container style="screenlet-body">
- <section>
- <widgets>
- <platform-specific>
- <html><html-template location="component://product/webapp/catalog/product/EditVirtualProductInventory.ftl"/></html>
- </platform-specific>
- </widgets>
- </section>
- </container>
- </widgets>
- <fail-widgets>
- <container style="screenlet-title-bar">
- <container style="head4">
- <label text="${uiLabelMap.ProductInventorySummary}"/>
- </container>
- </container>
- <container style="screenlet-body">
- <section>
- <widgets>
- <platform-specific>
- <html><html-template location="component://product/webapp/catalog/product/EditProductInventoryItems.ftl"/></html>
- </platform-specific>
- </widgets>
- </section>
- </container>
- <container style="screenlet-title-bar">
- <container style="head4">
- <label text="${uiLabelMap.ProductOutstandingPurchaseOrders}"/>
- </container>
- </container>
- <container style="screenlet-body">
- <section>
- <widgets>
- <include-form name="OutstandingPurchaseOrders" location="component://product/webapp/catalog/product/ProductForms.xml"/>
- </widgets>
- </section>
- </container>
- </fail-widgets>
- </section>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <container style="head4">
+ <section>
+ <condition>
+ <if-compare field-name="product.isVirtual" operator="equals" type="String" value="Y"/>
+ </condition>
+ <widgets>
+ <label text="${uiLabelMap.ProductVariantProductInventorySummary}"/>
+ </widgets>
+ <fail-widgets>
+ <label text="${uiLabelMap.ProductInventorySummary}"/>
+ </fail-widgets>
+ </section>
+ </container>
+ </container>
+ <container style="screenlet-body">
+ <section>
+ <condition>
+ <if-compare field-name="product.isVirtual" operator="equals" type="String" value="Y"/>
+ </condition>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://product/webapp/catalog/product/EditVirtualProductInventory.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ <fail-widgets>
+ <platform-specific>
+ <html><html-template location="component://product/webapp/catalog/product/EditProductInventoryItems.ftl"/></html>
+ </platform-specific>
+ <include-form name="OutstandingPurchaseOrders" location="component://product/webapp/catalog/product/ProductForms.xml"/>
+ </fail-widgets>
+ </section>
+ </container>
+ </container>
</decorator-section>
</decorator-screen>
</widgets>