2019-12-13 17:20:29 +03:00
|
|
|
<header class="gh-publishmenu-heading">Ready to publish your {{this.post.displayName}}?</header>
|
2017-04-11 16:39:45 +03:00
|
|
|
<section class="gh-publishmenu-content">
|
2019-11-08 07:46:38 +03:00
|
|
|
<div class="gh-publishmenu-section">
|
2019-12-13 17:20:29 +03:00
|
|
|
<div class="gh-publishmenu-radio {{if (eq this.saveType "publish") "active"}}" {{action "setSaveType" "publish" on="click"}}>
|
2019-11-08 07:46:38 +03:00
|
|
|
<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-12-13 17:20:29 +03:00
|
|
|
<div class="gh-publishmenu-radio-desc">Publish this {{this.post.displayName}} immediately</div>
|
2019-11-08 07:46:38 +03:00
|
|
|
</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 07:46:38 +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 it 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 07:46:38 +03:00
|
|
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
|
|
|
</div>
|
2017-04-11 16:39:45 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-07 11:37:26 +03:00
|
|
|
|
2020-02-24 07:20:29 +03:00
|
|
|
{{#if (and this.canSendEmail showSendEmail)}}
|
2019-11-26 15:20:49 +03:00
|
|
|
<div class="gh-publishmenu-section">
|
2020-11-16 18:48:42 +03:00
|
|
|
<div class="gh-publishmenu-email">
|
2019-11-26 15:20:49 +03:00
|
|
|
{{#if this.backgroundLoader.isRunning}}
|
|
|
|
<div class="gh-loading-spinner" style="zoom: 50%"></div>
|
|
|
|
{{else}}
|
2019-12-13 17:20:29 +03:00
|
|
|
<div class="gh-publishmenu-email-label {{if this.disableEmailOption "pe-none"}}">
|
2020-11-12 13:00:10 +03:00
|
|
|
<label class="gh-publishmenu-radio-label mb3 {{if this.disableEmailOption "midgrey"}}">Send by email to</label>
|
2020-11-16 18:48:42 +03:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="gh-publishmenu-send-to-option">
|
2020-11-11 20:08:43 +03:00
|
|
|
<p>Free members <span class="gh-publishmenu-emailcount">{{this.freeMemberCountLabel}}</span></p>
|
2020-11-16 18:48:42 +03:00
|
|
|
<div class="for-switch small" {{action "toggleSendEmailWhenPublished" "free" bubbles="false"}}>
|
|
|
|
<label class="switch" for="send-email-to-free">
|
|
|
|
<input
|
|
|
|
id="send-email-to-free"
|
|
|
|
type="checkbox"
|
|
|
|
checked={{this.sendEmailToFreeMembersWhenPublished}}
|
|
|
|
disabled={{this.disableEmailOption}}
|
|
|
|
class="gh-input post-settings-featured"
|
|
|
|
onclick={{action "toggleSendEmailWhenPublished" value="free"}}
|
|
|
|
data-test-checkbox="free-members"
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gh-publishmenu-send-to-option">
|
2020-11-11 20:08:43 +03:00
|
|
|
<p>Paid members <span class="gh-publishmenu-emailcount">{{this.paidMemberCountLabel}}</span></p>
|
2020-11-16 18:48:42 +03:00
|
|
|
<div class="for-switch small" {{action "toggleSendEmailWhenPublished" "paid" bubbles="false"}}>
|
|
|
|
<label class="switch" for="send-email-to-paid">
|
|
|
|
<input
|
|
|
|
id="send-email-to-paid"
|
|
|
|
type="checkbox"
|
|
|
|
checked={{this.sendEmailToPaidMembersWhenPublished}}
|
|
|
|
disabled={{this.disableEmailOption}}
|
|
|
|
class="gh-input post-settings-featured"
|
|
|
|
onclick={{action "toggleSendEmailWhenPublished" value="paid"}}
|
|
|
|
data-test-checkbox="paid-members"
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
</div>
|
2019-11-08 07:46:38 +03:00
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
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
|
|
|
|