<@row> <@columns> <@box> <@boxHeader title='#i18n{document.modify_document_type_attribute.titleAddAttribute} ${document_type_code}' /> <@boxBody> <@tform method='post' action='jsp/admin/plugins/document/DoModifyDocumentTypeAttribute.jsp'> <@input type='hidden' name='attribute_id' value='${attribute.id}' /> <@input type='hidden' name='attribute_type_code' value='${attribute_type_code}' /> <@formGroup labelFor='name' labelKey='#i18n{document.modify_document_type_attribute.labelName}' helpKey='#i18n{document.modify_document_type_attribute.helpName}' mandatory=true> <@input type='text' name='name' id='name' value='${attribute.name}' /> <@formGroup labelFor='code' labelKey='#i18n{document.modify_document_type_attribute.labelCode}' helpKey='#i18n{document.modify_document_type_attribute.helpCode}' mandatory=true> <@input type='text' name='code' id='code' value='${attribute.code}' readonly=true /> <@formGroup labelFor='description' labelKey='#i18n{document.modify_document_type_attribute.labelDescription}' helpKey='#i18n{document.modify_document_type_attribute.helpDescription}' mandatory=true> <@input type='text' name='description' id='description' value='${attribute.description}' /> <@formGroup labelFor='required' labelKey='#i18n{document.modify_document_type_attribute.labelRequired}' mandatory=true> <@checkBox labelFor='required' labelKey='#i18n{document.modify_document_type_attribute.helpRequired}' name='required' id='required' checked=attribute.required /> <@formGroup labelKey='#i18n{document.modify_document_type_attribute.labelSearchable}' mandatory=true> <@checkBox labelFor='searchable' labelKey='#i18n{document.modify_document_type_attribute.helpSearchable}' name='searchable' id='searchable' checked=attribute.searchable /> ${attribute_parameters} <@formGroup> <@button type='submit' name='save' value='save' title='#i18n{document.modify_document_type_attribute.buttonAddAttribute}' buttonIcon='save' /> <@aButton href='jsp/admin/plugins/document/ModifyDocumentType.jsp?document_type_code=${document_type_code}' title='#i18n{portal.admin.message.buttonCancel}' buttonIcon='times' color='default' /> <#if attribute_type_code != "listbox"> <@box> <@boxHeader title='#i18n{document.modify_document_type_attribute.manageRegularExpression.title}'> <@tform type='inline' method='post' action='jsp/admin/plugins/document/DoInsertRegularExpression.jsp'> <@input type='hidden' name='attribute_id' value='${attribute.id}' /> <@formGroup formStyle='inline' labelFor='expression_id' labelKey='#i18n{document.modify_document_type_attribute.manageRegularExpression.labelInsert}'> <@inputGroup> <@select name='expression_id' items=regular_expression_to_add_list default_value=-1 /> <@inputGroupItem> <@button type='submit' title='#i18n{document.modify_document_type_attribute.manageRegularExpression.buttonInsert}' buttonIcon='plus-circle' size='sm' hideTitle=['all'] /> <@boxBody> <@table> <@tr> <@th>#i18n{document.modify_document_type_attribute.manageRegularExpression.rowTitle} <@th>#i18n{document.modify_document_type_attribute.manageRegularExpression.rowInformationMessage} <@th>#i18n{document.modify_document_type_attribute.manageRegularExpression.rowValidExemple} <@th>#i18n{document.modify_document_type_attribute.manageRegularExpression.rowAction} <#list regular_expression_added_list as regular_expression> <@tr> <@td>${regular_expression.title} <@td>${regular_expression.informationMessage} <@td>${regular_expression.validExemple} <@td> <@tform type='inline' method='post' action='jsp/admin/plugins/document/DoDeleteRegularExpression.jsp'> <@input type='hidden' name='attribute_id' value='${attribute.id}' /> <@input type='hidden' name='expression_id' value='${regular_expression.idExpression}' /> <@button type='submit' title='#i18n{document.modify_document_type_attribute.manageRegularExpression.titleDelete}' buttonIcon='trash' color='sm' hideTitle=['all'] />