discourse/app/assets/javascripts/admin/templates/site_text_edit.js.handlebars

27 lines
565 B
Handlebars
Raw Normal View History

<h3>{{title}}</h3>
<p class='description'>{{description}}</p>
{{#if markdown}}
2014-09-24 14:45:35 -04:00
{{pagedown-editor value=value}}
{{/if}}
{{#if plainText}}
2014-09-24 14:45:35 -04:00
{{textarea value=value class="plain"}}
{{/if}}
{{#if html}}
2014-09-24 14:45:35 -04:00
{{aceEditor content=value mode="html"}}
{{/if}}
{{#if css}}
2014-09-24 14:45:35 -04:00
{{aceEditor content=value 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>