<#assign typeIdWithDefaultValue = 0 /> <@row> <@columns> <@box> <@boxHeader title='#i18n{library.modify_attribute.form.label}' /> <@boxBody> <@tform method='post' action='jsp/admin/plugins/library/DoModifyAttribute.jsp' name='modify_attribute'> <@input type='hidden' id='media_id' name='media_id' value='${attribute.mediaId}' /> <@input type='hidden' id='attribute_id' name='attribute_id' value='${attribute.attributeId}' /> <@formGroup labelFor='attribute_code' labelKey='#i18n{library.modify_attribute.code}' mandatory=true> <@input type='text' name='attribute_code' id='attribute_code' value='${attribute.code}' maxlength=250 /> <@formGroup labelFor='attribute_description' labelKey='#i18n{library.modify_attribute.description}' mandatory=true> <@input type='text' name='attribute_description' id='attribute_description' value='${attribute.description}' maxlength=250 /> <@formGroup labelFor='attribute_type' labelKey='#i18n{library.modify_attribute.type}' mandatory=true> <@select name='attribute_type' default_value='${attribute.typeId}' params='onChange=\"javascript:displayDefaultValue();\""' items=attribute_type_list /> <@formGroup labelFor='attribute_default_value' labelKey='#i18n{library.create_attribute.defaultValue}' mandatory=true> <@input type='text' name='attribute_default_value' id='attribute_default_value' value='${attribute.defaultValue}' maxlength=100 disabled=(attribute.typeId != typeIdWithDefaultValue) /> <@formGroup> <@button type='submit' title='#i18n{library.modify_attribute.button.validate}' buttonIcon='save' /> <@aButton href='jsp/admin/plugins/library/ManageMedia.jsp?media_id=${attribute.mediaId}' title='#i18n{library.modify_attribute.button.cancel}' buttonIcon='times' color='default' />