2014-10-13 19:23:06 +04:00
{{ # gh-tabs-manager selected = "showSubview" id = "entry-controls" class = "settings-menu-container" }}
<div id="entry-controls">
2015-04-01 19:01:38 +03:00
<div class=" {{ if isViewingSubview 'settings-menu-pane-out-left' 'settings-menu-pane-in' }} settings-menu settings-menu-pane">
2014-10-13 19:23:06 +04:00
<div class="settings-menu-header">
2014-09-04 17:56:07 +04:00
<h4>Post Settings</h4>
2015-05-27 17:39:56 +03:00
<button class="close icon-x settings-menu-header-action" {{ action "closeMenus" }} ><span class="hidden">Close</span></button>
2014-09-04 17:56:07 +04:00
</div>
2014-10-13 19:23:06 +04:00
<div class="settings-menu-content">
2014-12-30 05:11:24 +03:00
{{ gh-uploader uploaded = "setCoverImage" canceled = "clearCoverImage" description = "Add post image" image = model .image uploaderReference = uploaderReference tagName = "section" }}
2014-09-04 17:56:07 +04:00
<form>
<div class="form-group">
2014-10-16 19:45:44 +04:00
<label for="url">Post URL</label>
2015-05-01 12:13:39 +03:00
{{ # if model .isPublished }}
<a class="post-view-link" target="_blank" href=" {{ model .absoluteUrl }} ">
View post <i class="icon-external"></i>
</a>
{{ else }}
<a class="post-view-link" target="_blank" href=" {{ model .previewUrl }} ">
Preview <i class="icon-external"></i>
2015-04-16 22:40:32 +03:00
</a>
{{ / if }}
2015-05-01 12:13:39 +03:00
2014-09-04 17:56:07 +04:00
<span class="input-icon icon-link">
2015-04-24 16:44:18 +03:00
{{ gh-input class = "gh-input post-setting-slug" id = "url" value = slugValue name = "post-setting-slug" focus-out = "updateSlug" selectOnClick = "true" stopEnterKeyDownPropagation = "true" }}
2014-09-04 17:56:07 +04:00
</span>
2014-11-28 13:15:48 +03:00
{{ gh-url-preview slug = slugValue tagName = "p" classNames = "description" }}
2014-09-04 17:56:07 +04:00
</div>
2014-08-16 01:18:36 +04:00
2014-09-04 17:56:07 +04:00
<div class="form-group">
2014-10-16 19:45:44 +04:00
<label for="post-setting-date">Publish Date</label>
2014-09-04 17:56:07 +04:00
<span class="input-icon icon-calendar">
2015-04-24 16:44:18 +03:00
{{ gh-input class = "gh-input post-setting-date" id = "post-setting-date" value = publishedAtValue name = "post-setting-date" focus-out = "setPublishedAt" stopEnterKeyDownPropagation = "true" }}
2014-09-04 17:56:07 +04:00
</span>
</div>
2014-09-28 14:21:09 +04:00
{{ # unless session .user .isAuthor }}
2014-09-04 17:56:07 +04:00
<div class="form-group for-select">
2014-10-16 19:45:44 +04:00
<label for="author-list">Author</label>
2014-09-04 17:56:07 +04:00
<span class="input-icon icon-user">
2014-09-17 14:41:34 +04:00
<span class="gh-select" tabindex="0">
2014-10-21 20:02:11 +04:00
{{ view "select"
2014-09-04 17:56:07 +04:00
name="post-setting-author"
2014-10-16 19:45:44 +04:00
id="author-list"
2014-09-04 17:56:07 +04:00
content=authors
optionValuePath="content.id"
optionLabelPath="content.name"
selection=selectedAuthor}}
</span>
2014-08-16 01:18:36 +04:00
</span>
2014-09-04 17:56:07 +04:00
</div>
2014-09-28 14:21:09 +04:00
{{ / unless }}
2014-09-04 17:56:07 +04:00
<ul class="nav-list nav-list-block">
2014-09-15 04:40:24 +04:00
{{ # gh-tab tagName = "li" classNames = "nav-list-item" }}
2014-11-05 16:38:07 +03:00
<button type="button">
2014-09-15 04:40:24 +04:00
<b>Meta Data</b>
<span>Extra content for SEO and social media.</span>
2014-11-05 16:38:07 +03:00
</button>
2015-05-13 01:49:11 +03:00
<i class="icon-arrow-right"></i>
2014-09-15 04:40:24 +04:00
{{ / gh-tab }}
2014-09-04 17:56:07 +04:00
</ul>
2014-09-23 12:47:35 +04:00
<div class="form-group for-checkbox">
<label class="checkbox" for="static-page" {{ action "togglePage" bubbles = "false" }} >
2015-04-24 16:44:18 +03:00
{{ in put type = "checkbox" name = "static-page" id = "static-page" class = "gh-input post-setting-static-page" checked = model .page }}
2014-09-23 12:47:35 +04:00
<span class="input-toggle-component"></span>
<p>Turn this post into a static page</p>
</label>
2014-10-16 19:45:44 +04:00
<label class="checkbox" for="featured" {{ action "toggleFeatured" bubbles = "false" }} >
2015-04-24 16:44:18 +03:00
{{ in put type = "checkbox" name = "featured" id = "featured" class = "gh-input post-setting-featured" checked = model .featured }}
2014-09-23 12:47:35 +04:00
<span class="input-toggle-component"></span>
<p>Feature this post</p>
</label>
</div>
2014-10-13 19:23:06 +04:00
2014-09-04 17:56:07 +04:00
</form>
2014-10-13 19:23:06 +04:00
</div> {{! .settings-menu-content }}
</div> {{! .post-settings-menu }}
2015-04-01 19:01:38 +03:00
<div class=" {{ if isViewingSubview 'settings-menu-pane-in' 'settings-menu-pane-out-right' }} settings-menu settings-menu-pane">
2014-09-19 03:42:07 +04:00
{{ # gh-tab-pane }}
2015-03-16 20:55:56 +03:00
{{ # if isViewingSubview }}
2014-10-13 19:23:06 +04:00
<div class="settings-menu-header subview">
2015-05-18 19:30:59 +03:00
<button {{ action "closeSubview" }} class="back icon-arrow-left settings-menu-header-action"><span class="hidden">Back</span></button>
2014-09-04 17:56:07 +04:00
<h4>Meta Data</h4>
2015-05-18 19:30:59 +03:00
<div style="width:23px;"> {{!flexbox space-between}} </div>
2014-09-04 17:56:07 +04:00
</div>
2014-10-13 19:23:06 +04:00
<div class="settings-menu-content">
2014-09-21 22:56:30 +04:00
<form>
2014-09-04 17:56:07 +04:00
<div class="form-group">
2014-10-16 19:45:44 +04:00
<label for="meta-title">Meta Title</label>
2015-04-24 16:44:18 +03:00
{{ gh-input class = "gh-input post-setting-meta-title" id = "meta-title" value = metaTitleScratch name = "post-setting-meta-title" focus-out = "setMetaTitle" stopEnterKeyDownPropagation = "true" }}
2014-09-21 22:56:30 +04:00
<p>Recommended: <b>70</b> characters. You’ ve used {{ gh-count-down-characters metaTitleScratch 7 0 }} </p>
2014-09-04 17:56:07 +04:00
</div>
<div class="form-group">
2014-10-16 19:45:44 +04:00
<label for="meta-description">Meta Description</label>
2015-04-24 16:44:18 +03:00
{{ gh-textarea class = "gh-input post-setting-meta-description" id = "meta-description" value = metaDescriptionScratch name = "post-setting-meta-description" focus-out = "setMetaDescription" stopEnterKeyDownPropagation = "true" }}
2014-09-21 22:56:30 +04:00
<p>Recommended: <b>156</b> characters. You’ ve used {{ gh-count-down-characters metaDescriptionScratch 1 5 6 }} </p>
2014-09-04 17:56:07 +04:00
</div>
<div class="form-group">
<label>Search Engine Result Preview</label>
<div class="seo-preview">
2014-09-19 03:42:07 +04:00
<div class="seo-preview-title"> {{ seoTitle }} </div>
2014-10-17 20:18:52 +04:00
<div class="seo-preview-link"> {{ seoURL }} </div>
2014-09-19 03:42:07 +04:00
<div class="seo-preview-description"> {{ seoDescription }} </div>
2014-09-04 17:56:07 +04:00
</div>
2014-12-02 01:45:45 +03:00
</div>
2014-09-21 22:56:30 +04:00
</form>
2014-10-13 19:23:06 +04:00
</div> {{! .settings-menu-content }}
2015-03-16 20:55:56 +03:00
{{ / if }}
2014-09-19 03:42:07 +04:00
{{ / gh-tab-pane }}
</div>
2014-09-15 04:40:24 +04:00
</div>
2014-09-19 03:42:07 +04:00
{{ / gh-tabs-manager }}