#REM Okay, the following two lines are hacks but that's what you get for using a sub-par templating system where either hacks or copy and paste are the only way to make it work. #ENDREM #INCLUDE("HideEtrackerTab") #SET("PortConf",#ID) #REM Leave it in here, there's client code for this in Ricardo. #ENDREM
#IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF#IF(#INPUT.OrderBy) #ENDIF#IF(#INPUT.OrderDesc) #ENDIF #IF(#FormError)

{InputError}

{PleaseCorrectErrors} #LOOP(#FormErrors.Form.AddProduct.Errors) #IF(#Reason EQ "DOWNLOAD_PRODUCTS_NOT_ASSIGNED")
{CanNotAssignDownloadProducts}:#JOIN(", ",#FROMPLAINLOOP(#ProductAliases))#Element#ENDJOIN #ELSIF(#Reason EQ "PRODUCT_ALREADY_ASSIGNED")
{ProductAlreadyAssigned}: #ProductAlias #ELSIF(#Reason EQ "ERROR_INVALIDPRODUCT")
{InvalidProduct}#ENDIF #ENDLOOP
#ENDIF #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #INCLUDE("INC-PagerHeader") #IF(NOT #Pager.Items) #ELSE #IF(#DEFINED(#INPUT.OrderBy) AND #INPUT.OrderBy NE "Alias") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDIF #IF(#Pager.Items) #LOOP(#Pager.Items) #ENDLOOP #ENDIF
{SKU}{SKU}{SKU}{Name}
#INCLUDE("Pager")
#INCLUDE("INC-ProductIcon") #INCLUDE("ProductLink") #Name
{AddProductsFromTray}