#WITH_ERROR(#FormError)
#IF(#FormError)

{InputError}

{PleaseCorrectErrors}
#ENDIF #IF(#DELETE)

{AcceptAction}

#LOOP(#DeleteObjects)#ENDLOOP #ELSE
{AttachementInfo1}
{AttachementInfo2}

#ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #LOCAL("AttachmentSize",#FUNCTION("FileSize",#File,#PublicPath) / 1024) #ENDLOCAL #ENDLOOP #ELSE #IF(NOT #COUNT(#Attachments)) #ELSE #LOOP(#Attachments) #LOCAL("AttachmentSize",#FUNCTION("FileSize",#File,#PublicPath) / 1024) #ENDLOCAL #ENDLOOP #ENDIF #ENDIF
{File}
#File[slice:60,html] #AttachmentSize[integer] kB
{NoAttachments}
#File[slice:60,html]#AttachmentSize[integer] kB

#BLOCK("NewLineReplace"," ") #ENDBLOCK {MaxFileSize}: #LOCAL("Size", #CALCULATE(#WebInterfaceConf.maxcontentlength / 1024)) #Size[float:1] #ENDLOCAL MByte

#IF(#Status != 2) #IF(#DELETE) #ELSE #ENDIF #ENDIF
#ENDWITH_ERROR