@row>
<@columns>
<@box>
<#assign boxHeaderTitle>
#i18n{library.create_mapping.form.label} #i18n{library.create_mapping.documentType.label} : ${document_type.code} (${document_type.name})
#assign>
<@boxHeader title=boxHeaderTitle />
<@boxBody>
<@tform method='post' action='jsp/admin/plugins/library/DoCreateMapping.jsp' name='create_mapping'>
<@input type='hidden' name='media_id' value='${media.mediaId}' />
<@input type='hidden' name='document_type' value='${document_type.code}' />
<#list media.mediaAttributeList as attribute>
<#if attribute.associableWithDocument>
<@formGroup labelFor='document_attribute_id_${attribute.attributeId}' labelKey='${attribute.code}'>
<@select id='document_attribute_id_${attribute.attributeId}' name='document_attribute_id_${attribute.attributeId}'>
<#list document_type.attributes as documentAttribute>
#list>
@select>
@formGroup>
<#else>
<@formGroup labelKey='${attribute.code}'>
<@staticText>#i18n{library.create_mapping.attribute.text.noChoiceAvailable}@staticText>
@formGroup>
#if>
#list>
<@formGroup>
<@button type='submit' title='#i18n{library.create_mapping.button.validate}' buttonIcon='save' />
<@aButton href='jsp/admin/plugins/library/ManageLibrary.jsp' title='#i18n{library.create_mapping.button.cancel}' buttonIcon='times' color='default' />
@tform>
@boxBody>
@box>
@columns>
@row>