2014-04-20 18:48:34 +04:00
|
|
|
<form>
|
2014-08-18 20:43:06 +04:00
|
|
|
<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 name="post-setting-slug" action="updateSlug" placeholder=slugPlaceholder selectOnClick="true" stopEnterKeyDownPropagation="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 name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-08-16 01:18:36 +04:00
|
|
|
{{#unless session.user.isAuthor}}
|
2014-08-18 20:43:06 +04:00
|
|
|
<tr class="post-setting">
|
|
|
|
<td class="post-setting-label">
|
|
|
|
<label for="post-setting-author">Author</label>
|
|
|
|
</td>
|
2014-08-16 01:18:36 +04:00
|
|
|
|
2014-08-18 20:43:06 +04:00
|
|
|
<td class="post-setting-field">
|
2014-08-16 01:18:36 +04:00
|
|
|
<span class="gh-select">
|
|
|
|
{{view Ember.Select
|
|
|
|
name="post-setting-author"
|
|
|
|
content=authors
|
|
|
|
optionValuePath="content.id"
|
|
|
|
optionLabelPath="content.name"
|
|
|
|
selection=selectedAuthor}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
{{/unless}}
|
2014-08-18 20:43:06 +04:00
|
|
|
</tr>
|
|
|
|
<tr class="post-setting">
|
|
|
|
<td class="post-setting-label">
|
2014-08-16 01:18:36 +04:00
|
|
|
<label class="label" for="static-page">Static Page</label>
|
2014-08-18 20:43:06 +04:00
|
|
|
</td>
|
|
|
|
<td class="post-setting-item">
|
2014-08-16 01:18:36 +04:00
|
|
|
{{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>
|
2014-08-18 20:43:06 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-04-20 18:48:34 +04:00
|
|
|
</form>
|
2014-07-22 07:27:28 +04:00
|
|
|
<button type="button" class="delete" {{action "openModal" "delete-post" this}}>Delete This Post</button>
|