discourse/app/assets/javascripts/admin/templates/site_contents_edit.js.handlebars
2014-09-23 17:12:31 -04:00

26 lines
597 B
Handlebars

<h3>{{title}}</h3>
<p class='description'>{{description}}</p>
{{#if markdown}}
{{pagedown-editor value=model.content}}
{{/if}}
{{#if plainText}}
{{textarea value=model.content class="plain"}}
{{/if}}
{{#if html}}
{{aceEditor content=model.content mode="html"}}
{{/if}}
{{#if css}}
{{aceEditor content=model.content mode="css"}}
{{/if}}
<div class='controls'>
<button class='btn' {{action "saveChanges"}} {{bind-attr disabled="saveDisabled"}}>
{{#if saving}}
{{i18n saving}}
{{else}}
{{i18n save}}
{{/if}}
</button>
{{#if saved}}{{i18n saved}}{{/if}}
</div>