{{#if visible}}
{{#if currentUser.staff}} {{#popup-menu visible=optionsVisible hide="hideOptions" title="composer.options"}}
  • {{d-button action="toggleWhisper" icon="eye-slash" label="composer.toggle_whisper"}}
  • {{/popup-menu}} {{/if}} {{render "composer-messages"}}
    {{#if site.mobileView}} {{/if}} {{#if model.viewOpen}}
    {{plugin-outlet "composer-open"}}
    {{{model.actionTitle}}} {{#unless site.mobileView}} {{#if model.whisper}} ({{i18n "composer.whisper"}}) {{/if}} {{/unless}} {{#if canEdit}} {{#if showEditReason}}
    {{text-field value=editReason tabindex="7" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
    {{else}} {{i18n 'composer.show_edit_reason'}} {{/if}} {{/if}}
    {{#if model.canEditTitle}}
    {{#if model.creatingPrivateMessage}} {{user-selector topicId=controller.controllers.topic.model.id excludeCurrentUser="true" id="private-message-users" includeMentionableGroups="true" class="span8" placeholderKey="composer.users_placeholder" tabindex="1" usernames=model.targetUsernames hasGroups=model.hasTargetGroups }} {{#if showWarning}}
    {{/if}} {{/if}} {{composer-title composer=model lastValidatedAt=lastValidatedAt}} {{#if model.showCategoryChooser}}
    {{category-chooser valueAttribute="id" value=model.categoryId scopedCategoryId=scopedCategoryId tabindex="3"}} {{popup-input-tip validation=categoryValidation}}
    {{#if model.archetype.hasOptions}} {{/if}} {{render "additional-composer-buttons" model}} {{/if}}
    {{/if}} {{plugin-outlet "composer-fields"}}
    {{composer-editor topic=topic composer=model lastValidatedAt=lastValidatedAt canWhisper=canWhisper draftStatus=model.draftStatus isUploading=isUploading groupsMentioned="groupsMentioned" importQuote="importQuote" showOptions="showOptions" showToolbar=showToolbar showUploadSelector="showUploadSelector"}} {{#if currentUser}}
    {{plugin-outlet "composer-fields-below"}} {{i18n 'cancel'}} {{#if site.mobileView}} {{#if model.whisper}} {{/if}} {{/if}}
    {{/if}}
    {{else}}
    {{#if model.createdPost}} {{i18n 'composer.saved'}} {{else}} {{i18n 'composer.saving'}} {{loading-spinner size="small"}} {{/if}}
    {{i18n 'composer.saved_draft'}}
    {{/if}}
    {{/if}}