<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#if activeOnly> ${uiLabelMap.ProductActiveAndInactive} <#else> ${uiLabelMap.ProductActiveOnly}
<#if (listSize > 0)>
<#if (viewIndex > 1)> ${uiLabelMap.CommonPrevious} | ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} <#if (listSize > highIndex)> | ${uiLabelMap.CommonNext}  
${uiLabelMap.PageTitleEditCategoryProducts}
 
<#if (listSize == 0)>
${uiLabelMap.ProductProductNameId} ${uiLabelMap.CommonFromDateTime} ${uiLabelMap.ProductThruDateTimeSequenceQuantity} ${uiLabelMap.CommonComments}  
<#else>
<#assign rowClass = "2"> <#assign rowCount = 0> <#list productCategoryMembers as productCategoryMember> <#assign suffix = "_o_" + productCategoryMember_index> <#assign product = productCategoryMember.getRelatedOne("Product")> <#assign hasntStarted = false> <#if productCategoryMember.fromDate?exists && nowTimestamp.before(productCategoryMember.getTimestamp("fromDate"))><#assign hasntStarted = true> <#assign hasExpired = false> <#if productCategoryMember.thruDate?exists && nowTimestamp.after(productCategoryMember.getTimestamp("thruDate"))><#assign hasExpired = true> class="alternate-row"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2"> <#assign rowCount = rowCount + 1>
${uiLabelMap.ProductProductNameId} ${uiLabelMap.CommonFromDateTime} ${uiLabelMap.ProductThruDateTimeSequenceQuantity} ${uiLabelMap.CommonComments}  
<#if (product.smallImageUrl)?exists> Small Image <#if product?exists>${(product.internalName)?if_exists} [${(productCategoryMember.productId)?if_exists}] style="color: red;">${(productCategoryMember.fromDate)?if_exists} <#if hasExpired><#assign class="alert"> <@htmlTemplate.renderDateTimeField name="thruDate${suffix}" event="" action="" className="${class!''}" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(productCategoryMember.thruDate)?if_exists}" size="25" maxlength="30" id="thruDate${suffix}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${uiLabelMap.CommonDelete}
<#assign rowCount = 0> <#list productCategoryMembers as productCategoryMember>
<#assign rowCount = rowCount + 1>
<#if (listSize > 0)>
<#if (viewIndex > 1)> ${uiLabelMap.CommonPrevious} | ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} <#if (listSize > highIndex)> | ${uiLabelMap.CommonNext}  
${uiLabelMap.PageTitleEditCategoryProducts}
 

${uiLabelMap.ProductAddProductCategoryMember}:

${uiLabelMap.ProductProductId} <@htmlTemplate.lookupField formName="addProductCategoryMemberForm" name="productId" id="productId" fieldFormName="LookupProduct"/>
${uiLabelMap.CommonFromDate} <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${uiLabelMap.CommonComments}

${uiLabelMap.ProductCopyProductCategoryMembersToAnotherCategory}:

${uiLabelMap.ProductTargetProductCategory} <@htmlTemplate.lookupField formName="copyCategoryProductMembersForm" name="productCategoryIdTo" id="productCategoryIdTo" fieldFormName="LookupProductCategory"/>
${uiLabelMap.ProductOptionalFilterWithDate} <@htmlTemplate.renderDateTimeField name="validDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="validDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${uiLabelMap.ProductIncludeSubCategories}

${uiLabelMap.ProductExpireAllProductMembers}:

${uiLabelMap.ProductOptionalExpirationDate} <@htmlTemplate.renderDateTimeField name="thruDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="thruDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>   

${uiLabelMap.ProductRemoveExpiredProductMembers}:

${uiLabelMap.ProductOptionalExpiredBeforeDate} <@htmlTemplate.renderDateTimeField name="validDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="validDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>