#WITH_ERROR(#FormError)
#IF(#FormError)
{InputError}
{PleaseCorrectErrors}
#ENDIF #IF(#DELETE)
{AcceptAction}
#LOOP(#DeleteObjects)
#ENDLOOP #ELSE
{AttachementInfo1}
{AttachementInfo2}
#ENDIF
{File}
#IF(#DELETE) #LOOP(#DeleteObjects)
#LOCAL("AttachmentSize",#FUNCTION("FileSize",#File,#PublicPath) / 1024)
#File[slice:60,html]
#AttachmentSize[integer] kB
#ENDLOCAL
#ENDLOOP #ELSE #IF(NOT #COUNT(#Attachments))
{NoAttachments}
#ELSE #LOOP(#Attachments)
#LOCAL("AttachmentSize",#FUNCTION("FileSize",#File,#PublicPath) / 1024)
#File[slice:60,html]
#AttachmentSize[integer] kB
#ENDLOCAL
#ENDLOOP #ENDIF
#BLOCK("NewLineReplace"," ")
#ENDBLOCK
{MaxFileSize}: #LOCAL("Size", #CALCULATE(#WebInterfaceConf.maxcontentlength / 1024)) #Size[float:1] #ENDLOCAL MByte
#ENDIF
#IF(#Status != 2) #IF(#DELETE)
#ELSE
#ENDIF #ENDIF
#ENDWITH_ERROR