2015-06-13 17:34:09 +03:00
<section class="gh-view">
<header class="view-header">
2015-08-12 10:17:01 +03:00
{{ # gh-view-title openMobileMenu = "openMobileMenu" }} <span>General</span> {{ / gh-view-title }}
2015-06-13 17:34:09 +03:00
<section class="view-actions">
2015-08-25 23:15:59 +03:00
{{ # gh-spin-button class = "btn btn-blue" action = "save" submitting = submitting }} Save {{ / gh-spin-button }}
2015-06-13 17:34:09 +03:00
</section>
</header>
2014-03-10 07:44:08 +04:00
2015-06-13 17:34:09 +03:00
<section class="view-content">
<form id="settings-general" novalidate="novalidate">
<fieldset>
2014-03-10 07:44:08 +04:00
2015-07-07 20:14:23 +03:00
{{ # gh-form-group errors = model .errors property = "title" }}
2015-06-13 17:34:09 +03:00
<label for="blog-title">Blog Title</label>
2015-07-07 20:14:23 +03:00
{{ gh-input id = "blog-title" class = "gh-input" name = "general[title]" type = "text" value = model .title focusOut = ( action "validate" "title" ) }}
{{ gh-error-message errors = model .errors property = "title" }}
2015-06-13 17:34:09 +03:00
<p>The name of your blog</p>
2015-07-07 20:14:23 +03:00
{{ / gh-form-group }}
2014-08-14 19:31:38 +04:00
2015-07-07 20:14:23 +03:00
{{ # gh-form-group class = "description-container" errors = model .errors property = "description" }}
2015-06-13 17:34:09 +03:00
<label for="blog-description">Blog Description</label>
2015-07-07 20:14:23 +03:00
{{ gh-textarea id = "blog-description" class = "gh-input" name = "general[description]" value = model .description focusOut = ( action "validate" "description" ) }}
{{ gh-error-message errors = model .errors property = "description" }}
2015-06-13 17:34:09 +03:00
<p>
Describe what your blog is about
{{ gh-count-characters model .description }}
</p>
2015-07-07 20:14:23 +03:00
{{ / gh-form-group }}
2015-06-13 17:34:09 +03:00
</fieldset>
2014-03-10 07:44:08 +04:00
<div class="form-group">
2015-06-13 17:34:09 +03:00
<label>Blog Logo</label>
{{ # if model .logo }}
<img class="blog-logo" src=" {{ model .logo }} " alt="logo" role="button" {{ action "openModal" "upload" this "logo" }} >
{{ 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>
2014-03-10 07:44:08 +04:00
</div>
2015-06-13 17:34:09 +03:00
<div class="form-group">
<label>Blog Cover</label>
{{ # if model .cover }}
<img class="blog-cover" src=" {{ model .cover }} " alt="cover photo" role="button" {{ action "openModal" "upload" this "cover" }} >
{{ 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>
2014-03-10 07:44:08 +04:00
</div>
2015-06-13 17:34:09 +03:00
<fieldset>
2015-05-11 18:35:55 +03:00
2015-06-13 17:34:09 +03:00
<div class="form-group">
<label for="postsPerPage">Posts per page</label>
{{! `pattern` brings up numeric keypad allowing any number of digits}}
2015-07-07 20:14:23 +03:00
{{ gh-input id = "postsPerPage" class = "gh-input" name = "general[postsPerPage]" focus-out = "checkPostsPerPage" value = model .postsPerPage min = "1" max = "1000" type = "number" pattern = "[0-9]*" }}
2015-06-13 17:34:09 +03:00
<p>How many posts should be displayed on each page</p>
</div>
2015-05-11 18:35:55 +03:00
2015-06-13 17:34:09 +03:00
<div class="form-group for-checkbox">
<label for="permalinks">Dated Permalinks</label>
<label class="checkbox" for="permalinks">
{{ in put id = "permalinks" class = "gh-input" name = "general[permalinks]" type = "checkbox" checked = isDatedPermalinks }}
<span class="input-toggle-component"></span>
<p>Include the date in your post URLs</p>
</label>
</div>
<div class="form-group for-select">
<label for="activeTheme">Theme</label>
<span class="gh-select" data-select-text=" {{ selectedTheme .label }} " tabindex="0">
{{ gh-select-native
id="activeTheme"
name="general[activeTheme]"
content=themes
optionValuePath="name"
optionLabelPath="label"
selection=selectedTheme
action="setTheme"
}}
</span>
<p>Select a theme for your blog</p>
</div>
<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 }}
2015-07-07 20:14:23 +03:00
{{ # gh-form-group errors = model .errors property = "password" }}
{{ gh-input name = "general[password]" type = "text" value = model .password focusOut = ( action "validate" "password" ) }}
{{ gh-error-message errors = model .errors property = "password" }}
2015-06-13 17:34:09 +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-07-07 20:14:23 +03:00
{{ / gh-form-group }}
2015-06-13 17:34:09 +03:00
{{ / if }}
</fieldset>
</form>
</section>
2014-12-30 05:11:24 +03:00
</section>