#IF(#FormError AND NOT #FormError_CouponCode AND NOT #FormError_NumberOfCodes AND NOT #CouponCodeExistsError)
{InputError}
{PleaseCorrectErrors}
#IF(#FormErrors.Reason.OBJECT_EXISTS)
{DoubleObject}
#ENDIF
#REM #ENDREM
#ENDIF
#IF(#IsNewCampaign)
#ELSE
#ENDIF
#IF(#DELETE)
{AcceptAction}
{AcceptActionInfo}
#REM #ENDREM
#ELSE
#IF(#DEFINED(#ValidCouponCount) AND #ValidCouponCount NE "" AND #ValidCouponCount==0)
{Notification}
{NoValidCoupons}
#REM #ENDREM
#ELSIF(#DEFINED(#ValidCouponCount) AND #ValidCouponCount NE "" AND #RedeemCount==#ValidCouponCount)
{Notification}
{ValidCouponCountReached}
#REM #ENDREM
#ENDIF
#ENDIF
#LOCAL("CampaignCurrencySymbol", "")
#IF(#DEFINED(#CurrencyID))#LOCAL("CampaignCurrency", #FUNCTION("CURRENCY", #CurrencyID))#SET("CampaignCurrencySymbol",#CampaignCurrency.Symbol)#ENDLOCAL#ENDIF
#IF(NOT #DELETE)
{General}
#REM #ENDREM
#SNIPPET("INC-I18n-Tooltip", "AttributeName", "Name")
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{TypeAndValue}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{CouponRestrictions}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDIF
{UnityCouponCodes}
#IF(NOT #DELETE)
#IF(NOT #IsNewCampaign)
#BLOCK("Pager", #CouponCodes)
#SNIPPET("INC-PagerHeader", "ContextObjects", "{CouponCodes}")
#ENDBLOCK
#ENDIF
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions")
#REM #ENDREM
#REM #ENDREM
#IF(#FormError_CouponCode OR #FormError_NumberOfCodes OR #CouponCodeExistsError)
#ENDIF
#ENDIF
#IF(NOT #IsNewCampaign)
#BLOCK("Pager", #CouponCodes)
#IF(NOT #DELETE)
#SNIPPET("Pager", "ContextObjects", "{CouponCodes}")
#ENDIF
#ENDBLOCK
#ELSE
#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDLOCAL
#IF(NOT #DELETE)
#ELSE
#ENDIF
#ENDWITH_ERROR