{MyAccount} {ShoppingLists}


#IF((NOT #DEFINED(#INPUT.ChangeAction) OR #INPUT.ChangeAction NE "NewShoppingList")) #IF(#Product) #IF(#INPUT.Quantity) #ENDIF

"#Product.NameOrAlias"

{ShoppingListInfo}


#ELSIF(#COUNT(#Products)) #LOOP(#Products)

"#NameOrAlias"

#ENDLOOP

{ShoppingListInfo}


#ENDIF #ENDIF #IF(#FormError)

{InputError}

#IF(#FormErrors.Reason.OBJECT_EXISTS)

{ShoppingListExists}

#ELSIF(#FormErrors.Reason.OBJECT_NO_ALIAS)

{ShoppingListNoName}

#ELSE

{OtherReason}

#ENDIF

#ENDIF #LOCAL("Alternate", 0) #LOOP(#ShoppingLists) #SET("Alternate", 1 - #Alternate) #ENDLOOP #IF(#COUNT(#ShoppingLists) == 0) #SET("Alternate", 1 - #Alternate) #ENDIF #ENDLOCAL
{ShoppingList} {ChangeDate} {Action}
#IF((#Product OR #COUNT(#Products)) AND (NOT #DEFINED(#INPUT.ChangeAction) OR #INPUT.ChangeAction NE "NewShoppingList")) #ELSE #Alias #ENDIF #ChangeDate[date]
{NoShoppingLists}

#WITH_ERROR(#FormError) #ENDWITH_ERROR

#LOOP(#ShoppingLists) #IF((NOT #DEFINED(#INPUT.ChangeAction) OR #INPUT.ChangeAction NE "NewShoppingList"))
#IF(#Product) #IF(#INPUT.Quantity) #ENDIF #ELSIF(#COUNT(#Products)) #LOOP(#Products) #ENDLOOP #ENDIF
#ENDIF
#IF(NOT #Session.User.DeleteConfirmation) #ENDIF
#ENDLOOP