#IF(#INPUT.Page)
#ENDIF#IF(#INPUT.PageSize)
#ENDIF
#IF(#FormError AND #FormErrors.Form.GenerateCouponCodes)
#IF(#FormErrors.Form.GenerateCouponCodes.Reason.INTEGER_TOO_LARGE)
{InputError}
#LOOP(#FormErrors.Errors)#IF(#Reason EQ "INTEGER_TOO_LARGE")
{CouponCodeCountTooLarge}#ENDIF
#ENDLOOP
#ELSE
{InputError}
{PleaseCorrectErrors}
#ENDIF
#ELSIF(#FormError)
{InputError}
#IF(#FormErrors.Reason.CouponCodesLengthToShortForThisNumberOfCodes)
{CouponCodesLengthToShortForThisNumberOfCodes}
#ENDIF
#IF(NOT #FormErrors.Reason.CouponCodesLengthToShortForThisNumberOfCodes)
{PleaseCorrectErrors}
#IF(#FormErrors.Reason.OBJECT_EXISTS)
{DoubleObject}
#ENDIF
#ENDIF
#ENDIF
#IF(#DELETE)
{Warning}
{AcceptAction}
#LOOP(#DeleteObjects)
#ENDLOOP
#ELSIF(#DELETEALL)
{Warning}
{AcceptAction}
#ELSE
#IF(#DEFINED(#ValidCouponCount) AND #ValidCouponCount==0)
{Notification}
{NoValidCoupons}
#ELSIF(#DEFINED(#ValidCouponCount) AND #RedeemCount==#ValidCouponCount)
{Notification}
{ValidCouponCountReached}
#ENDIF
#ENDIF
#IF(NOT #DELETEALL)
#INCLUDE("INC-PagerHeader")
#ENDIF
#IF(#DELETE)
#ELSIF(NOT #DELETEALL)
#ENDIF
#IF(#DELETEALL)