2022-04-27 20:20:46 +03:00
|
|
|
{{!-- template-lint-disable no-invalid-interactive --}}
|
|
|
|
<fieldset>
|
2022-05-06 15:54:15 +03:00
|
|
|
<div class="gh-publish-schedule">
|
|
|
|
<div class="gh-radio {{unless @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled false)}}>
|
2022-06-01 00:59:12 +03:00
|
|
|
<div class="gh-radio-button" data-test-radio="publish-now"></div>
|
2022-05-06 15:54:15 +03:00
|
|
|
<label>Set it live now</label>
|
2022-04-27 20:20:46 +03:00
|
|
|
</div>
|
2022-05-06 15:54:15 +03:00
|
|
|
<div class="gh-radio {{if @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled true)}}>
|
2022-06-01 00:59:12 +03:00
|
|
|
<div class="gh-radio-button" data-test-radio="schedule"></div>
|
2022-05-06 19:10:08 +03:00
|
|
|
<label>Schedule for later</label>
|
2022-04-27 20:20:46 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-06 15:54:15 +03:00
|
|
|
{{#if @publishOptions.isScheduled}}
|
|
|
|
<GhDateTimePicker
|
2022-05-09 12:31:14 +03:00
|
|
|
@datePickerClass="publish-flow-datepicker"
|
2022-05-06 15:54:15 +03:00
|
|
|
@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}}
|
2022-07-01 13:20:02 +03:00
|
|
|
@minDate={{moment-site-tz @publishOptions.minScheduledAt}}
|
2022-05-06 15:54:15 +03:00
|
|
|
@isActive={{@publishOptions.isScheduled}}
|
|
|
|
@renderInPlace={{false}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
2022-04-27 20:20:46 +03:00
|
|
|
</fieldset>
|