2014-01-02 10:22:04 -05:00
|
|
|
<h3>{{model.title}}</h3>
|
|
|
|
<p class='description'>{{model.description}}</p>
|
|
|
|
|
|
|
|
{{#if model.markdown}}
|
2014-06-09 12:16:27 -04:00
|
|
|
{{pagedown-editor value=model.content}}
|
2014-01-02 10:22:04 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if model.plainText}}
|
|
|
|
{{textarea value=model.content class="plain"}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if model.html}}
|
|
|
|
{{aceEditor content=model.content mode="html"}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if model.css}}
|
|
|
|
{{aceEditor content=model.content mode="css"}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class='controls'>
|
2014-01-14 12:48:57 -05: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>
|