#i18n{library.manage_mappings.action.back} "${media.name}"

<#if mapping_list?has_content>

#i18n{library.manage_mappings.table.title}

<#list mapping_list as mapping >
#i18n{library.manage_mappings.table.column.title.type} #i18n{library.manage_mappings.table.column.title.mappings} #i18n{library.manage_mappings.table.column.title.comments} #i18n{library.manage_mappings.table.column.title.actions}
${mapping.codeDocumentType} <#if mapping.attributeAssociationList?has_content> <#assign attributeAssociationLength = mapping.attributeAssociationList?size /> <#list mapping.attributeAssociationList as mappingAttribute > ${mappingAttribute.associationLabel}
<#else> <#assign attributeAssociationLength = 0 />
<#assign nbAttributesToMap = 0 > <#list media.mediaAttributeList as attribute > <#if attribute.associableWithDocument > <#assign nbAttributesToMap = nbAttributesToMap + 1> <#if attributeAssociationLength < nbAttributesToMap > #i18n{library.manage_mappings.control.title} : #i18n{library.manage_mappings.control.text} #i18n{library.manage_mappings.action.delete}

#i18n{library.manage_mappings.form.create.title}

<@combo name="document_type" default_value="" items=document_type_list />