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>
|
|
|
|
{{gh-date-time-picker
|
2019-12-13 17:20:29 +03:00
|
|
|
date=this.post.publishedAtBlogDate
|
|
|
|
time=this.post.publishedAtBlogTime
|
2019-11-08 12:46:03 +03:00
|
|
|
setDate=(action "setDate")
|
|
|
|
setTime=(action "setTime")
|
2019-12-13 17:20:29 +03:00
|
|
|
errors=this.post.errors
|
2019-11-08 12:46:03 +03:00
|
|
|
dateErrorProperty="publishedAtBlogDate"
|
|
|
|
timeErrorProperty="publishedAtBlogTime"
|
2019-12-13 17:20:29 +03:00
|
|
|
minDate=this._minDate
|
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>
|
2019-11-26 15:20:49 +03:00
|
|
|
{{#if this.session.user.isOwnerOrAdmin}}
|
|
|
|
{{#unless this.post.email}}
|
|
|
|
<section class="gh-publishmenu-section">
|
|
|
|
<div class="gh-publishmenu-radio gh-publishmenu-email">
|
|
|
|
{{#if this.backgroundLoader.isRunning}}
|
|
|
|
<div class="gh-loading-spinner" style="zoom: 50%"></div>
|
2019-11-14 20:20:30 +03:00
|
|
|
{{else}}
|
2019-11-26 15:20:49 +03:00
|
|
|
<div class="gh-publishmenu-email-label">
|
|
|
|
<label class="gh-publishmenu-radio-label pe-none midgrey"
|
|
|
|
for="email-when-published-checkbox">Send by email</label>
|
|
|
|
{{#if this.memberCount}}
|
|
|
|
<div class="gh-publishmenu-radio-desc">Deliver post to members</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-publishmenu-radio-desc">You haven't got any members</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="for-switch small pe-none">
|
|
|
|
<div class="switch container" for="email-when-published-checkbox">
|
2019-12-13 17:20:29 +03:00
|
|
|
<Input @checked={{this.post.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" @name="email-when-published" @disabled={{this.disableEmailOption}} />
|
2019-11-26 15:20:49 +03:00
|
|
|
<span class="input-toggle-component gh-publishmenu-email-checkbox"
|
|
|
|
{{on "click" (toggle "sendEmailWhenPublished" this)}}></span>
|
|
|
|
</div>
|
2019-11-14 20:20:30 +03:00
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
{{/if}}
|
2019-11-13 17:36:54 +03:00
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
</section>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
2019-11-08 12:46:03 +03:00
|
|
|
</div>
|