<@row> <@columns lg=7> <@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> <@columns lg=3> <@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' /> <@columns lg=2> <@link href='servlet/plugins/document/resource?id=${document.id}&id_attribute=${attribute.id}&working_content=true&nocache' title='preview'> <#assign imgUrl><@getDocumentThumbnailUrlFromMimeType mimeType=attribute.valueContentType fileUrl="servlet/plugins/document/resource?id=${document.id}&id_attribute=${attribute.id}&working_content=true" /> <@img url=imgUrl alt=attribute.textValue title=attribute.textValue class='thumbnail thumbnail-lg' />