This feature can be enabled by choosing a destination for the `shared drafts category` site setting. * Staff members can create shared drafts, choosing a destination category for the topic when it is published. * Shared Drafts can be viewed in their category, or above the topic list for the destination category where it will end up. * When the shared draft is ready, it can be published to the appropriate category by clicking a button on the topic view. * When published, Drafts change their timestamps to the current time, and any edits to the original post are removed.
23 lines
627 B
Handlebars
23 lines
627 B
Handlebars
<div class='shared-draft-controls'>
|
|
{{#if publishing}}
|
|
{{i18n "shared_drafts.publishing"}}
|
|
{{else}}
|
|
{{{i18n "shared_drafts.notice" category=topic.category.name}}}
|
|
|
|
<div class='publish-field'>
|
|
<label>{{i18n "shared_drafts.destination_category"}}</label>
|
|
{{category-chooser value=topic.destination_category_id}}
|
|
</div>
|
|
|
|
<div class='publish-field'>
|
|
{{#if validCategory}}
|
|
{{d-button
|
|
action=(action "publish")
|
|
label="shared_drafts.publish"
|
|
class="btn-primary publish-shared-draft"
|
|
icon="clipboard"}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|