2019-12-13 17:20:29 +03:00
|
|
|
<header class="gh-publishmenu-heading">Will be published in {{this.timeToPublished}}</header>
|
2019-11-08 12:46:03 +03:00
|
|
|
<div class="gh-publishmenu-content">
|
|
|
|
<section class="gh-publishmenu-section">
|
2019-12-13 17:20:29 +03:00
|
|
|
<div class="gh-publishmenu-radio {{if (eq this.saveType "draft") "active"}}" {{action "setSaveType" "draft" on="click"}}>
|
2019-11-08 12:46:03 +03:00
|
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-draft-option></div>
|
|
|
|
<div class="gh-publishmenu-radio-content">
|
|
|
|
<div class="gh-publishmenu-radio-label">Revert to draft</div>
|
|
|
|
<div class="gh-publishmenu-radio-desc">Do not publish</div>
|
|
|
|
</div>
|
2017-04-11 16:39:45 +03:00
|
|
|
</div>
|
2019-12-13 17:20:29 +03:00
|
|
|
<div class="gh-publishmenu-radio {{if (eq this.saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}>
|
2019-11-08 12:46:03 +03:00
|
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-scheduled-option></div>
|
|
|
|
<div class="gh-publishmenu-radio-content">
|
|
|
|
<div class="gh-publishmenu-radio-label">Schedule for later</div>
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhDateTimePicker
|
|
|
|
@date={{this.post.publishedAtBlogDate}}
|
|
|
|
@time={{this.post.publishedAtBlogTime}}
|
|
|
|
@setDate={{action "setDate"}}
|
|
|
|
@setTime={{action "setTime"}}
|
|
|
|
@setTypedDateError={{this.setTypedDateError}}
|
|
|
|
@errors={{this.post.errors}}
|
|
|
|
@dateErrorProperty="publishedAtBlogDate"
|
|
|
|
@timeErrorProperty="publishedAtBlogTime"
|
|
|
|
@minDate={{this._minDate}}
|
|
|
|
@isActive={{eq this.saveType "schedule"}}
|
|
|
|
/>
|
2019-11-08 12:46:03 +03:00
|
|
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
|
|
|
</div>
|
2017-04-11 16:39:45 +03:00
|
|
|
</div>
|
2019-11-08 12:46:03 +03:00
|
|
|
</section>
|
2021-05-07 12:02:19 +03:00
|
|
|
{{#if this.canSendEmail}}
|
|
|
|
<section class="gh-publishmenu-section">
|
|
|
|
<div class="gh-publishmenu-email">
|
|
|
|
{{#if this.isSendingEmailLimited}}
|
|
|
|
<p>{{html-safe this.sendingEmailLimitError}}</p>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-publishmenu-email-label {{if this.disableEmailOption "pe-none"}}">
|
|
|
|
<label class="gh-publishmenu-radio-label mb3 {{if this.disableEmailOption "midgrey"}}">Send by email to</label>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2021-05-21 20:22:01 +03:00
|
|
|
<GhMembersRecipientSelect
|
|
|
|
@filter={{this.recipientsFilter}}
|
2021-05-07 12:02:19 +03:00
|
|
|
@disabled={{true}}
|
|
|
|
/>
|
2019-11-26 15:20:49 +03:00
|
|
|
</div>
|
2021-05-07 12:02:19 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</section>
|
2019-11-26 15:20:49 +03:00
|
|
|
{{/if}}
|
2019-11-08 12:46:03 +03:00
|
|
|
</div>
|