<#if attribute.textValue?has_content> <#assign helpKey> <@link href='servlet/plugins/document/resource?id=${document.id}&id_attribute=${attribute.id}&working_content=true' title='preview'> ${attribute.textValue} <#else> <#assign helpKey = attribute.description /> <@formGroup labelFor='${attribute.code}' labelKey='${attribute.name}' helpKey=helpKey mandatory=attribute.required rows=2> <@input type='file' name='${attribute.code}' id='${attribute.code}' /> <#if attribute.textValue?has_content> <@formGroup helpKey='#i18n{document.attributeType.file.deleteField}' rows=2> <@checkBox labelFor='update_${attribute.code}' labelKey='#i18n{document.attributeType.file.updateField}' name='update_${attribute.code}' id='update_${attribute.code}' value='1' />