2014-09-24 05:12:01 +08:00
|
|
|
<h3>{{title}}</h3>
|
|
|
|
<p class='description'>{{description}}</p>
|
2014-01-02 23:22:04 +08:00
|
|
|
|
2014-09-24 05:12:01 +08:00
|
|
|
{{#if markdown}}
|
2014-09-25 02:45:35 +08:00
|
|
|
{{pagedown-editor value=value}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{/if}}
|
2014-09-24 05:12:01 +08:00
|
|
|
{{#if plainText}}
|
2014-09-25 02:45:35 +08:00
|
|
|
{{textarea value=value class="plain"}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{/if}}
|
2014-09-24 05:12:01 +08:00
|
|
|
{{#if html}}
|
2015-03-10 00:49:11 +08:00
|
|
|
{{ace-editor content=value mode="html"}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{/if}}
|
2014-09-24 05:12:01 +08:00
|
|
|
{{#if css}}
|
2015-03-10 00:49:11 +08:00
|
|
|
{{ace-editor content=value mode="css"}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class='controls'>
|
2014-09-24 05:12:01 +08:00
|
|
|
<button class='btn' {{action "saveChanges"}} {{bind-attr disabled="saveDisabled"}}>
|
2014-01-02 23:22:04 +08:00
|
|
|
{{#if saving}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'saving'}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{else}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'save'}}
|
2014-01-02 23:22:04 +08:00
|
|
|
{{/if}}
|
|
|
|
</button>
|
2014-12-09 05:35:49 +08:00
|
|
|
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
2014-01-02 23:22:04 +08:00
|
|
|
</div>
|