<#-- 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 productCategoryId?has_content>

${uiLabelMap.ProductCategoryRollupParentCategories}

<#if currentProductCategoryRollups.size() == 0>
${uiLabelMap.ProductParentCategoryId} ${uiLabelMap.CommonFromDate} ${uiLabelMap.ProductThruDateTimeSequence}  
${uiLabelMap.ProductNoParentCategoriesFound}.
<#else>
<#assign rowClass = "2"> <#list currentProductCategoryRollups as productCategoryRollup> <#assign suffix = "_o_" + productCategoryRollup_index> <#assign curCategory = productCategoryRollup.getRelatedOne("ParentProductCategory")> <#assign hasntStarted = false> <#if productCategoryRollup.fromDate?exists && nowTimestamp.before(productCategoryRollup.getTimestamp("fromDate"))><#assign hasntStarted = true> <#assign hasExpired = false> <#if productCategoryRollup.thruDate?exists && nowTimestamp.after(productCategoryRollup.getTimestamp("thruDate"))><#assign hasExpired = true> class="alternate-row"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductParentCategoryId} ${uiLabelMap.CommonFromDate} ${uiLabelMap.ProductThruDateTimeSequence}  
<#if curCategory?has_content> <#assign catContentWrapper = Static["org.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(curCategory, request)?if_exists> <#if catContentWrapper?has_content> ${catContentWrapper.get("CATEGORY_NAME")!catContentWrapper.get("DESCRIPTION")!curCategory.categoryName!curCategory.description!} <#else> ${curCategory.categoryName!curCategory.description!} [${curCategory.productCategoryId}] style="color: red;">${productCategoryRollup.fromDate} <@htmlTemplate.renderDateTimeField name="thruDate${suffix}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${productCategoryRollup.thruDate!''}" size="25" maxlength="30" id="thruDate_1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> ${uiLabelMap.CommonDelete}
<#list currentProductCategoryRollups as productCategoryRollup>

${uiLabelMap.ProductAddCategoryParent} ${uiLabelMap.ProductCategorySelectCategoryAndEnterFromDate}:

<@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID?if_exists}" formName="addParentForm" name="parentProductCategoryId" id="parentProductCategoryId" fieldFormName="LookupProductCategory"/> <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate_1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>

${uiLabelMap.ProductCategoryRollupChildCategories}

<#if parentProductCategoryRollups.size() == 0>
${uiLabelMap.ProductChildCategoryId} ${uiLabelMap.CommonFromDate} ${uiLabelMap.ProductThruDateTimeSequence}  
${uiLabelMap.ProductNoChildCategoriesFound}.
<#else>
<#assign lineChild = 0> <#assign rowClass = "2"> <#list parentProductCategoryRollups as productCategoryRollup> <#assign suffix = "_o_" + lineChild> <#assign lineChild = lineChild + 1> <#assign curCategory = productCategoryRollup.getRelatedOne("CurrentProductCategory")> <#assign hasntStarted = false> <#if productCategoryRollup.fromDate?exists && nowTimestamp.before(productCategoryRollup.getTimestamp("fromDate"))><#assign hasntStarted = true> <#assign hasExpired = false> <#if productCategoryRollup.thruDate?exists && nowTimestamp.after(productCategoryRollup.getTimestamp("thruDate"))><#assign hasExpired = true> class="alternate-row"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductChildCategoryId} ${uiLabelMap.CommonFromDate} ${uiLabelMap.ProductThruDateTimeSequence}  
<#if curCategory?has_content> <#assign catContentWrapper = Static["org.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(curCategory, request)?if_exists> <#if catContentWrapper?has_content> ${catContentWrapper.get("CATEGORY_NAME")!catContentWrapper.get("DESCRIPTION")!curCategory.categoryName!curCategory.description!} <#else> ${curCategory.categoryName!curCategory.description!} [${curCategory.productCategoryId}] style="color: red">${productCategoryRollup.fromDate} <@htmlTemplate.renderDateTimeField name="thruDate${suffix}" event="" action="" className="" alert="" title="Thru Date" value="${productCategoryRollup.thruDate!''}" size="25" maxlength="50" id="thruDatefromDate${suffix}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> ${uiLabelMap.CommonDelete}
<#list parentProductCategoryRollups as productCategoryRollup>

${uiLabelMap.ProductAddCategoryChild} ${uiLabelMap.ProductCategorySelectCategoryAndEnterFromDate}:

<@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID?if_exists}" formName="addChildForm" name="productCategoryId" id="productCategoryId" fieldFormName="LookupProductCategory"/> <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate_2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>