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