2022-07-06 01:41:31 +08:00
|
|
|
<ComboBox @value={{this.emailTemplate.id}} @content={{this.adminCustomizeEmailTemplates.sortedTemplates}} @onChange={{this.adminCustomizeEmailTemplates.onSelectTemplate}} @nameProperty="title" />
|
2020-07-07 17:44:13 +08:00
|
|
|
|
2015-11-13 05:08:19 +08:00
|
|
|
<div class="email-template">
|
2015-11-28 13:46:13 +08:00
|
|
|
<label>{{i18n "admin.customize.email_templates.subject"}}</label>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.hasMultipleSubjects}}
|
|
|
|
<h3><LinkTo @route="adminSiteText" @query={{hash q=this.hasMultipleSubjects}}>{{i18n "admin.customize.email_templates.multiple_subjects"}}</LinkTo></h3>
|
2015-11-28 13:46:13 +08:00
|
|
|
{{else}}
|
2022-07-06 01:41:31 +08:00
|
|
|
<Input @value={{this.buffered.subject}} />
|
2015-11-28 13:46:13 +08:00
|
|
|
{{/if}}
|
|
|
|
<br>
|
2015-11-13 05:08:19 +08:00
|
|
|
|
2015-11-28 03:14:34 +08:00
|
|
|
<label>{{i18n "admin.customize.email_templates.body"}}</label>
|
2022-07-06 01:41:31 +08:00
|
|
|
<DEditor @value={{this.buffered.body}} />
|
2015-11-13 05:08:19 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<SaveControls @model={{this.emailTemplate}} @action={{action "saveChanges"}} @saved={{this.saved}} @saveDisabled={{this.saveDisabled}}>
|
|
|
|
{{#if this.emailTemplate.can_revert}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @action={{action "revertChanges"}} @label="admin.customize.email_templates.revert" />
|
2015-11-21 01:30:04 +08:00
|
|
|
{{/if}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</SaveControls>
|
2015-11-13 05:08:19 +08:00
|
|
|
</div>
|