<#-- 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. -->
${uiLabelMap.ProductNewFacility} ${uiLabelMap.ProductNewFacilityLocation}
<#if (facilityId?exists)> <#if !(facilityId?exists)>
${uiLabelMap.ProductFacility}
${uiLabelMap.ProductLocationSeqId} <#if parameters.facilityId?exists> <#assign LookupFacilityLocationView="LookupFacilityLocation?facilityId=${facilityId}"> <#else> <#assign LookupFacilityLocationView="LookupFacilityLocation"> <@htmlTemplate.lookupField formName="findFacilityLocation" name="locationSeqId" id="locationSeqId" fieldFormName="${LookupFacilityLocationView}"/>
${uiLabelMap.CommonArea}
${uiLabelMap.ProductAisle}
${uiLabelMap.ProductSection}
${uiLabelMap.ProductLevel}
${uiLabelMap.ProductPosition}
 
<#if foundLocations?exists> <#-- TODO: Put this in a screenlet - make it look more like the party find screen -->

${uiLabelMap.CommonFound}: ${foundLocations.size()} ${uiLabelMap.ProductLocationsFor} <#if facility?exists>${(facility.facilityName)?if_exists} [ID:${facilityId?if_exists}]


<#assign rowClass = "2"> <#list foundLocations as location> <#assign locationTypeEnum = location.getRelatedOneCache("TypeEnumeration")?if_exists> class="alternate-row"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductFacility} ${uiLabelMap.ProductLocationSeqId} ${uiLabelMap.ProductType} ${uiLabelMap.CommonArea} ${uiLabelMap.ProductAisle} ${uiLabelMap.ProductSection} ${uiLabelMap.ProductLevel} ${uiLabelMap.ProductPosition}  
${(location.facilityId)?if_exists} ${(location.locationSeqId)?if_exists} ${(locationTypeEnum.get("description",locale))?default(location.locationTypeEnumId?if_exists)} ${(location.areaId)?if_exists} ${(location.aisleId)?if_exists} ${(location.sectionId)?if_exists} ${(location.levelId)?if_exists} ${(location.positionId)?if_exists} ${uiLabelMap.ProductNewInventoryItem} <#if itemId?exists> ${uiLabelMap.ProductSetItem} ${itemId} ${uiLabelMap.CommonEdit}