2019-04-06 11:01:49 +03:00
|
|
|
<header class="gh-publishmenu-heading">Ready to publish your {{post.displayName}}?</header>
|
2017-04-11 16:39:45 +03:00
|
|
|
<section class="gh-publishmenu-content">
|
|
|
|
<div class="gh-publishmenu-radio {{if (eq saveType "publish") "active"}}" {{action "setSaveType" "publish" on="click"}}>
|
|
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
|
|
|
<div class="gh-publishmenu-radio-content">
|
|
|
|
<div class="gh-publishmenu-radio-label">Set it live now</div>
|
2019-04-06 11:01:49 +03:00
|
|
|
<div class="gh-publishmenu-radio-desc">Publish this {{post.displayName}} immediately</div>
|
2017-04-11 16:39:45 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gh-publishmenu-radio {{if (eq saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}>
|
|
|
|
<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 it for later</div>
|
|
|
|
{{gh-date-time-picker
|
|
|
|
date=post.publishedAtBlogDate
|
|
|
|
time=post.publishedAtBlogTime
|
|
|
|
setDate=(action "setDate")
|
|
|
|
setTime=(action "setTime")
|
|
|
|
errors=post.errors
|
|
|
|
dateErrorProperty="publishedAtBlogDate"
|
|
|
|
timeErrorProperty="publishedAtBlogTime"
|
|
|
|
minDate=_minDate
|
|
|
|
}}
|
|
|
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-06 12:01:37 +03:00
|
|
|
{{#if (and this.feature.labs.members (eq this.post.displayName "post"))}}
|
2019-11-06 07:01:42 +03:00
|
|
|
<div class="gh-publishmenu-radio">
|
2019-11-04 12:13:18 +03:00
|
|
|
{{#if this.backgroundLoader.isRunning}}
|
|
|
|
<div class="gh-loading-spinner" style="zoom: 50%"></div>
|
|
|
|
{{else}}
|
2019-11-06 07:01:42 +03:00
|
|
|
{{#unless this.deliveredAction}}
|
2019-11-07 06:19:46 +03:00
|
|
|
<div class="for-checkbox {{if disableEmailOption "pe-none"}}">
|
2019-11-06 12:01:37 +03:00
|
|
|
<div class="checkbox" for="email-when-published-checkbox">
|
2019-11-06 11:28:31 +03:00
|
|
|
<Input @checked={{this.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" @name="email-when-published" @disabled={{disableEmailOption}} />
|
2019-11-06 12:01:37 +03:00
|
|
|
<span
|
|
|
|
class="input-toggle-component gh-publishmenu-email-checkbox"
|
|
|
|
{{on "click" (toggle "sendEmailWhenPublished" this)}}
|
|
|
|
></span>
|
|
|
|
</div>
|
2019-11-04 12:13:18 +03:00
|
|
|
</div>
|
2019-11-06 07:01:42 +03:00
|
|
|
<div class="gh-publishmenu-email-label">
|
2019-11-06 12:01:37 +03:00
|
|
|
<label class="gh-publishmenu-radio-label" for="email-when-published-checkbox">Email post</label>
|
2019-11-06 11:28:31 +03:00
|
|
|
{{#if this.memberCount}}
|
|
|
|
<div class="gh-publishmenu-radio-desc">Send post to {{this.memberCount}} members when published</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-publishmenu-radio-desc">You have 0 members</div>
|
|
|
|
{{/if}}
|
2019-11-04 12:13:18 +03:00
|
|
|
</div>
|
2019-11-06 07:01:42 +03:00
|
|
|
{{/unless}}
|
2019-11-04 12:13:18 +03:00
|
|
|
{{/if}}
|
2019-11-04 08:41:38 +03:00
|
|
|
</div>
|
2019-11-04 09:38:30 +03:00
|
|
|
{{/if}}
|
2017-04-11 16:39:45 +03:00
|
|
|
</section>
|
2019-11-04 12:13:18 +03:00
|
|
|
|