#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#FormError)

{InputError}

#IF(#OBJECT_EXISTS) {DoubleObject} #ELSE {PleaseCorrectErrors} #ENDIF
#REM #ENDREM #ENDIF #IF(#DELETE)

{AcceptActionInfo}

#REM #ENDREM
#ELSE #IF(#CountryAdded AND #Shop.FeatureMaxValue.Regions > 0)

{RegionCountryAddInfo}

{EditRegions}
#REM #ENDREM #ELSIF(#DEFINED(#INPUT.ChangeAction) AND #INPUT.ChangeAction EQ "DeleteShopCountries" AND #Shop.FeatureMaxValue.Regions > 0)

{Notification}

{RegionCountryDeleteInfo}

{TestRegions}
#REM #ENDREM #ELSE
{CountryInfo} #IF(#Shop.FeatureMaxValue.Regions > 0){CountryInfoExtRegions}#ENDIF
#REM #ENDREM #ENDIF #IF(NOT #COUNT(#ShopCountries))

{Notification}

{NoCountries}

#REM #ENDREM #ENDIF #ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #REM #ENDREM #REM #ENDREM #IF(#FormError_NewCountryID) #ENDIF #ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #LOOP(#ShopCountries) #IF(#IsDefault)#ENDIF #ENDLOOP #ENDIF
{Country} {TaxArea}
#Native #IF(NOT (#English EQ #Native))(#English)#ENDIF #LOCAL("TaxArea", #FUNCTION("TaxAreaByCountryID", #TaxMatrix.Object, #CountryID)) #TaxArea.NameOrAlias #ENDLOCAL
#Native #IF(NOT (#English EQ #Native))(#English)#ENDIF #LOCAL("TaxArea", #FUNCTION("TaxAreaByCountryID", #TaxMatrix.Object, #CountryID)) #TaxArea.NameOrAlias #ENDLOCAL
#IF(#DELETE)
#ENDIF
#ENDBLOCK #IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#BLOCK("MENU","RelatedTopic") #INCLUDE(#Template) #ENDBLOCK
#REM #ENDREM
#ENDIF