#escape x as x?html>
<@tform method='post' action='jsp/admin/plugins/document/DoModifyDocument.jsp' enctype='multipart/form-data'>
<@input type='hidden' name='id_document' value='${document.id}' />
<@input type='hidden' name='id_state' value='${id_state}' />
<@row>
<@columns md=9>
<@box>
<@boxHeader title='#i18n{document.modify_document.title}'>
<@btnGroup>
<#noescape>
<#if extendableResourceActionsHtml?? && extendableResourceActionsHtml?has_content>
${extendableResourceActionsHtml!}
#if>
#noescape>
@btnGroup>
@boxHeader>
<@boxBody>
<@formGroup labelFor='document_title' labelKey='#i18n{document.modify_document.labelDocumentTitle}' helpKey='#i18n{document.modify_document.helpDocumentTitle}' mandatory=true rows=2>
<@input type='text' name='document_title' id='document_title' value='${document.title}' maxlength=255 />
@formGroup>
<@formGroup labelFor='document_summary' labelKey='#i18n{document.modify_document.labelDocumentSummary}' helpKey='#i18n{document.modify_document.helpDocumentSummary}' mandatory=true rows=2>
<@input type='textarea' name='document_summary' id='document_summary' rows=5>${document.summary}@input>
@formGroup>
<@fieldSet legend='#i18n{document.modify_document.attributTitle}'>
<#noescape>${fields}#noescape>
<@formGroup>
<@button type='submit' title='#i18n{document.modify_document.buttonModify}' buttonIcon='edit' />
<@button type='button' params='onclick="javascript:window.history.back()"' title='#i18n{portal.admin.message.buttonCancel}' buttonIcon='times' color='default' />
@formGroup>
@fieldSet>
@boxBody>
@box>
@columns>
<@columns md=3>
<@box>
<@boxHeader title='#i18n{document.create_document.advancedPropertiesTitle}'>
<@button type='button' style='card-control collapse' buttonTargetId='#advPropertiesForm' buttonIcon='minus' size='sm' />
@boxHeader>
<@boxBody>
<@fieldSet fieldsetId='advPropertiesForm'>
<@formGroup labelKey='#i18n{document.create_document.labelDocumentValidity}' rows=2>
<@staticText>#i18n{document.create_document.labelDocumentValidity}@staticText>
@formGroup>
<@formGroup labelFor='document_validity_begin' labelKey='#i18n{document.create_document.labelDocumentValidityBegin}' rows=2>
<@inputGroup>
<@inputGroupItem type='text'>
<@icon style='calendar' />
@inputGroupItem>
<@input type='daterange' name='document_validity_begin' id='document_validity_begin' dateRangeEndId='document_validity_end' value='${date_validity_begin}' />
@inputGroup>
@formGroup>
<@formGroup labelFor='document_validity_end' labelKey='#i18n{document.create_document.labelDocumentValidityEnd}' rows=2>
<@inputGroup>
<@inputGroupItem type='text'>
<@icon style='calendar' />
@inputGroupItem>
<@input type='text' name='document_validity_end' id='document_validity_end' value='${date_validity_end}' />
@inputGroup>
@formGroup>
<@formGroup labelFor='document_page_template' labelKey='#i18n{document.create_document.labelDocumentPageTemplate}' helpKey='#i18n{document.create_document.helpDocumentPageTemplate}' rows=2>
<#noescape>${page_template_list}#noescape>
@formGroup>
<@formGroup helpKey='#i18n{document.modify_document.helpSkipPortlet}' rows=2>
<@checkBox labelFor='document_skip_portlet' labelKey='#i18n{document.modify_document.labelSkipPortlet}' name='document_skip_portlet' id='document_skip_portlet' checked=document.skipPortlet />
@formGroup>
<@formGroup helpKey='#i18n{document.modify_document.helpSkipCategories}' rows=2>
<@checkBox labelFor='document_skip_categories' labelKey='#i18n{document.modify_document.labelSkipCategories}' name='document_skip_categories' id='document_skip_categories' checked=document.skipCategories />
@formGroup>
<@formGroup labelFor='document_comment' labelKey='#i18n{document.create_document.labelDocumentComment}' helpKey='#i18n{document.create_document.helpDocumentComment}' rows=2>
<@input type='textarea' type='text' name='document_comment' id='document_comment' rows=2>${document.comment}@input>
@formGroup>
@fieldSet>
@boxBody>
@box>
<@box>
<@boxHeader title='#i18n{document.list_category.boxTitle}'>
<@button type='button' style='card-control collapse' buttonTargetId='#category' buttonIcon='minus' size='sm' />
@boxHeader>
<@boxBody>
<@div id='category'>
<#noescape>${category}#noescape>
@div>
@boxBody>
@box>
<#if metadata?has_content>
<@box>
<@boxHeader title='#i18n{document.modify_document_type.labelMetadata}'>
<@button type='button' style='card-control collapse' buttonTargetId='#metadata' buttonIcon='plus' size='sm' />
@boxHeader>
<@boxBody>
<@div id='metadata'>
<#noescape>${metadata}#noescape>
@div>
@boxBody>
@box>
#if>
@columns>
@row>
@tform>
#escape>
<#include "/admin/util/editor/editor.html" />
<@initEditor />