| <#-- |
| 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. |
| --> |
| |
| <div class="button-bar button-style-1"> |
| <a href="<@ofbizUrl>EditFacilityLocation?facilityId=${facilityId!}</@ofbizUrl>" class="create">${uiLabelMap.ProductNewFacilityLocation}</a> |
| </div> |
| |
| <form action="<@ofbizUrl>FindFacilityLocation</@ofbizUrl>" method="get" name="findFacilityLocation" class="basic-form"> |
| <#if (facilityId??)> |
| <input type="hidden" name="facilityId" value="${facilityId}" /> |
| </#if> |
| <table class="basic-table" cellspacing="0"> |
| <#if !(facilityId??)> |
| <tr> |
| <td class="label">${uiLabelMap.ProductFacility}</td> |
| <td><input type="text" value="" size="19" maxlength="20" /></td> |
| </tr> |
| </#if> |
| <tr> |
| <td class="label">${uiLabelMap.ProductLocationSeqId}</td> |
| <td> |
| <#if parameters.facilityId??> |
| <#assign LookupFacilityLocationView="LookupFacilityLocation?facilityId=${facilityId}"> |
| <#else> |
| <#assign LookupFacilityLocationView="LookupFacilityLocation"> |
| </#if> |
| <@htmlTemplate.lookupField formName="findFacilityLocation" name="locationSeqId" id="locationSeqId" fieldFormName="${LookupFacilityLocationView}"/> |
| </td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.CommonArea}</td> |
| <td><input type="text" name="areaId" value="" size="19" maxlength="20" /></td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.ProductAisle}</td> |
| <td><input type="text" name="aisleId" value="" size="19" maxlength="20" /></td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.ProductSection}</td> |
| <td><input type="text" name="sectionId" value="" size="19" maxlength="20" /></td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.ProductLevel}</td> |
| <td><input type="text" name="levelId" value="" size="19" maxlength="20" /></td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.ProductPosition}</td> |
| <td><input type="text" name="positionId" value="" size="19" maxlength="20" /></td> |
| </tr> |
| <tr> |
| <td> </td> |
| <td><input type="submit" name="look_up" value="${uiLabelMap.CommonFind}" /></td> |
| </tr> |
| </table> |
| </form> |
| |
| <#if foundLocations??> |
| <#-- TODO: Put this in a screenlet - make it look more like the party find screen --> |
| <br /> |
| <h3>${uiLabelMap.CommonFound}: ${foundLocations.size()} ${uiLabelMap.ProductLocationsFor} <#if facility??>${(facility.facilityName)!}</#if> [ID:${facilityId!}]</h3> |
| <br /> |
| <table class="basic-table hover-bar" cellspacing="0"> |
| <tr class="header-row-2"> |
| <td>${uiLabelMap.ProductFacility}</td> |
| <td>${uiLabelMap.ProductLocationSeqId}</td> |
| <td>${uiLabelMap.ProductType}</td> |
| <td>${uiLabelMap.CommonArea}</td> |
| <td>${uiLabelMap.ProductAisle}</td> |
| <td>${uiLabelMap.ProductSection}</td> |
| <td>${uiLabelMap.ProductLevel}</td> |
| <td>${uiLabelMap.ProductPosition}</td> |
| <td> </td> |
| </tr> |
| <#assign rowClass = "2"> |
| <#list foundLocations as location> |
| <#assign locationTypeEnum = location.getRelatedOne("TypeEnumeration", true)!> |
| <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>> |
| <td><a href="<@ofbizUrl>EditFacility?facilityId=${(location.facilityId)!}</@ofbizUrl>">${(location.facilityId)!}</a></td> |
| <td><a href="<@ofbizUrl>EditFacilityLocation?facilityId=${facilityId}&locationSeqId=${(location.locationSeqId)!}</@ofbizUrl>">${(location.locationSeqId)!}</a></td> |
| <td>${(locationTypeEnum.get("description",locale))?default(location.locationTypeEnumId!)}</td> |
| <td>${(location.areaId)!}</td> |
| <td>${(location.aisleId)!}</td> |
| <td>${(location.sectionId)!}</td> |
| <td>${(location.levelId)!}</td> |
| <td>${(location.positionId)!}</td> |
| <td class="button-col"> |
| <a href="<@ofbizUrl>EditInventoryItem?facilityId=${(location.facilityId)!}&locationSeqId=${(location.locationSeqId)!}</@ofbizUrl>">${uiLabelMap.ProductNewInventoryItem}</a> |
| <#if itemId??> |
| <a href="<@ofbizUrl>UpdateInventoryItem?inventoryItemId=${itemId}&facilityId=${facilityId}&locationSeqId=${(location.locationSeqId)!}</@ofbizUrl>">${uiLabelMap.ProductSetItem} ${itemId}</a> |
| </#if> |
| <a href="<@ofbizUrl>EditFacilityLocation?facilityId=${(location.facilityId)!}&locationSeqId=${(location.locationSeqId)!}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a> |
| </td> |
| </tr> |
| <#-- toggle the row color --> |
| <#if rowClass == "2"> |
| <#assign rowClass = "1"> |
| <#else> |
| <#assign rowClass = "2"> |
| </#if> |
| </#list> |
| </table> |
| </#if> |