<#-- 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. --> <#macro paginationControls> <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize)?double / viewSize?double)> <#if (viewIndexMax?int > 0)>
<#-- Start Page Select Drop-Down --> <#-- End Page Select Drop-Down --> <#if (viewIndex?int > 1)> ${uiLabelMap.CommonPrevious} | <#if ((listSize?int - viewSize?int) > 0)> ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} <#if highIndex?int < listSize?int> | ${uiLabelMap.CommonNext}

${uiLabelMap.EcommerceShoppingLists}

<#if shoppingLists?has_content>
${uiLabelMap.CommonEdit}
<#else>
<#if shoppingList?has_content> <#if canView>

${uiLabelMap.EcommerceShoppingListDetail} - ${shoppingList.listName}

<#if parentShoppingList??> ${uiLabelMap.CommonGotoParent} (${parentShoppingList.listName?default(parentShoppingList.shoppingListId)})
${uiLabelMap.CommonSave}
<#if shoppingListType?? && shoppingListType.shoppingListTypeId == "SLT_AUTO_REODR"> <#assign nowTimestamp = Static["org.apache.ofbiz.base.util.UtilDateTime"].monthBegin()>

${uiLabelMap.EcommerceShoppingListReorder} - ${shoppingList.listName} <#if shoppingList.isActive?default("N") == "N"> ${uiLabelMap.EcommerceOrderNotActive}

<#if recurrenceInfo?has_content> <#assign recurrenceRule = recurrenceInfo.getRelatedOne("RecurrenceRule", false)!> <@htmlTemplate.renderDateTimeField name="startDateTime" className="" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(recurrenceInfo.startDateTime)!}" size="25" maxlength="30" id="startDateTime1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="endDateTime" className="textBox" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(recurrenceRule.untilDateTime)!}" size="25" maxlength="30" id="endDateTime1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${uiLabelMap.CommonSave} ${uiLabelMap.PartyAddNewAddress} ${uiLabelMap.EcommerceNewCreditCard} ${uiLabelMap.EcommerceNewEFTAccount}
<#if shoppingList.isActive?default("N") == "Y">
<#assign nextTime = recInfo.next(lastSlOrderTime)?if_exists /> <#if nextTime?has_content> <#assign nextTimeStamp = Static["org.apache.ofbiz.base.util.UtilDateTime"].getTimestamp(nextTime)?if_exists /> <#if nextTimeStamp?has_content> <#assign nextTimeString = Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(nextTimeStamp)?if_exists /> <#if lastSlOrderDate?has_content> <#assign lastOrderedString = Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(lastSlOrderDate)!>
${uiLabelMap.OrderLastOrderedDate} : ${lastOrderedString?default("${uiLabelMap.OrderNotYetOrdered}")}
${uiLabelMap.EcommerceEstimateNextOrderDate} : ${nextTimeString?default("${uiLabelMap.EcommerceNotYetKnown}")}
<#if childShoppingListDatas?has_content>

 ${uiLabelMap.EcommerceChildShoppingList} - ${shoppingList.listName}

<#list childShoppingListDatas as childShoppingListData> <#assign childShoppingList = childShoppingListData.childShoppingList/> <#assign totalPrice = childShoppingListData.totalPrice/>
${uiLabelMap.EcommerceListName} ${uiLabelMap.EcommerceListName}    
${childShoppingList.listName?default(childShoppingList.shoppingListId)} <@ofbizCurrency amount=totalPrice isoCode=currencyUomId/> ${uiLabelMap.EcommerceGoToList} ${uiLabelMap.EcommerceAddListToCart}

  <@ofbizCurrency amount=shoppingListChildTotal isoCode=currencyUomId/>  

${uiLabelMap.EcommerceListItems} - ${shoppingList.listName}

<#if shoppingListItemDatas?has_content> <#-- Pagination --> <@paginationControls/> <#-- --> <#list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData> <#assign shoppingListItem = shoppingListItemData.shoppingListItem/> <#assign product = shoppingListItemData.product/> <#assign productContentWrapper = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(product, request)/> <#assign unitPrice = shoppingListItemData.unitPrice/> <#assign totalPrice = shoppingListItemData.totalPrice/> <#assign productVariantAssocs = shoppingListItemData.productVariantAssocs!/> <#assign isVirtual = product.isVirtual?? && product.isVirtual.equals("Y")/>
${uiLabelMap.OrderProduct}
- ${uiLabelMap.EcommerceStartdate} -- ${uiLabelMap.EcommerceNbrOfDays} -
- ${uiLabelMap.EcommerceNbrOfPersons} -- ${uiLabelMap.CommonQuantity} -
Purchased
${uiLabelMap.EcommercePrice} ${uiLabelMap.OrderTotal}  
${shoppingListItem.productId} - ${productContentWrapper.get("PRODUCT_NAME", "html")?default("No Name")} : ${productContentWrapper.get("DESCRIPTION", "html")!}
<#if product.productTypeId == "ASSET_USAGE"> <#-- --> <#---->
 
  <#else>
-- --
--
${shoppingListItem.quantityPurchased?default(0)?string.number}
<@ofbizCurrency amount=unitPrice isoCode=currencyUomId/> <@ofbizCurrency amount=totalPrice isoCode=currencyUomId/> ${uiLabelMap.CommonUpdate} ${uiLabelMap.CommonRemove}
<#if isVirtual && productVariantAssocs?has_content> <#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists /> <#assign addToCartAction = "/additem/" + requestAttributes._CURRENT_VIEW_?if_exists />
<#else> ${uiLabelMap.CommonAdd} ${shoppingListItem.quantity?string} ${uiLabelMap.OrderToCart}

   
 
  <@ofbizCurrency amount=shoppingListItemTotal isoCode=currencyUomId/>  
<#else>

${uiLabelMap.EcommerceShoppingListEmpty}.

${uiLabelMap.EcommerceShoppingListPriceTotals} - ${shoppingList.listName}

<@ofbizCurrency amount=shoppingListChildTotal isoCode=currencyUomId/>
<@ofbizCurrency amount=shoppingListItemTotal isoCode=currencyUomId/>
<@ofbizCurrency amount=shoppingListTotalPrice isoCode=currencyUomId/>

${uiLabelMap.CommonQuickAddList}

<#if reservStart?exists>
<#else> <#-- shoppingList was found, but belongs to a different party -->

${uiLabelMap.EcommerceShoppingListError} ${uiLabelMap.CommonId} ${shoppingList.shoppingListId}) ${uiLabelMap.EcommerceListDoesNotBelong}.