<#assign dwrAuthToken = statics["com.jivesoftware.util.AuthUtils"].getDWRAuthenticationToken()> <#assign tabIndex = 1> <#assign isGuiEditorEnabled = JiveGlobals.getJiveBooleanProperty("skin.default.guiEditorEnabled", true)> <#assign isImagesEnabledInSystem = JiveGlobals.getJiveBooleanProperty("image.enabled", true)> <#assign isSpellCheckEnabled = JiveGlobals.getJiveBooleanProperty("skin.default.spellCheckEnabled", true)> <#assign isdisplayApproverNameEnabled = JiveGlobals.getJiveBooleanProperty("approval.${community.ID?c}.displayapprover", true)> <#assign isInlineSpellEnabled = JiveGlobals.getJiveBooleanProperty("skin.default.inlineSpellCheckEnabled", false)> <#assign isWikiTablesEnabled = WikiUtils.isWikiTableSyntaxEnabled(community)> <#assign isWikiImagesEnabled = isImagesEnabledInSystem && WikiUtils.isWikiImageSyntaxEnabled(community) && action.hasPermissionsToUploadImages()> <#assign isForumVideosEnabled = WikiUtils.isVideoEnabled(community)> <#assign maxAttachCount = jiveContext.getAttachmentManager().getMaxAttachmentsPerDocument()> <#assign isHeadingEnabledInSystem = formatHeadingPropertyEnabled> <#import "/template/forums/include/forum-macros.ftl" as jiveMacro> <#assign xsrf=JspTaglibs["/WEB-INF/xsrf.tld"]> <#assign textDirection = "ltr"> <#if "left" = LocaleUtils.getLocaleAlignment(locale)> <#assign textDirection = "rtl"> <#if (edit)> <@ww.text name="doc.edit_document.title" ><@ww.param>${document.subject}</@ww.param></@ww.text> <#else> <@ww.text name="doc.create.title" /> <#if (canAttach)> <#if (isGuiEditorEnabled)> <#-- this url merges quite a few scripts into a single js call. See web.xml ResourceLoaderServlet definition for specific scripts included --> <@jive.importJavascript scripts=['messagepost'] /> <#if (edit)> <#-- it's critical to not remove the ignoreContextParams parameter - if you do, webwork/ognl will re set the parameters on the page level action as well, which will break things since the DocCreateAction modifies the body in the validate() call - which won't be called again after the params are reset --> <@ww.action name="community-breadcrumb" executeResult="true" ignoreContextParams="true"> <@ww.param name="communityID" value="${community.ID?c}" /> ${document.subject} <#else> <@ww.action name="community-breadcrumb" executeResult="true" ignoreContextParams="true"> <@ww.param name="communityID" value="${community.ID?c}" />
<#if (draftExists)>
<@ww.text name="post.draft.draft_exists.info"><@ww.param>${draft.modificationDate?datetime?string.medium_short}
" onclick="autoSave.useDraft('updateDocumentFromDraft');return false;" /> " onclick="autoSave.deleteDraft(); return false;" />
<@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 (!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/> <#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/> <@ww.token name="jiveToken.document.create.${document.documentID}" /> <#if (document?exists)> <#list document.images as image> <#if (authToken.anonymous)>
<#-- Name: -->
<#-- Email: -->

<#if edit> <@ww.text name="doc.edit_document.title" ><@ww.param>${document.subject} <#else> <@ww.text name="doc.create.title" /> <@ww.text name="doc.create.in.label" /> ${community.name?html}

<#if referencedContentObject?exists> <@ww.text name="doc.create.thisDocWillRef.text" /> <#if (referencedContentObject.getObjectType() == JiveConstants.DOCUMENT)> <@ww.text name="global.document" /> <#elseif (referencedContentObject.getObjectType() == JiveConstants.BLOGPOST)> <@ww.text name="doc.create.blog_post.text" /> <#elseif (referencedContentObject.getObjectType() == JiveConstants.THREAD)> <@ww.text name="doc.create.thread.text" /> '${referencedContentObject.subject}'

" <#if (draftEnabled)> onchange="autoSave.messageChangeHandler()" <#if (isGuiEditorEnabled)> onKeyDown="focusOnGUIEditor(event);" 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"/>

<#-- Div containing the body textarea and controls -->
" src="<@ww.url includeParams="none" value="/images/busy-16x16.gif" />" border="0" />
 

<#assign attachIterator = attachments> <#if (attachIterator.hasNext() || (canAttach && (maxAttachCount > 0)))> <@macroFieldErrors name="attachFile" />
<@ww.text name="post.attach_files.gtitle"/>
<#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>, <#else>All file types allowed<#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" /> <#else><@ww.text name="doc.create.noFlTypesAllwd.text" />
<@macroFieldErrors name="tags"/>
">

Tags (use spaces to separate multiple tags, use an underscore to combine two words)

onchange="autoSave.messageChangeHandler()" value="${tags!}" />
<#if (popularTags?size > 0)>
<@ww.text name="taggroup.tagcloud.title" /><@ww.text name="global.colon" /> <@ww.text name="doc.editor.tag.instr" />
<#if community.tagSets.hasNext()>
Show tags in tag group: <#list community.tagSets as set>
<#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 document.versionAbstract?exists> <#assign expandAbstract = true>

<@ww.text name="doc.main.versionAbstract.text"/>

<@ww.text name="doc.main.inputAbstract.text"/> (<@ww.text name="global.max.char.text"><@ww.param>${maxAbstractLength})
" name="preview"/>

<@ww.text name="doc.main.versionSummary.hdr"/>

<#if allowedToModifyApprovers>

<@ww.text name="doc.create.collaborators.gtitle"/>

<#if edit>
checked="CHECKED" />

<#if approvalRequired> <#if (communityApprovers?exists && (0 < (communityApprovers?size)))>
<#assign commid = (community.ID?c)/> <#assign prop = "approval."+commid+".maxapprovers"/> <#assign approverLimit = JiveGlobals.getJiveIntProperty(prop, -1)/> <#if ((approverLimit != -1) && ((communityApprovers?size) != approverLimit))> <#if !(loggedInUserSpaceApprover || isdisplayApproverNameEnabled)> <@ww.text name='doc.approval_dyn.nm_inv.text' ><@ww.param>${approverLimit}<@ww.param>${communityApprovers?size} <#else> <@ww.text name='doc.create.approval_dyn.text' ><@ww.param>${approverLimit} <#else> <#if !(loggedInUserSpaceApprover || isdisplayApproverNameEnabled)> <#if 1 == (communityApprovers?size)> <@ww.text name='doc.approval.nm_inv_one.text' ><@ww.param>${communityApprovers?size} <#else> <@ww.text name='doc.approval.nm_inv.text' ><@ww.param>${communityApprovers?size} <#else> <@ww.text name='doc.create.approval.text' /> <#if (loggedInUserSpaceApprover || isdisplayApproverNameEnabled)> <#assign approverCount=1 /> <#list communityApprovers as communityApprover>   <@jive.userDisplayNameLink user=communityApprover/> .
<#assign publishValue = action.getText('doc.create.sbmtForApprvl.button')/> <#else> <#assign publishValue = action.getText('doc.create.publish.button')/> disabled=true--> value="<@ww.text name='doc.create.save_draft.button' />" tabindex="${tabIndex}<#assign tabIndex=(tabIndex + 1)>" /> <#if (draftEnabled)> <#else>

 
<#if ((document.ID > 0) && ((document.authorCommentDelegator.commentCount > 0) || (document.commentDelegator.commentCount > 0)))>
<#if (document.authorCommentDelegator.commentCount > 0)> <#list document.authorCommentDelegator.comments as comment>
${comment.creationDate?datetime?string.medium_short} <#if comment.user?exists> <#assign isCommentUserSpaceApprover = false/> <#list communityApprovers as communityApprover> <#if communityApprover.ID == comment.user.ID> <#assign isCommentUserSpaceApprover = true/> <#break> <#if comment.getProperties()?exists && comment.getProperties().containsKey('_approval_rejection_user_') && (!isdisplayApproverNameEnabled && !loggedInUserSpaceApprover && isCommentUserSpaceApprover)><@ww.text name="doc.apprvl.approver.label" /><#else><@jive.userAvatar user=comment.user/><@jive.userDisplayNameLink user=comment.user/> <@ww.text name="doc.create.says.label" /><@ww.text name="global.colon" /> <#else> <#if (comment.URL?exists)> <@jive.userAvatar user=''/><#if (comment.name?exists)>${comment.name?html}<#else><@jive.displayUserDisplayName user=''/> <@ww.text name="doc.create.says.label" /><@ww.text name="global.colon" /> <#else> <@jive.userAvatar user='' /><#if (comment.name?exists)>${comment.name?html}<#else><@jive.displayUserDisplayName user=''/> <@ww.text name="doc.create.says.label" /><@ww.text name="global.colon" />

${comment.body}

<#else>

<@ww.text name="doc.create.noAuthComments.text" />

<#macro communityList community=rootCommunity> <#if community.ID?c != rootCommunity.ID?c> <@communityList community=community.parentCommunity/> ${community.name?html} »