<@pageContainer> <@pageColumn> <@pageHeader title='#i18n{document.modify_document_type.pageTitle}' > <@tform class='form-search' method='post' name='AddAttribute' action='jsp/admin/plugins/document/AddDocumentTypeAttribute.jsp' class='mb-3'> <@input type='hidden' name='document_type_code' value='${document_type.code}' /> <@formGroup formStyle='inline' labelFor='attribute_type_code' labelKey='#i18n{document.modify_document_type.labelAddAttribute}'> <@inputGroup> <@select name='attribute_type_code' default_value='' items=attribute_types_list /> <@inputGroupItem type='btn'> <@button type='submit' title='#i18n{document.modify_document_type.buttonAddAttribute}' buttonIcon='plus' hideTitle=['all'] /> <@row> <@columns xl=3> <@box> <@boxHeader title='#i18n{document.modify_document_type.titleProperties}' /> <@boxBody> <@tform method='post' action='jsp/admin/plugins/document/DoModifyDocumentType.jsp'> <@input type='hidden' id='old_code' name='old_code' value='${document_type.code}' /> <@formGroup labelFor='code' labelKey='#i18n{document.modify_document_type.labelCode}' helpKey='#i18n{document.modify_document_type.helpCode}' mandatory=true rows=2> <@input type='text' name='code' id='code' maxlength=30 value='${document_type.code}' /> <@formGroup labelFor='name' labelKey='#i18n{document.modify_document_type.labelName}' helpKey='#i18n{document.modify_document_type.helpName}' mandatory=true rows=2> <@input type='text' name='name' id='name' maxlength=100 value='${document_type.name}' /> <@formGroup labelFor='name' labelKey='#i18n{document.modify_document_type.labelDescription}' helpKey='#i18n{document.modify_document_type.helpDescription}' mandatory=true rows=2> <@input type='text' name='description' id='description' value='${document_type.description}' /> <@formGroup labelFor='icon_url' labelKey='#i18n{document.modify_document_type.labelThumbnailUrl}' rows=2> <@input type='text' name='icon_url' id='icon_url' value='${document_type.defaultThumbnailUrl}' /> <@formGroup labelFor='thumbnail_attribute' labelKey='#i18n{document.modify_document_type.labelThumbnailAttribute}' rows=2> <@select name='thumbnail_attribute' items=thumbnail_attributes_list default_value='${document_type.thumbnailAttributeId}' /> <@formGroup labelFor='name' labelKey='#i18n{document.modify_document_type.labelMetadata}' helpKey='#i18n{document.modify_document_type.helpMetadata}' mandatory=true rows=2> <@select name='metadata' items=metadata_handlers_list default_value="${document_type.getMetadataHandler()!''}" /> <@formGroup rows=2> <@button type='submit' title='#i18n{document.modify_document_type.buttonModify}' buttonIcon='device-floppy' /> <@aButton href='jsp/admin/plugins/document/ManageDocumentTypes.jsp?plugin_name=document' title='#i18n{portal.admin.message.buttonCancel}' buttonIcon='x' color='default' /> <@columns xl=6> <@box> <@boxHeader title='#i18n{document.modify_document_type.titleAttributesList}' /> <@boxBody> <@manageFeature> <#list document_type.attributes as attribute > <@manageFeatureItem valign='start'> <@manageFeatureItemColumn flex=false> <@p class='mb-0'>#i18n{document.modify_document_type.columnAttributeName} ${attribute.name} <@p class='mb-0'>${attribute.description} <@p class='mb-0'>#i18n{document.modify_document_type.columnAttributeCode} : ${attribute.code} - #i18n{document.modify_document_type.columnAttributeType} : ${attribute.codeAttributeType} <@p class='mb-0'>#i18n{document.modify_document_type.columnAttributeRequired} :<#if attribute.required = true >#i18n{portal.util.labelYes}<#else>#i18n{portal.util.labelNo} <@p class='mb-0'>#i18n{document.modify_document_type.columnAttributeSearchable} : <#if attribute.searchable = true >#i18n{portal.util.labelYes}<#else>#i18n{portal.util.labelNo} <@manageFeatureItemColumn align='end' valign='start'> <@btnGroup> <@aButton href='jsp/admin/plugins/document/ModifyDocumentTypeAttribute.jsp?attribute_id=${attribute.id}' title='${attribute.name}' buttonIcon='edit' hideTitle=['all'] /> <@aButton href='jsp/admin/plugins/document/DoAttributeMoveUp.jsp?index=${attribute.attributeOrder}' title='#i18n{document.modify_document_type.buttonMoveUp}' buttonIcon='arrow-up' hideTitle=['all'] /> <@aButton href='jsp/admin/plugins/document/DoAttributeMoveDown.jsp?index=${attribute.attributeOrder}' title='#i18n{document.modify_document_type.buttonMoveDown}' buttonIcon='arrow-down' hideTitle=['all'] /> <@aButton href='jsp/admin/plugins/document/DoConfirmDeleteAttribute.jsp?document_type_code=${document_type.code}&attribute_id=${attribute.id}' title='#i18n{document.modify_document_type.buttonDelete}' buttonIcon='trash' color='danger' hideTitle=['all'] /> <@columns xl=3> <@box> <@boxHeader title='#i18n{document.modify_document_type.titleStyleSheets}' /> <@boxBody> <@tform method='post' action='jsp/admin/plugins/document/DoLoadDocumentTypeStyleSheets.jsp' enctype='multipart/form-data' name='create_stylesheet'> <@input type='hidden' name='document_type_code' value='${document_type.code}' /> <@input type='hidden' name='mode_id' value='-1' /> <@fieldSet legend='#i18n{document.modify_document_type.fieldsetStyleSheets}' > <@formGroup labelFor='stylesheet_source' labelKey='#i18n{document.modify_document_type.labelStyleSheetAdmin}' rows=2> <@input type='file' id='stylesheet_admin' name='stylesheet_admin' maxlength=100 /> <@checkBox labelFor='stylesheet_admin_update' labelKey='#i18n{document.modify_document_type.labelStyleSheetAdminUpdate}' id='stylesheet_admin_update' name='stylesheet_admin_update' value='true' /> <#if document_type.adminXsl?has_content> <@aButton class='outline-primary' href='jsp/admin/plugins/document/ViewStyleSheetFile.jsp?document_type_code=${document_type.code}&stylesheet_type=stylesheet_admin'> <@icon style='download' /> #i18n{document.modify_document_type.labelStyleSheetAdminDownload} <#else> <@tag color='warning'>#i18n{document.modify_document_type.labelStyleSheetAdminNoFile} <@fieldSet legend='#i18n{document.modify_document_type.fieldsetContent}' > <@formGroup labelFor='stylesheet_source' labelKey='#i18n{document.modify_document_type.labelStyleSheetContent}' rows=2> <@input type='file' id='stylesheet_content' name='stylesheet_content' maxlength=100 /> <@checkBox labelFor='stylesheet_content_update' labelKey='#i18n{document.modify_document_type.labelStyleSheetContentUpdate}' id='stylesheet_content_update' name='stylesheet_content_update' value='true' /> <#if document_type.contentServiceXsl?has_content> <@aButton color='transparent' href='jsp/admin/plugins/document/ViewStyleSheetFile.jsp?document_type_code=${document_type.code}&stylesheet_type=stylesheet_content'> <@icon style='download' /> #i18n{document.modify_document_type.labelStyleSheetContentDownload} <#else> <@tag color='warning'>#i18n{document.modify_document_type.labelStyleSheetContentNoFile} <@formGroup rows=2 class='mt-3 d-flex justify-content-center'> <@button type='submit' title='#i18n{document.modify_document_type.buttonLoadStyleSheets}' buttonIcon='upload' />