mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 20:16:28 +08:00
38 lines
1.1 KiB
Handlebars
38 lines
1.1 KiB
Handlebars
<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"
|
|
/>
|
|
{{/if}}
|
|
</SaveControls>
|
|
</div> |