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