2022-07-05 13:41:31 -04:00
|
|
|
<ComboBox
|
|
|
|
@value={{this.emailTemplate.id}}
|
|
|
|
@content={{this.adminCustomizeEmailTemplates.sortedTemplates}}
|
|
|
|
@onChange={{this.adminCustomizeEmailTemplates.onSelectTemplate}}
|
|
|
|
@nameProperty="title"
|
|
|
|
/>
|
2020-07-07 05:44:13 -04:00
|
|
|
|
2015-11-12 16:08:19 -05:00
|
|
|
<div class="email-template">
|
2015-11-28 00:46:13 -05:00
|
|
|
<label>{{i18n "admin.customize.email_templates.subject"}}</label>
|
2022-07-05 13:41:31 -04: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 00:46:13 -05:00
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<Input @value={{this.buffered.subject}} />
|
2015-11-28 00:46:13 -05:00
|
|
|
{{/if}}
|
|
|
|
<br />
|
2015-11-12 16:08:19 -05:00
|
|
|
|
2015-11-27 14:14:34 -05:00
|
|
|
<label>{{i18n "admin.customize.email_templates.body"}}</label>
|
2022-07-05 13:41:31 -04:00
|
|
|
<DEditor @value={{this.buffered.body}} />
|
2015-11-12 16:08:19 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<SaveControls
|
|
|
|
@model={{this.emailTemplate}}
|
|
|
|
@action={{action "saveChanges"}}
|
|
|
|
@saved={{this.saved}}
|
|
|
|
@saveDisabled={{this.saveDisabled}}
|
|
|
|
>
|
|
|
|
{{#if this.emailTemplate.can_revert}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
|
|
|
@action={{action "revertChanges"}}
|
|
|
|
@label="admin.customize.email_templates.revert"
|
|
|
|
/>
|
2015-11-20 12:30:04 -05:00
|
|
|
{{/if}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</SaveControls>
|
2015-11-12 16:08:19 -05:00
|
|
|
</div>
|