<#if (draftExists)>
#if>
<@jiveMacro.statusMessage mainDivId="dwr-error-table" identifier="dwr-error-text" value="" type="error" divStyle="display:none;"/>
<@jiveMacro.statusMessage mainDivId="post-subj-error-table" identifier="subject_error" key="post.err.pls_enter_subject.text" type="error" innerDivId="post-error-subject" divStyle="display:none;"/>
<@jiveMacro.statusMessage mainDivId="post-body-error-table" identifier="body_error" key="doc.create.error_text.text" type="error" innerDivId="post-error-body" divStyle="display:none;"/>
<#include "/template/global/include/form-message.ftl"/>
<#if savedMsg>
<@ww.text name="doc.create.yrChangesSaved.text"/>
#if>
<#if (!canAttach)>
<#if (edit)>
" method="post" name="postform" id="postform" onsubmit="return validatePost(true);">
<@xsrf.encodeHiddenFormField url='/wiki/doc-edit.jspa' ignoreUrlConfiguration=true/>
<#else>
" method="post" name="postform" id="postform" onsubmit="return validatePost(true);">
<@xsrf.encodeHiddenFormField url='/wiki/doc-create.jspa' ignoreUrlConfiguration=true/>
#if>
<#else>
<#if (edit)>
" method="post" enctype="multipart/form-data" name="postform" id="postform" onsubmit="if (!validatePost(true)) {return false;};startUploadProgress('postButton', 'Upload in progress:', 'attachFile', '${dwrAuthToken}'); return true;">
<@xsrf.encodeHiddenFormField url='/wiki/doc-edit.jspa' ignoreUrlConfiguration=true/>
<#else>
" method="post" enctype="multipart/form-data" name="postform" id="postform" onsubmit="if (!validatePost(true)) {return false;};startUploadProgress('postButton', 'Upload in progress:', 'attachFile', '${dwrAuthToken}'); return true;">
<@xsrf.encodeHiddenFormField url='/wiki/doc-create.jspa' ignoreUrlConfiguration=true/>
#if>
#if>
<@ww.token name="jiveToken.document.create.${document.documentID}" />
<#if (document?exists)>
<#list document.images as image>
#list>
#if>
<#if (authToken.anonymous)>
#if>
<@ww.text name="global.title" /><@ww.text name="global.colon" />
"
<#if (draftEnabled)>
onchange="autoSave.messageChangeHandler()"
#if>
<#if (isGuiEditorEnabled)>
onKeyDown="focusOnGUIEditor(event);"
#if>
title="<@ww.text name="doc.create.title.txt.fld.tltp"/>">
<@macroFieldErrors name="subject"/>
<#if (!authToken.anonymous && document.getProperties().get("noFollow")?exists && document.getProperties().get("noFollow") == 'true')>
<@ww.text name="doc.edit.nofollow.aprvl.gtitle"/>
<@ww.text name="doc.edit.nofollow.message.text"/>
<@ww.text name="doc.edit.nofollow.checkbox.label"/>
#if>
<#-- Div containing the body textarea and controls -->
<@ww.text name="post.alwaysUseThisEditor.text" />
<@ww.text name="post.alwaysUseThisEditor.text" />
<#-- Tab: Rich Text -->
"
tabindex="${tabIndex}<#assign tabIndex=(tabIndex + 1)>"><@ww.text name="post.rich_text.tab" />
<#-- Tab: Plain Text -->
"
tabindex="${tabIndex}<#assign tabIndex=(tabIndex + 1)>"><@ww.text name="post.plain_text.tab" />
<#-- Tab: Preview -->
"
tabindex="${tabIndex}<#assign tabIndex=(tabIndex + 1)>"><@ww.text name="global.preview" />
"
src="<@ww.url includeParams="none" value="/images/busy-16x16.gif" />" border="0" />
<#assign bold_start = "*" />
<#assign bold_end = bold_start />
<#assign italic_start = "+" />
<#assign italic_end = italic_start />
<#assign underline_start = "_" />
<#assign underline_end = underline_start />
<#if !WikiUtils.isEnabled(community)>
<#assign bold_start = "[b]" />
<#assign bold_end = "[/b]" />
<#assign italic_start = "[i]" />
<#assign italic_end = "[/i]" />
<#assign underline_start = "[u]" />
<#assign underline_end = "[/u]" />
#if>
"
onmouseover="document.images['jive-img-bold'].src='<@ww.url includeParams="none" value="/images/text-bold-on-22x22.gif" />';"
onmouseout="document.images['jive-img-bold'].src='<@ww.url includeParams="none" value="/images/text-bold-off-22x22.gif" />';"
>
" border="0" />
"
onmouseover="document.images['jive-img-italics'].src='<@ww.url includeParams="none" value="/images/text-italics-on-22x22.gif" />';"
onmouseout="document.images['jive-img-italics'].src='<@ww.url includeParams="none" value="/images/text-italics-off-22x22.gif" />';"
>
" border="0" />
"
onmouseover="document.images['jive-img-underline'].src='<@ww.url includeParams="none" value="/images/text-underline-on-22x22.gif" />';"
onmouseout="document.images['jive-img-underline'].src='<@ww.url includeParams="none" value="/images/text-underline-off-22x22.gif" />';"
>
" border="0" />
"
onmouseover="document.images['jive-img-content'].src='<@ww.url includeParams="none" value="/images/text-link-on-22x22.gif" />';"
onmouseout="document.images['jive-img-content'].src='<@ww.url includeParams="none" value="/images/text-link-off-22x22.gif" />';"
>
" alt="<@ww.text name="post.ref_other_content.tooltip" />" border="0" />
<#if (isWikiImagesEnabled)>
"
onmouseover="document.images['jive-img-image'].src='<@ww.url includeParams='none' value='/images/text-image-on-22x22.gif' />';"
onmouseout="document.images['jive-img-image'].src='<@ww.url includeParams='none' value='/images/text-image-off-22x22.gif' />';"
>
" border="0" />
#if>
<#if (isSpellCheckEnabled)>
"
onmouseover="document.images['jive-img-spell'].src='<@ww.url includeParams="none" value="/images/text-spell-on-22x22.gif" />';"
onmouseout="document.images['jive-img-spell'].src='<@ww.url includeParams="none" value="/images/text-spell-off-22x22.gif" />';"
>
" alt="<@ww.text name="post.spell_check.tooltip" />" border="0" />
#if>
">
<#-- Plain Text Help --><@ww.text name="hlp.syntx.plain_text_help.title" />
<#assign attachIterator = attachments>
<#if (attachIterator.hasNext() || (canAttach && (maxAttachCount > 0)))>
<@macroFieldErrors name="attachFile" />
<@ww.text name="post.attach_files.gtitle"/>
<@ww.text name="post.attach_files_max.label"><@ww.param>${maxAttachCount}@ww.param>@ww.text>
<#list attachIterator as attachment>
#list>
<#if (canAttach)>
" title="<@ww.text name="doc.create.browse.tooltip"/>"/>
Max size: ${statics['com.jivesoftware.util.ByteFormat'].getInstance().formatKB(jiveContext.attachmentManager.maxAttachmentSize)}
, <#if (jiveContext.attachmentManager.allowAllByDefault)>
<#if (!jiveContext.attachmentManager.disallowedTypes.empty)>
<@ww.text name="doc.create.flTypesNotAllwd.text" /><@ww.text name="global.colon" /> <#list jiveContext.attachmentManager.disallowedTypesAsFileExtensions as extension>${extension?html}<#if extension_has_next>, #if>#list><#else>All file types allowed#if><#else><@ww.text name="doc.create.flTypesAllowed.text" /><@ww.text name="global.colon" /> <#if (!jiveContext.attachmentManager.allowedTypes.empty)><#list jiveContext.attachmentManager.allowedTypesAsFileExtensions as extension>${extension?html}<#if extension_has_next><@ww.text name="global.comma" /> #if>#list><#else><@ww.text name="doc.create.noFlTypesAllwd.text" />#if>#if>
#if>
#if>
<@macroFieldErrors name="tags"/>
<#assign maxAbstractLength = JiveGlobals.getJiveIntProperty("abstract." + community.getID()?c + ".length", JiveConstants.DEFAULT_SPACE_ABSTRACT_MAX_LENGTH)/>
<#assign systemAbstractLength = JiveGlobals.getJiveIntProperty("jive.space.abstract.length", JiveConstants.DEFAULT_SYSTEM_ABSTRACT_MAX_LENGTH)/>
<#if (maxAbstractLength > systemAbstractLength)>
<#assign maxAbstractLength = systemAbstractLength/>
<#assign dummyAbsLnth = JiveGlobals.setJiveProperty("abstract." + community.getID()?c + ".length", maxAbstractLength?string)/>
#if>
<#if document.versionAbstract?exists>
<#assign expandAbstract = true>
#if>
<#if allowedToModifyApprovers>
#if>
<#if edit>
checked="CHECKED"#if> />
<@ww.text name="doc.create.minor_edit.checkbox" />
#if>
<#if ((document.ID > 0) && ((document.authorCommentDelegator.commentCount > 0) || (document.commentDelegator.commentCount > 0)))>
<#if (document.authorCommentDelegator.commentCount > 0)>
<#list document.authorCommentDelegator.comments as comment>
#list>
<#else>
#if>
#if>