mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
1421550a06
Closes #3158, Closes #3143, Closes #3134 - Added `model.rollback()` when PSM fails to save. - Added `showErrors` and `showSuccess` helper functions to PSM to abstract closing and showing of notifications. - Added `togglePage` action to indirect the setting of `page`. - Removed `isStaticPage` property in favor of `togglePage` action - moved `updateSlug` error catching to outer promise (slugGenerator promise) - modifying the `page` and `published_at` properties will no longer cause a new post to save - Close passive notifications on published date parse fail - Removed promise creation in catch statements - Changed tests to click on label, rather than the input for .post-setting-static-page.
33 lines
1.5 KiB
Handlebars
33 lines
1.5 KiB
Handlebars
<form>
|
|
<table class="plain">
|
|
<tbody>
|
|
<tr class="post-setting">
|
|
<td class="post-setting-label">
|
|
<label for="url">URL</label>
|
|
</td>
|
|
<td class="post-setting-field">
|
|
{{gh-blur-input class="post-setting-slug" id="url" value=slugValue action="updateSlug" placeholder=slugPlaceholder selectOnClick="true"}}
|
|
</td>
|
|
</tr>
|
|
<tr class="post-setting">
|
|
<td class="post-setting-label">
|
|
<label for="pub-date">Pub Date</label>
|
|
</td>
|
|
<td class="post-setting-field">
|
|
{{gh-blur-input class="post-setting-date" value=publishedAtValue action="setPublishedAt" placeholder=publishedAtPlaceholder}}
|
|
</td>
|
|
</tr>
|
|
<tr class="post-setting">
|
|
<td class="post-setting-label">
|
|
<label class="label" for="static-page">Static Page</label>
|
|
</td>
|
|
<td class="post-setting-item">
|
|
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
|
|
<label class="checkbox" for="static-page" {{action 'togglePage' bubbles="false"}}></label>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
<a class="delete" {{action "openModal" "delete-post" this}}>Delete This Post</a>
|