<#if !attribute.textValue?has_content><#assign helpKey = attribute.description /> <@formGroup labelFor='${attribute.code}' labelKey='${attribute.name}' helpKey=helpKey! mandatory=attribute.required> <@row> <@columns xl=8 class='mb-2'> <@input type='file' name='${attribute.code}' id='${attribute.code}' /> <@columns xl=12> <#if attribute.textValue?has_content> <@row> <@columns lg=6> <@formGroup helpKey='#i18n{document.attributeType.image.deleteField}'> <@checkBox labelKey='#i18n{document.attributeType.image.updateField}' name='update_${attribute.code}' id='update_${attribute.code}' value='1' /> <@columns lg=6> <#assign params = 'data-title="${attribute.textValue}"' /> <#if attribute.valueContentType?contains('image')> <#assign params += ' data-lightbox="image-document"' /> <@link href='servlet/plugins/document/resource?id=${document.id}&id_attribute=${attribute.id}&working_content=true&nocache' params=params> <#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' /> <@formGroup> <@checkBox labelKey='#i18n{document.attributeType.image.resize}' name='${attribute.code}_croppable' id='${attribute.code}_crop' /> <@formGroup labelKey='#i18n{document.attributeType.image.resize}' hideLabel=['all'] id='crop_group'> <@inputGroup> <@input type='text' name='${attribute.code}_width' id='${attribute.code}_width' value='' placeHolder='#i18n{document.attributeType.image.width}' /> <@inputGroupItem type='text'>px