mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
25 lines
1.4 KiB
Handlebars
25 lines
1.4 KiB
Handlebars
|
{{!-- template-lint-disable no-invalid-interactive --}}
|
||
|
<fieldset>
|
||
|
<div class="gh-publishmenu-radio {{unless @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled false)}}>
|
||
|
<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>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="gh-publishmenu-radio {{if @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled true)}}>
|
||
|
<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>
|
||
|
<GhDateTimePicker
|
||
|
@date={{moment-format (moment-site-tz @publishOptions.scheduledAtUTC) "YYYY-MM-DD"}}
|
||
|
@time={{moment-format (moment-site-tz @publishOptions.scheduledAtUTC) "HH:mm"}}
|
||
|
@setDate={{this.setDate}}
|
||
|
@setTime={{this.setTime}}
|
||
|
@minDate={{@publishOptions.minScheduledAt}}
|
||
|
@isActive={{@publishOptions.isScheduled}}
|
||
|
@renderInPlace={{false}}
|
||
|
/>
|
||
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</fieldset>
|