<@row id='select'> <@columns> <@box> <@boxHeader title='${document.title}' /> <@boxBody> <@tform method='post' name='fenvoi' action='${jsp_insert}'> <@input type='hidden' name='plugin_name' value='${plugin_name}' /> <@input type='hidden' name='input' value='${.data_model.input}' /> <@input type='hidden' name='media' value='${mediatype.mediaId}' /> <@input type='hidden' name='id_document' value='' /> <#list document_list as selectedDocument> <#assign document = selectedDocument.document> <#assign document_index = selectedDocument_index> <@formGroup labelFor='thumbnail' labelKey='#i18n{library.insertservice.preview}'> ${document.title} <#list media_attributes as attribute> <#assign field_name = attribute.code> <#if attribute.typeId = 0> <@formGroup labelFor='${field_name}' labelKey='${attribute.description}'> <@input type='text' name='${field_name}${document_index}' id='${field_name}${document_index}' value='${attribute.defaultValue}' /> <#elseif attribute.typeId = 3> <#if document.title?has_content> <@formGroup labelFor='${field_name}' labelKey='${attribute.description}'> <@input type='text' name='${field_name}${document_index}' id='${field_name}${document_index}' value='${document.title}' /> <#elseif attribute.typeId = 4> <#if document.summary?has_content> <@formGroup labelFor='${field_name}' labelKey='${attribute.description}'> <@input type='textarea' name='${field_name}${document_index}' id='${field_name}${document_index}' cols=60 rows=2>${document.summary} <#else> - <#elseif selectedDocument.attributesFromMapping[attribute.code]?has_content> <#assign doctype_code = selectedDocument.attributesFromMapping[attribute.code]> <#if attribute.typeId = 1> <#if document.getAttribute(doctype_code)?exists && document.getAttribute(doctype_code).textValue?has_content> <@formGroup labelFor='${field_name}' labelKey='${attribute.description}'> <@input type='textarea' name='${field_name}${document_index}' id='${field_name}${document_index}'>${document.getAttribute(doctype_code).textValue?xml} <#elseif attribute.typeId = 2> <#if document.getAttribute(doctype_code)?has_content> <#assign attributeId = document.getAttribute(doctype_code).id> <#assign url = "document?id=" + document.id + "&id_attribute=" + attributeId> <@formGroup labelFor='${field_name}' labelKey='Voir le document [Nouvelle fenĂȘtre]'> <@input type='hidden' name='${field_name}${document_index}' id='${field_name}${document_index}' value='${url}' /> <@link href='${url}' target='_blank' title='Voir'> ${url} <@formGroup> <@button type='submit' title='#i18n{library.insertservice.insertlink.button}' buttonIcon='save' /> <@button type='button' params='onclick="javascript:history.go(-1);"' title='#i18n{library.insertservice.cancel.button}' size='sm' color='default' />