discourse/app/assets/javascripts/admin/addon/templates/customize-email-templates-edit.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
Handlebars
Raw Normal View History

<ComboBox
@value={{this.emailTemplate.id}}
@content={{this.adminCustomizeEmailTemplates.sortedTemplates}}
@onChange={{this.adminCustomizeEmailTemplates.onSelectTemplate}}
@nameProperty="title"
/>
<div class="email-template">
<label>{{i18n "admin.customize.email_templates.subject"}}</label>
{{#if this.hasMultipleSubjects}}
<h3><LinkTo
@route="adminSiteText"
@query={{hash q=this.hasMultipleSubjects}}
>{{i18n
"admin.customize.email_templates.multiple_subjects"
}}</LinkTo></h3>
{{else}}
<Input @value={{this.buffered.subject}} />
{{/if}}
<br />
<label>{{i18n "admin.customize.email_templates.body"}}</label>
<DEditor @value={{this.buffered.body}} />
<SaveControls
@model={{this.emailTemplate}}
@action={{action "saveChanges"}}
@saved={{this.saved}}
@saveDisabled={{this.saveDisabled}}
>
{{#if this.emailTemplate.can_revert}}
<DButton
@action={{action "revertChanges"}}
@label="admin.customize.email_templates.revert"
/>
2015-11-21 01:30:04 +08:00
{{/if}}
</SaveControls>
</div>