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
|
|
|
{{input 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-03-02 16:30:46 +03:00
|
|
|
<img class="blog-logo" {{bind-attr 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-03-02 16:30:46 +03:00
|
|
|
<img class="blog-cover" {{bind-attr 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
|
|
|
{{input 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
|
|
|
{{input 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">
|
|
|
|
{{input 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>
|
2014-09-17 14:41:34 +04:00
|
|
|
<span class="gh-select" {{bind-attr 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>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2014-12-30 05:11:24 +03:00
|
|
|
</section>
|