2014-08-16 20:40:35 +04:00
<header class="settings-view-header">
{{ # link-to "settings" class = "btn btn-default btn-back" }} Back {{ / link-to }}
<h2 class="page-title">General</h2>
<section class="page-actions">
<button type="button" class="btn btn-blue" {{ action "save" }} >Save</button>
</section>
2014-03-10 07:44:08 +04:00
</header>
2014-07-13 21:03:48 +04:00
<section class="content settings-general">
2014-03-10 07:44:08 +04:00
<form id="settings-general" novalidate="novalidate">
<fieldset>
<div class="form-group">
<label for="blog-title">Blog Title</label>
2014-12-30 05:11:24 +03:00
{{ in put id = "blog-title" name = "general[title]" type = "text" value = model .title }}
2014-03-10 07:44:08 +04:00
<p>The name of your blog</p>
</div>
<div class="form-group description-container">
<label for="blog-description">Blog Description</label>
2014-12-30 05:11:24 +03:00
{{ textarea id = "blog-description" name = "general[description]" value = model .description }}
2014-03-10 07:44:08 +04:00
<p>
Describe what your blog is about
2014-12-30 05:11:24 +03:00
{{ gh-count-characters model .description }}
2014-03-10 07:44:08 +04:00
</p>
</div>
</fieldset>
2014-08-14 19:31:38 +04:00
<div class="form-group">
2015-03-02 16:30:46 +03:00
<label>Blog Logo</label>
2014-12-30 05:11:24 +03:00
{{ # if model .logo }}
2015-04-01 19:01:38 +03:00
<img class="blog-logo" src=" {{ model .logo }} " alt="logo" role="button" {{ action "openModal" "upload" this "logo" }} >
2014-08-14 19:31:38 +04:00
{{ else }}
<button type="button" class="btn btn-green js-modal-logo" {{ action "openModal" "upload" this "logo" }} >Upload Image</button>
{{ / if }}
<p>Display a sexy logo for your publication</p>
</div>
<div class="form-group">
2015-03-02 16:30:46 +03:00
<label>Blog Cover</label>
2014-12-30 05:11:24 +03:00
{{ # if model .cover }}
2015-04-01 19:01:38 +03:00
<img class="blog-cover" src=" {{ model .cover }} " alt="cover photo" role="button" {{ action "openModal" "upload" this "cover" }} >
2014-08-14 19:31:38 +04:00
{{ else }}
<button type="button" class="btn btn-green js-modal-cover" {{ action "openModal" "upload" this "cover" }} >Upload Image</button>
{{ / if }}
<p>Display a cover image on your site</p>
</div>
2014-03-10 07:44:08 +04:00
<fieldset>
<div class="form-group">
<label for="email-address">Email Address</label>
2014-12-30 05:11:24 +03:00
{{ in put id = "email-address" name = "general[email-address]" type = "email" value = model .email autocapitalize = "off" autocorrect = "off" }}
2014-03-10 07:44:08 +04:00
<p>Address to use for admin notifications</p>
</div>
<div class="form-group">
<label for="postsPerPage">Posts per page</label>
2014-11-10 22:49:35 +03:00
{{! `pattern` brings up numeric keypad allowing any number of digits}}
2014-12-30 05:11:24 +03:00
{{ in put id = "postsPerPage" name = "general[postsPerPage]" focus-out = "checkPostsPerPage" value = model .postsPerPage min = "1" max = "1000" type = "number" pattern = "[0-9]*" }}
2014-03-10 07:44:08 +04:00
<p>How many posts should be displayed on each page</p>
</div>
2014-07-07 18:37:50 +04:00
<div class="form-group for-checkbox">
2014-03-10 07:44:08 +04:00
<label for="permalinks">Dated Permalinks</label>
2014-08-14 19:31:38 +04:00
<label class="checkbox" for="permalinks">
{{ in put id = "permalinks" name = "general[permalinks]" type = "checkbox" checked = isDatedPermalinks }}
<span class="input-toggle-component"></span>
<p>Include the date in your post URLs</p>
</label>
2014-03-10 07:44:08 +04:00
</div>
2014-07-07 18:37:50 +04:00
<div class="form-group for-select">
2014-03-10 07:44:08 +04:00
<label for="activeTheme">Theme</label>
2015-04-01 19:01:38 +03:00
<span class="gh-select" data-select-text=" {{ selectedTheme .label }} " tabindex="0">
2014-10-21 20:02:11 +04:00
{{ view "select"
2014-07-07 18:37:50 +04:00
id="activeTheme"
name="general[activeTheme]"
content=themes
optionValuePath="content.name"
optionLabelPath="content.label"
2014-12-30 05:11:24 +03:00
value=model.activeTheme
2014-07-07 18:37:50 +04:00
selection=selectedTheme}}
</span>
2014-03-10 07:44:08 +04:00
<p>Select a theme for your blog</p>
</div>
2015-05-11 18:35:55 +03:00
<div class="form-group for-checkbox">
<label for="isPrivate">Make this blog private</label>
<label class="checkbox" for="isPrivate">
{{ in put id = "isPrivate" name = "general[isPrivate]" type = "checkbox"
checked=model.isPrivate}}
<span class="input-toggle-component"></span>
<p>Enable password protection</p>
</label>
</div>
{{ # if model .isPrivate }}
<div class="form-group">
{{ in put name = "general[password]" type = "text" value = model .password }}
2015-05-13 12:26:49 +03:00
<p>This password will be needed to access your blog. All search engine optimization and social features are now disabled. This password is stored in plaintext.</p>
2015-05-11 18:35:55 +03:00
</div>
{{ / if }}
2014-03-10 07:44:08 +04:00
</fieldset>
</form>
2014-12-30 05:11:24 +03:00
</section>