mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
fc25bf5713
no issue - adds additional class arguments: - `@datePickerTriggerClass` - `@datePickerClass` - `@timeInputClass`
25 lines
1.2 KiB
Handlebars
25 lines
1.2 KiB
Handlebars
{{!-- template-lint-disable no-invalid-interactive --}}
|
|
<fieldset>
|
|
<div class="gh-publish-schedule">
|
|
<div class="gh-radio {{unless @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled false)}}>
|
|
<div class="gh-radio-button" data-test-publishmenu-published-option></div>
|
|
<label>Set it live now</label>
|
|
</div>
|
|
<div class="gh-radio {{if @publishOptions.isScheduled "active"}}" {{on "click" (fn @publishOptions.toggleScheduled true)}}>
|
|
<div class="gh-radio-button" data-test-publishmenu-scheduled-option></div>
|
|
<label>Schedule for later</label>
|
|
</div>
|
|
</div>
|
|
{{#if @publishOptions.isScheduled}}
|
|
<GhDateTimePicker
|
|
@datePickerClass="publish-flow-datepicker"
|
|
@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}}
|
|
/>
|
|
{{/if}}
|
|
</fieldset> |