mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
df58953778
no issue - updates `gh-trim-focus-input` to extend from `gh-input`/`one-way-input` to get the auto-binding attribute behaviour for passed-in HTML attributes - renames `focus` property to `shouldFocus` so that we're not overriding default DOM functions - fixes signin page issues with missing placeholders and no autofocus
59 lines
2.4 KiB
Handlebars
59 lines
2.4 KiB
Handlebars
<section class="gh-view">
|
|
<header class="view-header">
|
|
{{#gh-view-title classNames="gh-editor-title" openMobileMenu="openMobileMenu"}}
|
|
{{gh-trim-focus-input model.titleScratch type="text" id="entry-title" placeholder="Your Post Title" tabindex="1" shouldFocus=shouldFocusTitle focus-out="updateTitle" update=(action (mut model.titleScratch))}}
|
|
{{/gh-view-title}}
|
|
{{#if scheduleCountdown}}
|
|
<time datetime="{{post.publishedAtUTC}}" class="gh-notification gh-notification-schedule">
|
|
Post will be published {{scheduleCountdown}}.
|
|
</time>
|
|
{{/if}}
|
|
<section class="view-actions">
|
|
<button type="button" class="post-settings" title="Post Settings" {{action "openSettingsMenu"}}>
|
|
<i class="icon-settings"></i>
|
|
</button>
|
|
{{gh-editor-save-button
|
|
isPublished=model.isPublished
|
|
isScheduled=model.isScheduled
|
|
willPublish=willPublish
|
|
willSchedule=willSchedule
|
|
statusFreeze=statusFreeze
|
|
scheduledWillPublish=scheduledWillPublish
|
|
timeScheduled=model.timeScheduled
|
|
postOrPage=postOrPage
|
|
isNew=model.isNew
|
|
save="save"
|
|
setSaveType="setSaveType"
|
|
delete="toggleDeletePostModal"
|
|
submitting=submitting
|
|
}}
|
|
</section>
|
|
</header>
|
|
|
|
{{gh-editor value=model.scratch
|
|
shouldFocusEditor=shouldFocusEditor
|
|
previewUrl=model.previewUrl
|
|
editorFocused=(action "autoSaveNew")
|
|
onTeardown=(action "cancelTimers")}}
|
|
</section>
|
|
|
|
{{#if showDeletePostModal}}
|
|
{{gh-fullscreen-modal "delete-post"
|
|
model=model
|
|
close=(action "toggleDeletePostModal")
|
|
modifier="action wide"}}
|
|
{{/if}}
|
|
|
|
{{#if showLeaveEditorModal}}
|
|
{{gh-fullscreen-modal "leave-editor"
|
|
confirm=(action "leaveEditor")
|
|
close=(action "toggleLeaveEditorModal")
|
|
modifier="action wide"}}
|
|
{{/if}}
|
|
|
|
{{#if showReAuthenticateModal}}
|
|
{{gh-fullscreen-modal "re-authenticate"
|
|
close=(action "toggleReAuthenticateModal")
|
|
modifier="action wide"}}
|
|
{{/if}}
|