discourse/app/assets/javascripts/admin/templates/site_text_edit.hbs

27 lines
565 B
Handlebars
Raw Normal View History

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