2014-12-01 14:39:11 +03:00
|
|
|
<header class="settings-view-header">
|
2014-12-23 15:43:21 +03:00
|
|
|
{{#link-to "settings" class="btn btn-default btn-back"}}Back{{/link-to}}
|
2014-12-01 14:39:11 +03:00
|
|
|
<h2 class="page-title">Labs</h2>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="content settings-debug">
|
|
|
|
<form id="settings-export">
|
|
|
|
<fieldset>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Export</label>
|
2014-12-02 18:02:37 +03:00
|
|
|
<button type="button" class="btn btn-blue" {{action "exportData"}}>Export</button>
|
2014-12-01 14:39:11 +03:00
|
|
|
<p>Export the blog settings and data.</p>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
{{#gh-form id="settings-import" enctype="multipart/form-data"}}
|
|
|
|
<fieldset>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Import</label>
|
|
|
|
{{partial "import-errors"}}
|
|
|
|
{{gh-file-upload id="importfile" uploadButtonText=uploadButtonText}}
|
|
|
|
<p>Import from another Ghost installation. If you import a user, this will replace the current user & log you out.</p>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
{{/gh-form}}
|
|
|
|
<form id="settings-resetdb">
|
|
|
|
<fieldset>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Delete all Content</label>
|
2014-12-02 18:02:37 +03:00
|
|
|
<button type="button" class="btn btn-red js-delete" {{action "openModal" "deleteAll"}}>Delete</button>
|
2014-12-01 14:39:11 +03:00
|
|
|
<p>Delete all posts and tags from the database.</p>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<form id="settings-testmail">
|
|
|
|
<fieldset>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Send a test email</label>
|
2014-12-02 18:02:37 +03:00
|
|
|
<button type="button" id="sendtestmail" class="btn btn-blue" {{action "sendTestEmail"}}>Send</button>
|
2014-12-01 14:39:11 +03:00
|
|
|
<p>Sends a test email to your address.</p>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2014-12-14 20:56:04 +03:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
2015-01-01 22:09:55 +03:00
|
|
|
{{#unless codeUIFlag}}
|
2014-12-14 20:56:04 +03:00
|
|
|
<div class="form-group for-checkbox">
|
|
|
|
<label for="labs-codeInjectionUI">Code Injection</label>
|
2015-01-01 22:09:55 +03:00
|
|
|
<label class="check box" for="labs-codeInjectionUI">
|
|
|
|
{{input id="labs-codeInjectionUI" name="labs[codeInjectionUI]" type="checkbox"
|
|
|
|
checked=useCodeInjectionUI}}
|
2014-12-14 20:56:04 +03:00
|
|
|
<span class="input-toggle-component"></span>
|
2015-01-01 22:09:55 +03:00
|
|
|
<p>Enable the code injection interface</p>
|
2014-12-14 20:56:04 +03:00
|
|
|
</label>
|
2015-01-01 22:09:55 +03:00
|
|
|
<p>A settings screen which enables you to add code into your theme (work in progress)</p>
|
2014-12-14 20:56:04 +03:00
|
|
|
</div>
|
2015-01-01 22:09:55 +03:00
|
|
|
{{/unless}}
|
2014-12-14 20:56:04 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
2014-12-01 14:39:11 +03:00
|
|
|
</section>
|